このセクションでは、パフォーマンス管理ジョブについて説明します。
パフォーマンス管理ジョブの作成
さらにクエリを実行してレポートを実行するには、パフォーマンス管理ジョブを作成する必要があります。
ジョブ作成の一環として、通知を受け取るためにサブスクリプションの詳細を提供する必要があります。
NFVO は、PerformanceInformationAvailableNotification 通知を使って通知されます。
メソッドタイプ:
POST
VNFM エンドポイント:
{api_root}/vnfpm/v2/pm_jobs (Data structure=CreatePmJobRequest)
要求ペイロード:
{
"objectInstanceIds": ["9d20a459-b3ff-4d1c-9b63-0dae7444b645"],
"subObjectInstanceIds": ["9d20a459-b3ff-4d1c-9b63-0dae7444b645"],
"objectType": "XYZ",
"callbackUri": "http://localhost:45247/notification",
"authentication": {
"authType": ["BASIC"],
"paramsBasic": {
"userName": "admin",
"password": "P@55w0rd!"
}
},
"criteria": {
"collectionPeriod": 60,
"reportingPeriod": 3600,
"reportingBoundary": "2020-08-01T00:00:00.000Z",
"performanceMetric": [
"Gold",
"Silver"
],
"performanceMetricGroup": [
"VIP",
"Europe"
]
}
}
応答ペイロード:
{
"id": "b375b81c-3236-4b1c-9c47-61455bf5bc74",
"objectType": "XYZ",
"callbackUri": "http://localhost:45248/notification",
"objectInstanceIds": [
"9d20a459-b3ff-4d1c-9b63-0dae7444b645"
],
"subObjectInstanceIds": [
"07775e8b-1279-4338-a643-be283d36fa98"
],
"criteria": {
"collectionPeriod": 60,
"reportingPeriod": 3600,
"performanceMetric": [
"Gold",
"Silver"
],
"performanceMetricGroup": [
"VIP",
"Europe"
],
"reportingBoundary": "2020-08-01T00:00:00.000Z"
},
"reports": [
{
"href": "http://localhost:8250/or_vnfm/vnfpm/v2/pm_jobs/b375b81c-3236-4b1c-9c47-61455bf5bc74/reports/1c787c0d-69a5-4ade-b5ca-43f80e17bd58",
"readyTime": "2022-02-28T07:29:45.609Z"
}
],
"_links": {
"self": {
"href": "http://localhost:8250/or_vnfm/vnfpm/v2/pm_jobs/b375b81c-3236-4b1c-9c47-61455bf5bc74"
},
"objects": [
{
"href": "http://localhost:8250/or_vnfm/vnflcm/v2/vnf_instances/9d20a459-b3ff-4d1c-9b63-0dae7444b645"
}
]
}
}
(注) |
クエリおよび個々のパフォーマンス管理ジョブ、および すべてのパフォーマンス管理ジョブのクエリ ジョブに対して同じ応答を更新します。
|
個々のパフォーマンス管理ジョブのクエリ
NFVO は、個々のパフォーマンス管理ジョブをクエリします。
メソッドタイプ:
GET
VNFM エンドポイント:
{api_root}/vnfpm/v2/pm_jobs/{pmJobId}
要求ペイロード:
該当なし。
応答ペイロード:
{
"id": "13963644-11b0-4302-a13b-26ca3d9eb8f8",
"objectInstanceIds": [
"cc6a34e5-0463-459a-b367-493ba997775f "
],
"criteria": {
"performanceMetric": [
"default"
],
"performanceMetricGroup": [
"default"
],
"collectionPeriod": 3600,
"reportingPeriod": 14400,
"reports": [
{
"href": "uri_where_report_can_be_obtained",
"readyTime": "2018-08-20T06:17:35.081+0000",
"expiryTime": "2018-10-20T06:17:35.081+0000",
"fileSize": "5000"
}
]
},
"_links": {
"self": {
"href": "http://host:port/vnfpm/v2/pm_jobs/13963644-11b0-4302-a13b-26ca3d9eb8f8"
},
"objects": [
{
"href": "http://host:port/vnflcm/v2/vnf_instances/cc6a34e5-0463-459a-b367-493ba997775f"
}
]
}
}
(注) |
レポートが使用可能な場合にのみ、レポートセクションが応答ペイロードに追加されます(上記を参照)。
すべての属性名と、応答ペイロードの属性名から参照されるデータタイプは、属性ベースのフィルタ処理でサポートされます。
|
すべてのパフォーマンス管理ジョブのクエリ
NFVO は、すべてのパフォーマンス管理ジョブのリストを取得します。
メソッドタイプ:
GET
VNFM エンドポイント:
{api_root}/vnfpm/v2/pm_jobs
要求ペイロード:
該当なし。
応答ペイロード:
{
"id": "13963644-11b0-4302-a13b-26ca3d9eb8f8",
"objectInstanceIds": [
"cc6a34e5-0463-459a-b367-493ba997775f "
],
"criteria": {
"performanceMetric": [
"default"
],
"performanceMetricGroup": [
"default"
],
"collectionPeriod": 3600,
"reportingPeriod": 14400,
"reports": [
{
"href": "uri_where_report_can_be_obtained",
"readyTime": "2018-08-20T06:17:35.081+0000",
"expiryTime": "2018-10-20T06:17:35.081+0000",
"fileSize": "5000"
}
]
},
"_links": {
"self": {
"href": "http://host:port/vnfpm/v2/pm_jobs/13963644-11b0-4302-a13b-26ca3d9eb8f8"
},
"objects": [
{
"href": "http://host:port/vnflcm/v2/vnf_instances/cc6a34e5-0463-459a-b367-493ba997775f"
}
]
}
}
(注) |
レポートが使用可能な場合にのみ、レポートセクションが応答ペイロードに追加されます(上記を参照)。
応答ペイロードのすべての属性名と、属性名から参照されるデータタイプは、属性ベースのフィルタ処理でサポートされます。
|
パフォーマンス管理ジョブの更新
NFVO は、callbackUri および個々のパフォーマンス管理ジョブの関連する認証を更新します。
メソッドタイプ:
PATCH
VNFM エンドポイント:
http://localhost:8250/or_vnfm/vnfpm/v2/pm_jobs/{pmJobId}
要求ペイロード:
{
"callbackUri": "http://localhost:45248/notification",
"authentication": {
"authType": ["BASIC"],
"paramsBasic": {
"userName": "admin",
"password": "P@55w0rd!"
}
}
}
応答ペイロード:
{
"callbackUri": "http://localhost:45248/notification"
}
パフォーマンス管理ジョブの削除
NFVO は既存のパフォーマンス管理ジョブに削除要求を送信します。
DELETE {api_root}/vnfpm/v2/pm_jobs/{pmJobId}