{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/dynatrace/refs/heads/main/json-schema/metrics-api-v2-metric-descriptor-collection-schema.json",
  "title": "MetricDescriptorCollection",
  "description": "A paginated collection of metric descriptors returned by the list metrics endpoint.",
  "type": "object",
  "properties": {
    "nextPageKey": {
      "type": "string",
      "description": "The cursor for the next page of results. Include this value as the nextPageKey query parameter in the next request. Null if there are no more results.",
      "nullable": true,
      "example": "example-value"
    },
    "totalCount": {
      "type": "integer",
      "format": "int64",
      "description": "The total number of metrics available matching the query.",
      "example": 500
    },
    "resolution": {
      "type": "string",
      "description": "The resolution of the data if applicable.",
      "example": "example-value"
    },
    "metrics": {
      "type": "array",
      "description": "The list of metric descriptors on this page.",
      "items": {
        "$ref": "#/components/schemas/MetricDescriptor"
      },
      "example": [
        {
          "metricId": "abc123",
          "displayName": "Production Service",
          "description": "Example description.",
          "unit": "example-value",
          "dduBillable": true,
          "created": 500,
          "lastWritten": 500,
          "entityType": [
            "STANDARD"
          ],
          "aggregationTypes": [
            "min"
          ],
          "dimensionDefinitions": [
            {
              "key": "example-value",
              "name": "Production Service",
              "type": "STANDARD",
              "displayName": "Production Service"
            }
          ],
          "transformations": [
            "example-value"
          ],
          "defaultAggregation": {}
        }
      ]
    }
  }
}