{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/appdynamics/json-schema/appdynamics-metric-data-schema.json",
  "title": "MetricData",
  "description": "Metric data returned for a specific metric path containing one or more data points depending on the rollup parameter.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/appdynamics-metrics-api-openapi.yml#/components/schemas/MetricData",
  "type": "object",
  "properties": {
    "metricId": {
      "type": "integer",
      "format": "int64",
      "description": "The internal numeric identifier for the metric."
    },
    "metricName": {
      "type": "string",
      "description": "The full metric path name."
    },
    "metricPath": {
      "type": "string",
      "description": "The hierarchical path of the metric using pipe delimiters."
    },
    "frequency": {
      "type": "string",
      "description": "The frequency of the metric data points."
    },
    "metricValues": {
      "type": "array",
      "description": "The array of metric data point values.",
      "items": {
        "$ref": "#/$defs/MetricValue"
      }
    }
  },
  "$defs": {
    "MetricValue": {
      "type": "object",
      "description": "A single metric data point with statistical values for a time period.",
      "properties": {
        "startTimeInMillis": {
          "type": "integer",
          "format": "int64",
          "description": "The start time of this data point in Unix epoch milliseconds."
        },
        "occurrences": {
          "type": "integer",
          "description": "The number of observations in this time period."
        },
        "current": {
          "type": "integer",
          "format": "int64",
          "description": "The current or last observed value."
        },
        "min": {
          "type": "integer",
          "format": "int64",
          "description": "The minimum value observed in this time period."
        },
        "max": {
          "type": "integer",
          "format": "int64",
          "description": "The maximum value observed in this time period."
        },
        "count": {
          "type": "integer",
          "format": "int64",
          "description": "The total count of observations."
        },
        "sum": {
          "type": "integer",
          "format": "int64",
          "description": "The sum of all values in this time period."
        },
        "value": {
          "type": "integer",
          "format": "int64",
          "description": "The computed value based on the rollup type."
        },
        "standardDeviation": {
          "type": "number",
          "format": "double",
          "description": "The standard deviation of values in this time period."
        }
      }
    }
  }
}