{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure/json-schema/microsoft-azure-metric-metadata-schema.json",
  "title": "MetricMetadata",
  "description": "The metric meta data",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-adds-api-openapi.yml#/components/schemas/MetricMetadata",
  "type": "object",
  "properties": {
    "metricsProcessorClassName": {
      "description": "The name of the class which retrieve and process the metric.",
      "type": "string"
    },
    "metricName": {
      "description": "The metric name",
      "type": "string"
    },
    "groupings": {
      "description": "The groupings for the metrics.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/MetricGroup"
      }
    },
    "displayName": {
      "description": "The display name for the metric.",
      "type": "string"
    },
    "valueKind": {
      "description": "Indicates if the metrics is a rate,value, percent or duration type.",
      "type": "string"
    },
    "minValue": {
      "description": "The minimum value.",
      "type": "integer"
    },
    "maxValue": {
      "description": "The maximum value.",
      "type": "integer"
    },
    "kind": {
      "description": "Indicates whether the dashboard to represent the metric is a line, bar,pie, area or donut chart.",
      "type": "string"
    },
    "isDefault": {
      "description": "Indicates if the metric is a default metric or not.",
      "type": "boolean"
    },
    "isPerfCounter": {
      "description": "Indicates if the metric is a performance counter metric or not.",
      "type": "boolean"
    },
    "isDevOps": {
      "description": "Indicates if the metric is visible to DevOps or not.",
      "type": "boolean"
    }
  },
  "$defs": {
    "MetricGroup": {
      "description": " The metric group details.",
      "type": "object",
      "properties": {
        "key": {
          "description": "The key for the group.",
          "type": "string"
        },
        "displayName": {
          "description": "The display name for the group.",
          "type": "string"
        },
        "invisibleForUi": {
          "description": "indicates if the metric group is displayed in Azure Active Directory Connect Health UI.",
          "type": "boolean"
        }
      }
    }
  }
}