{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instana/json-schema/instana-sli-configuration-schema.json",
  "title": "SliConfiguration",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instana-sli-settings-api-openapi.yml#/components/schemas/SliConfiguration",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique ID for each SLI",
      "maxLength": 64,
      "minLength": 0
    },
    "initialEvaluationTimestamp": {
      "type": "integer",
      "format": "int64",
      "description": "Initial evaluation timestamp in milliseconds (13-digit)"
    },
    "metricConfiguration": {
      "$ref": "#/$defs/MetricConfiguration"
    },
    "sliEntity": {
      "$ref": "#/$defs/SliEntity"
    },
    "sliName": {
      "type": "string",
      "description": "The name of the Service Level Indicator (SLI) specified during its creation",
      "maxLength": 256,
      "minLength": 0
    }
  },
  "required": [
    "id",
    "sliEntity",
    "sliName"
  ],
  "$defs": {
    "MetricConfiguration": {
      "type": "object",
      "description": "Details regarding the metric to be configured, including the metric name, threshold, and aggregation method",
      "properties": {
        "metricAggregation": {
          "type": "string",
          "description": "Specifies the types of aggregations that can be applied to a series of values.\nFor example, `P25` refers to the 25th percentile. Note that not all aggregation methods are available for every metric.\nFor instance, the `Call count` metric supports only the `SUM` aggregation, whereas the `Error rate` metric only supports the `MEAN` aggregation.\n",
          "enum": [
            "SUM",
            "MEAN",
            "MAX",
            "MIN",
            "P25",
            "P50",
            "P75",
            "P90",
            "P95",
            "P98",
            "P99",
            "P99_9",
            "P99_99",
            "DISTINCT_COUNT",
            "SUM_POSITIVE",
            "PER_SECOND",
            "INCREASE"
          ]
        },
        "metricName": {
          "type": "string",
          "description": "Defines the name of the metric to be monitored. Examples include `calls` and `latency`"
        },
        "threshold": {
          "type": "number",
          "format": "double",
          "description": "Specifies the threshold value for the metric being monitored",
          "exclusiveMinimum": 0
        }
      },
      "required": [
        "metricName"
      ]
    },
    "SliEntity": {
      "type": "object",
      "description": "Entity Type of the SLI Configuration",
      "properties": {
        "sliType": {
          "type": "string"
        }
      },
      "required": [
        "sliType"
      ]
    }
  }
}