{
  "opencollection": "1.0.0",
  "info": {
    "name": "Azure Monitor Action Groups Metrics API",
    "version": "2022-06-01"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://login.microsoftonline.com/{tenantId}/oauth2/v2.0/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Metrics",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Azure Monitor Get an Application Insights metric",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://management.azure.com/apps/:appId/metrics/:metricId",
            "params": [
              {
                "name": "appId",
                "value": "",
                "type": "path",
                "description": "ID of the Application Insights component. This is the Application ID from the API Access settings blade in the Azure portal."
              },
              {
                "name": "metricId",
                "value": "",
                "type": "path",
                "description": "ID of the metric. Standard metrics include requests/count, requests/duration, dependencies/count, exceptions/count, etc."
              },
              {
                "name": "timespan",
                "value": "",
                "type": "query",
                "description": "The timespan over which to query in ISO 8601 duration format."
              },
              {
                "name": "interval",
                "value": "",
                "type": "query",
                "description": "The time interval to use when retrieving metric values."
              },
              {
                "name": "aggregation",
                "value": "",
                "type": "query",
                "description": "The aggregation to use when computing the metric values."
              },
              {
                "name": "segment",
                "value": "",
                "type": "query",
                "description": "The name of the dimension to segment the metric values by."
              },
              {
                "name": "top",
                "value": "",
                "type": "query",
                "description": "The number of segments to return."
              },
              {
                "name": "orderby",
                "value": "",
                "type": "query",
                "description": "The aggregation function and direction to sort the segments by."
              },
              {
                "name": "filter",
                "value": "",
                "type": "query",
                "description": "An expression to filter the results."
              }
            ]
          },
          "docs": "Gets metric values for a single Application Insights metric. Returns aggregated metric data for the specified timespan and interval."
        },
        {
          "info": {
            "name": "Azure Monitor Get multiple Application Insights metrics",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://management.azure.com/apps/:appId/metrics",
            "params": [
              {
                "name": "appId",
                "value": "",
                "type": "path",
                "description": "ID of the Application Insights component. This is the Application ID from the API Access settings blade in the Azure portal."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Gets metric values for multiple Application Insights metrics in a single request."
        },
        {
          "info": {
            "name": "Azure Monitor List metrics at subscription scope",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://management.azure.com/subscriptions/:subscriptionId/providers/Microsoft.Insights/metrics",
            "params": [
              {
                "name": "subscriptionId",
                "value": "",
                "type": "path",
                "description": "The ID of the target subscription."
              },
              {
                "name": "api-version",
                "value": "",
                "type": "query",
                "description": "Client API version."
              },
              {
                "name": "region",
                "value": "",
                "type": "query",
                "description": "The region where the metrics you want reside."
              },
              {
                "name": "timespan",
                "value": "",
                "type": "query",
                "description": "The timespan of the query in ISO 8601 duration format (startDateTime_ISO/endDateTime_ISO)."
              },
              {
                "name": "interval",
                "value": "",
                "type": "query",
                "description": "The interval (window size) of the query in ISO 8601 duration format."
              },
              {
                "name": "metricnames",
                "value": "",
                "type": "query",
                "description": "The names of the metrics (comma-separated) to retrieve. Maximum of 20."
              },
              {
                "name": "aggregation",
                "value": "",
                "type": "query",
                "description": "The list of aggregation types (comma-separated) to retrieve."
              },
              {
                "name": "$filter",
                "value": "",
                "type": "query",
                "description": "The $filter is used to reduce the set of metric data returned. Uses OData filter expressions."
              },
              {
                "name": "top",
                "value": "",
                "type": "query",
                "description": "The maximum number of records to retrieve. Defaults to 10."
              },
              {
                "name": "orderBy",
                "value": "",
                "type": "query",
                "description": "The aggregation to use for sorting results and the direction of the sort."
              },
              {
                "name": "resultType",
                "value": "",
                "type": "query",
                "description": "Reduces the set of data collected. Data or Metadata."
              },
              {
                "name": "metricNamespace",
                "value": "",
                "type": "query",
                "description": "Metric namespace to query metric definitions for."
              },
              {
                "name": "AutoAdjustTimegrain",
                "value": "",
                "type": "query",
                "description": "If set to true, the time grain is automatically adjusted based on the timespan."
              },
              {
                "name": "ValidateDimensions",
                "value": "",
                "type": "query",
                "description": "If set to false, invalid filter parameter values will be ignored."
              },
              {
                "name": "rollUpBy",
                "value": "",
                "type": "query",
                "description": "Dimension name(s) to rollup results by."
              }
            ]
          },
          "docs": "Lists the metric values for a subscription. The $filter parameter is used to reduce the set of metric data returned. Only some dimensions are available for subscriptions."
        },
        {
          "info": {
            "name": "Azure Monitor List metrics at subscription scope via POST",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://management.azure.com/subscriptions/:subscriptionId/providers/Microsoft.Insights/metrics",
            "params": [
              {
                "name": "subscriptionId",
                "value": "",
                "type": "path",
                "description": "The ID of the target subscription."
              },
              {
                "name": "api-version",
                "value": "",
                "type": "query",
                "description": "Client API version."
              },
              {
                "name": "region",
                "value": "",
                "type": "query",
                "description": "The region where the metrics you want reside."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Lists the metric values for a subscription using a POST request. Allows the same filtering as the GET variant but with a request body for complex queries."
        },
        {
          "info": {
            "name": "Azure Monitor List metrics for a resource",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://management.azure.com/:resourceUri/providers/Microsoft.Insights/metrics",
            "params": [
              {
                "name": "resourceUri",
                "value": "",
                "type": "path",
                "description": "The identifier of the resource."
              },
              {
                "name": "api-version",
                "value": "",
                "type": "query",
                "description": "Client API version."
              },
              {
                "name": "timespan",
                "value": "",
                "type": "query",
                "description": "The timespan of the query in ISO 8601 duration format (startDateTime_ISO/endDateTime_ISO)."
              },
              {
                "name": "interval",
                "value": "",
                "type": "query",
                "description": "The interval (window size) of the query in ISO 8601 duration format."
              },
              {
                "name": "metricnames",
                "value": "",
                "type": "query",
                "description": "The names of the metrics (comma-separated) to retrieve. Maximum of 20."
              },
              {
                "name": "aggregation",
                "value": "",
                "type": "query",
                "description": "The list of aggregation types (comma-separated) to retrieve."
              },
              {
                "name": "$filter",
                "value": "",
                "type": "query",
                "description": "The $filter is used to reduce the set of metric data returned. Uses OData filter expressions."
              },
              {
                "name": "top",
                "value": "",
                "type": "query",
                "description": "The maximum number of records to retrieve. Defaults to 10."
              },
              {
                "name": "orderBy",
                "value": "",
                "type": "query",
                "description": "The aggregation to use for sorting results and the direction of the sort."
              },
              {
                "name": "resultType",
                "value": "",
                "type": "query",
                "description": "Reduces the set of data collected. Data or Metadata."
              },
              {
                "name": "metricNamespace",
                "value": "",
                "type": "query",
                "description": "Metric namespace to query metric definitions for."
              },
              {
                "name": "AutoAdjustTimegrain",
                "value": "",
                "type": "query",
                "description": "If set to true, the time grain is automatically adjusted based on the timespan."
              },
              {
                "name": "ValidateDimensions",
                "value": "",
                "type": "query",
                "description": "If set to false, invalid filter parameter values will be ignored."
              },
              {
                "name": "rollUpBy",
                "value": "",
                "type": "query",
                "description": "Dimension name(s) to rollup results by."
              }
            ]
          },
          "docs": "Lists the metric values for a resource. The $filter parameter is used to reduce the set of metric data returned."
        }
      ]
    }
  ],
  "bundled": true
}