Dynatrace · JSON Structure

Dynatrace Metrics V2 Metric Data Structure

The result of a metric query, containing time-series data for each requested metric and dimension combination.

Type: object Properties: 4
AI OperationsAnalyticsAPMApplication Performance MonitoringApplication SecurityAutomationCloud MonitoringDigital Experience ManagementIntelligenceObservability

MetricData is a JSON Structure definition published by Dynatrace, describing 4 properties. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

resolution nextPageKey totalCount result

Meta-schema: https://json-structure.org/draft/2020-12/schema

JSON Structure

Raw ↑
{
  "type": "object",
  "description": "The result of a metric query, containing time-series data for each requested metric and dimension combination.",
  "name": "MetricData",
  "properties": {
    "resolution": {
      "type": "string",
      "description": "The resolution of the data points in the response. For example, 1h means each data point represents one hour of data."
    },
    "nextPageKey": {
      "type": "string",
      "description": "The cursor for the next page of results if the response is paginated. Null if all results are returned."
    },
    "totalCount": {
      "type": "integer",
      "description": "The total number of data series in the result."
    },
    "result": {
      "type": "array",
      "description": "The list of metric series collections, one per metric key matched by the selector.",
      "items": {
        "type": "object",
        "description": "A collection of time-series data for a single metric key, containing one series per unique dimension combination.",
        "properties": {
          "metricId": {
            "type": "string",
            "description": "The metric key for this collection, including any applied transformations."
          },
          "data": {
            "type": "array",
            "description": "The list of individual time series, one per unique combination of dimension values.",
            "items": {
              "type": "object",
              "description": "A single time series representing metric values for a specific combination of dimension values over a time range.",
              "properties": {
                "dimensionMap": {
                  "type": "object",
                  "description": "A map of dimension names to their values for this specific series. For example, {\"host\": \"web-01\", \"environment\": \"production\"}."
                },
                "dimensions": {
                  "type": "array",
                  "description": "An ordered list of dimension values corresponding to the metric's dimension definitions.",
                  "items": {
                    "type": "object"
                  }
                },
                "timestamps": {
                  "type": "array",
                  "description": "Unix timestamps in milliseconds for each data point in the series. Aligns one-to-one with the values array.",
                  "items": {
                    "type": "object"
                  }
                },
                "values": {
                  "type": "array",
                  "description": "Metric values corresponding to each timestamp. A null value indicates no data was recorded for that time slot (gap in the data).",
                  "items": {
                    "type": "object"
                  }
                }
              },
              "required": [
                "timestamps",
                "values"
              ]
            }
          }
        }
      }
    }
  },
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}