Azure Monitor · Schema

MetricDefinition

Application InsightsCloudLogsMetricsMonitoringObservability

Properties

Name Type Description
isDimensionRequired boolean Flag to indicate whether the dimension is required.
resourceId string The resource identifier of the resource that emitted the metric.
namespace string The namespace the metric belongs to.
name object
displayDescription string Detailed description of this metric.
category string Custom category name for this metric.
metricClass string The class of the metric.
unit string The unit of the metric.
primaryAggregationType string The primary aggregation type value defining how to use the values.
supportedAggregationTypes array The collection of what aggregation types are supported.
metricAvailabilities array The collection of what aggregation intervals are available.
id string The resource identifier of the metric definition.
dimensions array The name and the display name of the dimension, i.e. the localized string representation.
View JSON Schema on GitHub

JSON Schema

microsoft-azure-monitor-metricdefinition-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/MetricDefinition",
  "title": "MetricDefinition",
  "type": "object",
  "properties": {
    "isDimensionRequired": {
      "type": "boolean",
      "description": "Flag to indicate whether the dimension is required."
    },
    "resourceId": {
      "type": "string",
      "description": "The resource identifier of the resource that emitted the metric."
    },
    "namespace": {
      "type": "string",
      "description": "The namespace the metric belongs to."
    },
    "name": {
      "$ref": "#/components/schemas/LocalizableString"
    },
    "displayDescription": {
      "type": "string",
      "description": "Detailed description of this metric."
    },
    "category": {
      "type": "string",
      "description": "Custom category name for this metric."
    },
    "metricClass": {
      "type": "string",
      "enum": [
        "Availability",
        "Transactions",
        "Errors",
        "Latency",
        "Saturation"
      ],
      "description": "The class of the metric."
    },
    "unit": {
      "type": "string",
      "enum": [
        "Count",
        "Bytes",
        "Seconds",
        "CountPerSecond",
        "BytesPerSecond",
        "Percent",
        "MilliSeconds",
        "ByteSeconds",
        "Unspecified",
        "Cores",
        "MilliCores",
        "NanoCores",
        "BitsPerSecond"
      ],
      "description": "The unit of the metric."
    },
    "primaryAggregationType": {
      "type": "string",
      "enum": [
        "None",
        "Average",
        "Count",
        "Minimum",
        "Maximum",
        "Total"
      ],
      "description": "The primary aggregation type value defining how to use the values."
    },
    "supportedAggregationTypes": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "None",
          "Average",
          "Count",
          "Minimum",
          "Maximum",
          "Total"
        ]
      },
      "description": "The collection of what aggregation types are supported."
    },
    "metricAvailabilities": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/MetricAvailability"
      },
      "description": "The collection of what aggregation intervals are available."
    },
    "id": {
      "type": "string",
      "description": "The resource identifier of the metric definition."
    },
    "dimensions": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/LocalizableString"
      },
      "description": "The name and the display name of the dimension, i.e. the localized string representation."
    }
  }
}