다음을 통해 공유


Metric Namespaces - List

리소스의 메트릭 네임스페이스를 나열합니다.

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 매개 변수

Name In(다음 안에) 필수 형식 Description
resourceUri
path True

string

리소스의 식별자입니다.

api-version
query True

string

minLength: 1

이 작업에 사용할 API 버전입니다.

startTime
query

string

ISO 8601은 메트릭 네임스페이스를 쿼리할 날짜 시작 시간을 준수합니다.

응답

Name 형식 Description
200 OK

MetricNamespaceCollection

메트릭 네임스페이스 목록을 가져오는 데 성공한 요청

Other Status Codes

ErrorResponse

작업이 실패한 이유를 설명하는 오류 응답입니다.

보안

azure_auth

Azure Active Directory OAuth2 Flow

형식: oauth2
Flow: implicit
권한 부여 URL: https://login.microsoftonline.com/common/oauth2/authorize

범위

Name Description
user_impersonation 사용자 계정 가장

예제

Get Metric Namespaces without filter

샘플 요청

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

샘플 응답

{
  "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"
      }
    }
  ]
}

정의

Name Description
ErrorResponse

오류 응답의 형식을 설명합니다.

MetricNamespace

메트릭 네임스페이스 클래스는 메트릭 네임스페이스에 대한 메타데이터를 지정합니다.

MetricNamespaceCollection

메트릭 네임스페이스의 컬렉션을 나타냅니다.

MetricNamespaceName

정규화된 메트릭 네임스페이스 이름입니다.

NamespaceClassification

네임스페이스 종류

ErrorResponse

오류 응답의 형식을 설명합니다.

Name 형식 Description
code

string

오류 코드

message

string

작업이 실패한 이유를 나타내는 오류 메시지입니다.

MetricNamespace

메트릭 네임스페이스 클래스는 메트릭 네임스페이스에 대한 메타데이터를 지정합니다.

Name 형식 Description
classification

NamespaceClassification

네임스페이스 종류

id

string

메트릭 네임스페이스의 ID입니다.

name

string

네임스페이스의 이스케이프된 이름입니다.

properties

MetricNamespaceName

정규화된 네임스페이스 이름을 포함하는 속성입니다.

type

string

네임스페이스의 형식입니다.

MetricNamespaceCollection

메트릭 네임스페이스의 컬렉션을 나타냅니다.

Name 형식 Description
value

MetricNamespace[]

메트릭 네임스페이스의 값입니다.

MetricNamespaceName

정규화된 메트릭 네임스페이스 이름입니다.

Name 형식 Description
metricNamespaceName

string

메트릭 네임스페이스 이름입니다.

NamespaceClassification

네임스페이스 종류

Description
Custom
Platform
Qos