{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instana/json-schema/instana-metric-instance-schema.json",
  "title": "MetricInstance",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instana-infrastructure-catalog-api-openapi.yml#/components/schemas/MetricInstance",
  "type": "object",
  "properties": {
    "custom": {
      "type": "boolean"
    },
    "description": {
      "type": "string"
    },
    "formatter": {
      "type": "string",
      "description": "|\n* NUMBER: Generic number\n* BYTES: Number of bytes\n* KILO_BYTES: Number of kilobytes\n* MEGA_BYTES: Number of megabytes\n* PERCENTAGE: Percentage in scale [0,1]\n* PERCENTAGE_100: Percentage in scale [0,100]\n* PERCENTAGE_NO_CAPPING: Percentage in scale [0,1] but value could exceed 1 for example when metric is aggregated\n* PERCENTAGE_100_NO_CAPPING: Percentage in scale [0,100] but value could exceed 100 for example when metric is aggregated\n* LATENCY: Time in milliseconds, with value of 0 should not be considered a a strict 0, but considered as < 1ms\n* NANOS: Time in nanoseconds\n* MILLIS: Time in milliseconds\n* MICROS: Time in microseconds\n* SECONDS: Time in seconds\n* RATE: Number of occurrences per second\n* BYTE_RATE: Number of bytes per second\n* UNDEFINED: Metric value unit is not known\n",
      "enum": [
        "NUMBER",
        "BYTES",
        "KILO_BYTES",
        "MEGA_BYTES",
        "PERCENTAGE",
        "PERCENTAGE_100",
        "PERCENTAGE_NO_CAPPING",
        "PERCENTAGE_100_NO_CAPPING",
        "LATENCY",
        "NANOS",
        "MILLIS",
        "MICROS",
        "SECONDS",
        "RATE",
        "BYTE_RATE",
        "UNDEFINED"
      ]
    },
    "label": {
      "type": "string"
    },
    "metricId": {
      "type": "string"
    },
    "pluginId": {
      "type": "string"
    }
  },
  "required": [
    "description",
    "formatter",
    "label",
    "metricId",
    "pluginId"
  ]
}