{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instana/json-schema/instana-infrastructure-metric-result-schema.json",
  "title": "InfrastructureMetricResult",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instana-infrastructure-metrics-api-openapi.yml#/components/schemas/InfrastructureMetricResult",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MetricItem"
      }
    }
  },
  "$defs": {
    "MetricItem": {
      "type": "object",
      "properties": {
        "from": {
          "type": "integer",
          "format": "int64",
          "description": "Start of timeframe expressed as the Unix epoch time in milliseconds"
        },
        "host": {
          "type": "string",
          "description": "Host name"
        },
        "label": {
          "type": "string",
          "description": "Entitiy label"
        },
        "metrics": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "number"
              }
            }
          }
        },
        "plugin": {
          "type": "string",
          "description": "Plugin name"
        },
        "snapshotId": {
          "type": "string",
          "description": "Id of the exact metric you want to retrieve, eg. \"cpu.user\", \"clientrequests.read.mean\""
        },
        "tags": {
          "type": "array",
          "description": "Entitiy tags",
          "items": {
            "type": "string",
            "description": "Entitiy tags"
          }
        },
        "to": {
          "type": "integer",
          "format": "int64",
          "description": "End of timeframe expressed as the Unix epoch time in milliseconds"
        }
      }
    }
  }
}