Azure Monitor · Schema

Azure Monitor Metric

Represents a metric value returned by the Azure Monitor Metrics API, containing time series data with aggregated values over specified intervals.

Application InsightsCloudLogsMetricsMonitoringObservability

Properties

Name Type Description
id string The metric ID, typically in the format of a fully qualified Azure resource ID with metric name.
type string The resource type of the metric resource, typically Microsoft.Insights/metrics.
name object The name of the metric.
displayDescription string Detailed description of this metric.
errorCode string Error code encountered while querying this specific metric.
errorMessage string Error message encountered while querying this specific metric.
unit object The unit of the metric.
timeseries array The time series returned when a data query is performed.
View JSON Schema on GitHub

JSON Schema

azure-monitor-metric-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://schema.azure.com/monitor/metric.json",
  "title": "Azure Monitor Metric",
  "description": "Represents a metric value returned by the Azure Monitor Metrics API, containing time series data with aggregated values over specified intervals.",
  "type": "object",
  "required": ["id", "type", "name", "unit", "timeseries"],
  "properties": {
    "id": {
      "type": "string",
      "description": "The metric ID, typically in the format of a fully qualified Azure resource ID with metric name."
    },
    "type": {
      "type": "string",
      "description": "The resource type of the metric resource, typically Microsoft.Insights/metrics."
    },
    "name": {
      "$ref": "#/$defs/LocalizableString",
      "description": "The name of the metric."
    },
    "displayDescription": {
      "type": "string",
      "description": "Detailed description of this metric."
    },
    "errorCode": {
      "type": "string",
      "description": "Error code encountered while querying this specific metric."
    },
    "errorMessage": {
      "type": "string",
      "description": "Error message encountered while querying this specific metric."
    },
    "unit": {
      "$ref": "#/$defs/MetricUnit",
      "description": "The unit of the metric."
    },
    "timeseries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TimeSeriesElement"
      },
      "description": "The time series returned when a data query is performed."
    }
  },
  "$defs": {
    "LocalizableString": {
      "type": "object",
      "required": ["value"],
      "properties": {
        "value": {
          "type": "string",
          "description": "The invariant value."
        },
        "localizedValue": {
          "type": "string",
          "description": "The locale-specific display name."
        }
      }
    },
    "MetricUnit": {
      "type": "string",
      "enum": [
        "Count",
        "Bytes",
        "Seconds",
        "CountPerSecond",
        "BytesPerSecond",
        "Percent",
        "MilliSeconds",
        "ByteSeconds",
        "Unspecified",
        "Cores",
        "MilliCores",
        "NanoCores",
        "BitsPerSecond"
      ],
      "description": "The unit of the metric."
    },
    "TimeSeriesElement": {
      "type": "object",
      "properties": {
        "metadatavalues": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MetadataValue"
          },
          "description": "The metadata values returned if a metadata filter was specified."
        },
        "data": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MetricValue"
          },
          "description": "An array of data points representing the metric values."
        }
      }
    },
    "MetadataValue": {
      "type": "object",
      "properties": {
        "name": {
          "$ref": "#/$defs/LocalizableString"
        },
        "value": {
          "type": "string",
          "description": "The value of the metadata."
        }
      }
    },
    "MetricValue": {
      "type": "object",
      "required": ["timeStamp"],
      "properties": {
        "timeStamp": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp for the metric value in ISO 8601 format."
        },
        "average": {
          "type": "number",
          "description": "The average value in the time range."
        },
        "minimum": {
          "type": "number",
          "description": "The least value in the time range."
        },
        "maximum": {
          "type": "number",
          "description": "The greatest value in the time range."
        },
        "total": {
          "type": "number",
          "description": "The sum of all of the values in the time range."
        },
        "count": {
          "type": "number",
          "description": "The number of samples in the time range."
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/azure-monitor-metric"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.