使用可能なすべてのメトリック単位の詳細の取得

get

/monitoring/monitoring/{idDomainName}/.customer/api/v1/metricUnits

リクエスト

パス・パラメータ
  • Oracle Monitoring Cloud Serviceアカウントのアイデンティティ・ドメインID。
問合せパラメータ
ヘッダー・パラメータ
  • 基本認証の資格証明。 ユーザーは、ヘッダーX-ID-TENANT-NAMEで指定されたアイデンティティ・ドメイン名に存在する必要があります。
  • 認証ヘッダーで指定されたユーザーが存在するアイデンティティ・ドメインIDに設定します。
トップに戻る

レスポンス

サポートされるメディア・タイプ

200レスポンス

操作の成功
本文 ()
ルート・スキーマ: MetricUnits
型: object
ソースの表示
ネストされたスキーマ: items
型: array
ソースの表示
ネストされたスキーマ: MetricUnit
型: object
ソースの表示
トップに戻る

次の例では、cURLを使用してRESTリソースに対するGETリクエストを発行することによって、使用可能なすべてのメトリック単位の詳細を取得する方法を示しています。 cURLの使用を参照してください。

curl -X GET -H "Authorization: Basic d2VibG9naWM6V2VsY29tZTE=" -H "X-ID-TENANT-NAME:mydomain" https://monitoring.us.oraclecloud.com/monitoring/mydomain/.customer/api/v1/metricUnits

レスポンス・ヘッダーの例

レスポンス・ヘッダーの例を次に示します。

HTTP/1.1 200 OK
Date: Tue, 08 Mar 2016 12:20:49 GMT
Content-Type: application/json

レスポンス本文の例

JSON形式のレスポンス本文のコンテンツの例を次に示します。

{
  "items": [
    {
      "id": "BYTES",
      "displayName": "bytes",
      "shortDisplayName": "B",
      "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricUnits/BYTES"
    },
    {
      "id": "BYTES_PER_SEC",
      "displayName": "bytes per Second",
      "shortDisplayName": "B/s",
      "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricUnits/BYTES_PER_SEC"
    },
    {
      "id": "COUNT",
      "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricUnits/COUNT"
    },
    {
      "id": "COUNT_PER_SEC",
      "displayName": "per second",
      "shortDisplayName": "/s",
      "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricUnits/COUNT_PER_SEC"
    },
    {
      "id": "KILOBYTES",
      "displayName": "kilobytes",
      "shortDisplayName": "kb",
      "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricUnits/KILOBYTES"
    },
    {
      "id": "KILOBYTES_PER_SEC",
      "displayName": "kilobytes per Second",
      "shortDisplayName": "kb/s",
      "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricUnits/KILOBYTES_PER_SEC"
    },
    {
      "id": "PERCENT",
      "displayName": "percent",
      "shortDisplayName": "%",
      "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricUnits/PERCENT"
    },
    {
      "id": "SECTORS",
      "displayName": "Virtual block device sectors",
      "shortDisplayName": "sectors",
      "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricUnits/SECTORS"
    }
  ],
  "offset": 0,
  "limit": 1000,
  "hasMore": false,
  "canonicalLink": "/monitoring/mydomain/.customer/api/v1/metricUnits"
}
トップに戻る