{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instana/json-schema/instana-mobile-app-monitoring-metric-description-schema.json",
  "title": "MobileAppMonitoringMetricDescription",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instana-mobile-app-catalog-api-openapi.yml#/components/schemas/MobileAppMonitoringMetricDescription",
  "type": "object",
  "properties": {
    "aggregations": {
      "type": "array",
      "description": "The types of aggregations that can be applied to a series of values.\nFor example, `P25` is 25th percentile. Note that not all aggregations are available for metrics.\nFor example, `Trace count` has only `SUM` as an aggregation whereas `Call Count` has two aggregations, `SUM` and `PER_SECOND`.\n",
      "items": {
        "type": "string",
        "description": "The types of aggregations that can be applied to a series of values.\nFor example, `P25` is 25th percentile. Note that not all aggregations are available for metrics.\nFor example, `Trace count` has only `SUM` as an aggregation whereas `Call Count` has two aggregations, `SUM` and `PER_SECOND`.\n",
        "enum": [
          "SUM",
          "MEAN",
          "MAX",
          "MIN",
          "P25",
          "P50",
          "P75",
          "P90",
          "P95",
          "P98",
          "P99",
          "P99_9",
          "P99_99",
          "DISTINCT_COUNT",
          "SUM_POSITIVE",
          "PER_SECOND",
          "INCREASE"
        ]
      },
      "uniqueItems": true
    },
    "beaconTypes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "uniqueItems": true
    },
    "defaultAggregation": {
      "type": "string",
      "description": "The preselected aggregation for a metric. For example, for `Call latency` the default aggregation is `MEAN`.",
      "enum": [
        "SUM",
        "MEAN",
        "MAX",
        "MIN",
        "P25",
        "P50",
        "P75",
        "P90",
        "P95",
        "P98",
        "P99",
        "P99_9",
        "P99_99",
        "DISTINCT_COUNT",
        "SUM_POSITIVE",
        "PER_SECOND",
        "INCREASE"
      ]
    },
    "description": {
      "type": "string",
      "description": "A description of the metric. For example, for `Call count` metric, the description would be something like `Number of received calls`"
    },
    "formatter": {
      "type": "string",
      "description": "* `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"
    },
    "label": {
      "type": "string",
      "description": "The name of the metric. For example, `Call count`, `Erroneous calls`, `Service count` etc."
    },
    "metricId": {
      "type": "string",
      "description": "The unique id of the metric. For example, `calls`, `erroneousCalls`, `latency` etc."
    },
    "pathToValueInBeacon": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "maxItems": 2147483647,
      "minItems": 1
    },
    "secondaryBeaconTypes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "uniqueItems": true
    },
    "tagName": {
      "type": "string"
    }
  },
  "required": [
    "aggregations",
    "beaconTypes",
    "formatter",
    "label",
    "metricId"
  ]
}