Microsoft Azure

Azure Monitor: Metrics

Provides APIs for getting the metric data for Azure resources.

Developer tools#openapi

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Provides APIs for getting the metric data for Azure resources.

Endpoints 6

MetricDefinitions

  • GETMetricDefinitions_List/:resourceUri/providers/Microsoft.Insights/metricDefinitions?metricnamespace=stringLists the metric definitions for the resource.
  • GETMetricDefinitions_ListAtSubscriptionScope/subscriptions/:subscriptionId/providers/Microsoft.Insights/metricDefinitions?region=string&metricnamespace=stringLists the metric definitions for the subscription.

metricNamespaces

  • GETMetricNamespaces_List/:resourceUri/providers/microsoft.insights/metricNamespaces?startTime=stringLists the metric namespaces for the resource.

Metrics

  • GETMetrics_List/:resourceUri/providers/Microsoft.Insights/metrics?timespan=string&interval=string&metricnames=string&aggregation=string&top=0&orderby=string&$filter=string&resultType=Data&metricnamespace=string&AutoAdjustTimegrain=true&ValidateDimensions=true&rollupby=stringLists the metric values for a resource. This API used the default ARM throttling limits.
  • GETMetrics_ListAtSubscriptionScope/subscriptions/:subscriptionId/providers/Microsoft.Insights/metrics?region=string&timespan=string&interval=string&metricnames=string&aggregation=string&top=0&orderby=string&$filter=string&resultType=Data&metricnamespace=string&AutoAdjustTimegrain=true&ValidateDimensions=true&rollupby=stringLists the metric data for a subscription. This API used the default ARM throttling limits.
  • POSTMetrics_ListAtSubscriptionScopePost/subscriptions/:subscriptionId/providers/Microsoft.Insights/metrics?region=string&timespan=string&interval=string&metricnames=string&aggregation=string&top=0&orderby=string&$filter=string&resultType=Data&metricnamespace=string&AutoAdjustTimegrain=true&ValidateDimensions=true&rollupby=stringLists the metric data for a subscription. Parameters can be specified on either query params or the body. This API used the default ARM throttling limits.

API details

Base URL
https://management.azure.com
Authentication
OAuth 2.0 (implicit flow) with 1 scope
Operations
6 operations on 5 pathsGET 5POST 1
Main resources
Metrics 3MetricDefinitions 2metricNamespaces 1
Response formats
application/json
Description format
Swagger 2.0, API version 2024-02-01

How to test the Azure Monitor: Metrics in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Azure Monitor: Metrics collection, without the publisher's secrets.
  3. Add your credentialsThis API uses OAuth 2.0 (implicit flow) with 1 scope. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “MetricDefinitions_List” (GET /:resourceUri/providers/Microsoft.Insights/metricDefinitions?metricnamespace=string), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Azure Monitor: Metrics?

Provides APIs for getting the metric data for Azure resources. It is listed under Developer tools and has 6 endpoints.

Who publishes the Azure Monitor: Metrics?

It is listed from Microsoft Azure's public API description (an OpenAPI document), not published by Microsoft Azure on Swastik Codes. Anyone who controls azure.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Azure Monitor: Metrics?

Requests go to https://management.azure.com. Endpoint paths are added to this base URL.

How do I authenticate with the Azure Monitor: Metrics?

With OAuth 2.0 (implicit flow) with 1 scope.

How many endpoints does the Azure Monitor: Metrics have?

6 operations on 5 paths (5 GET, 1 POST). The largest groups are Metrics, MetricDefinitions, metricNamespaces.

Is forking the Azure Monitor: Metrics free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.