次の方法で共有


Metric Namespaces - List

リソースのメトリック名前空間をListsします。

GET https://management.azure.com/{resourceUri}/providers/microsoft.insights/metricNamespaces?api-version=2017-12-01-preview
GET https://management.azure.com/{resourceUri}/providers/microsoft.insights/metricNamespaces?api-version=2017-12-01-preview&startTime={startTime}

URI パラメーター

名前 / 必須 説明
resourceUri
path True

string

リソースの識別子。

api-version
query True

string

この操作に使用する API バージョン。

startTime
query

string

ISO 8601 は、メトリック名前空間のクエリを実行する日付の開始時刻に準拠しています。

応答

名前 説明
200 OK

MetricNamespaceCollection

メトリック名前空間の一覧を取得する要求が成功しました

Other Status Codes

ErrorResponse

操作に失敗した理由を説明するエラー応答。

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名前 説明
user_impersonation ユーザー アカウントの借用

Get Metric Namespaces without filter

Sample Request

GET https://management.azure.com/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricNamespaces?api-version=2017-12-01-preview&startTime=2020-08-31T15:53:00Z

Sample Response

{
  "value": [
    {
      "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricNamespaces/Azure.ApplicationInsights",
      "name": "Azure.ApplicationInsights",
      "type": "Microsoft.Insights/metricNamespaces",
      "classification": "Custom",
      "properties": {
        "metricNamespaceName": "Azure.ApplicationInsights"
      }
    },
    {
      "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricNamespaces/microsoft.insights-components",
      "name": "microsoft.insights-components",
      "type": "Microsoft.Insights/metricNamespaces",
      "classification": "Platform",
      "properties": {
        "metricNamespaceName": "microsoft.insights/components"
      }
    }
  ]
}

定義

名前 説明
ErrorResponse

エラー応答の形式について説明します。

MetricNamespace

メトリック名前空間クラスは、メトリック名前空間のメタデータを指定します。

MetricNamespaceCollection

メトリック名前空間のコレクションを表します。

MetricNamespaceName

完全修飾メトリック名前空間名。

NamespaceClassification

名前空間の種類

ErrorResponse

エラー応答の形式について説明します。

名前 説明
code

string

エラー コード

message

string

操作が失敗した理由を示すエラー メッセージ。

MetricNamespace

メトリック名前空間クラスは、メトリック名前空間のメタデータを指定します。

名前 説明
classification

NamespaceClassification

名前空間の種類

id

string

メトリック名前空間の ID。

name

string

名前空間のエスケープされた名前。

properties

MetricNamespaceName

完全修飾名前空間名を含むプロパティ。

type

string

名前空間の型。

MetricNamespaceCollection

メトリック名前空間のコレクションを表します。

名前 説明
value

MetricNamespace[]

メトリック名前空間の値。

MetricNamespaceName

完全修飾メトリック名前空間名。

名前 説明
metricNamespaceName

string

メトリック名前空間の名前。

NamespaceClassification

名前空間の種類

名前 説明
Custom

string

Platform

string

Qos

string