Metric Namespaces - List

Lists the metric namespaces for the resource.

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 Parameters

Name In Required Type Description
resourceUri
path True

string

The identifier of the resource.

api-version
query True

string

The API version to use for this operation.

startTime
query

string

The ISO 8601 conform Date start time from which to query for metric namespaces.

Responses

Name Type Description
200 OK

MetricNamespaceCollection

Successful request to get the list of metric namespaces

Other Status Codes

ErrorResponse

Error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow

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

Scopes

Name Description
user_impersonation impersonate your user account

Examples

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

Definitions

Name Description
ErrorResponse

Describes the format of Error response.

MetricNamespace

Metric namespace class specifies the metadata for a metric namespace.

MetricNamespaceCollection

Represents collection of metric namespaces.

MetricNamespaceName

The fully qualified metric namespace name.

NamespaceClassification

Kind of namespace

ErrorResponse

Describes the format of Error response.

Name Type Description
code

string

Error code

message

string

Error message indicating why the operation failed.

MetricNamespace

Metric namespace class specifies the metadata for a metric namespace.

Name Type Description
classification

NamespaceClassification

Kind of namespace

id

string

The ID of the metric namespace.

name

string

The escaped name of the namespace.

properties

MetricNamespaceName

Properties which include the fully qualified namespace name.

type

string

The type of the namespace.

MetricNamespaceCollection

Represents collection of metric namespaces.

Name Type Description
value

MetricNamespace[]

The values for the metric namespaces.

MetricNamespaceName

The fully qualified metric namespace name.

Name Type Description
metricNamespaceName

string

The metric namespace name.

NamespaceClassification

Kind of namespace

Name Type Description
Custom

string

Platform

string

Qos

string