{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instana/json-schema/instana-sloconfig-with-rbactag-schema.json",
  "title": "SLOConfigWithRBACTag",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instana-service-levels-objective-slo-configurations-api-openapi.yml#/components/schemas/SLOConfigWithRBACTag",
  "type": "object",
  "properties": {
    "createdDate": {
      "type": "string",
      "format": "date-time",
      "description": "Created date of Service Levels Objective Configuration"
    },
    "entity": {
      "$ref": "#/$defs/SloEntity"
    },
    "id": {
      "type": "string",
      "description": "Service Levels Objective Configuration ID",
      "maxLength": 64,
      "minLength": 0
    },
    "indicator": {
      "$ref": "#/$defs/ServiceLevelIndicator"
    },
    "lastUpdated": {
      "type": "string",
      "format": "date-time",
      "description": "Last updated date of Service Levels Objective Configuration"
    },
    "name": {
      "type": "string",
      "description": "Name of the Service Levels Objective Configuration"
    },
    "rbacTags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ApiTag"
      },
      "uniqueItems": true
    },
    "tags": {
      "type": "array",
      "description": "List of tags associated with Service Levels Objective Configuration",
      "items": {
        "type": "string",
        "description": "List of tags associated with Service Levels Objective Configuration"
      }
    },
    "target": {
      "type": "number",
      "format": "double",
      "description": "Service Levels Objective Configuration Target",
      "maximum": 0.9999,
      "exclusiveMinimum": 0
    },
    "timeWindow": {
      "$ref": "#/$defs/TimeWindow"
    }
  },
  "required": [
    "entity",
    "indicator",
    "name",
    "tags",
    "target",
    "timeWindow"
  ],
  "$defs": {
    "ApiTag": {
      "type": "object",
      "properties": {
        "displayName": {
          "type": "string",
          "maxLength": 256,
          "minLength": 0
        },
        "id": {
          "type": "string",
          "maxLength": 64,
          "minLength": 0
        }
      },
      "required": [
        "displayName",
        "id"
      ]
    },
    "ServiceLevelIndicator": {
      "type": "object",
      "description": "Indicator of the Service Levels Objective Configuration, it indicates the type of metric by which the SLO should be evaluated",
      "properties": {
        "aggregation": {
          "type": "string",
          "description": "Aggregation Type for the Threshold Value",
          "enum": [
            "SUM",
            "MEAN",
            "MAX",
            "MIN",
            "P25",
            "P50",
            "P75",
            "P90",
            "P95",
            "P98",
            "P99",
            "P99_9",
            "P99_99",
            "DISTINCT_COUNT",
            "SUM_POSITIVE",
            "PER_SECOND",
            "INCREASE"
          ]
        },
        "blueprint": {
          "type": "string",
          "enum": [
            "latency",
            "availability",
            "traffic",
            "saturation",
            "custom"
          ]
        },
        "operator": {
          "type": "string",
          "description": "Operator for the Threshold Value",
          "enum": [
            ">",
            ">=",
            "<",
            "<="
          ]
        },
        "serviceLevelsMeasurement": {
          "type": "string",
          "description": "Defines Measurement Type of SLO",
          "enum": [
            "eventBased",
            "timeBased",
            "erroneous",
            "all"
          ]
        },
        "threshold": {
          "type": "number",
          "format": "double",
          "description": "Threshold Value for the Blueprint"
        },
        "type": {
          "type": "string",
          "enum": [
            "eventBased",
            "timeBased"
          ]
        }
      }
    },
    "SloEntity": {
      "type": "object",
      "description": "Entity of the Service Levels Objective Configuration, it could be either Application nor Website",
      "properties": {
        "tagFilterExpression": {
          "$ref": "#/$defs/TagFilterExpressionElement"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ]
    },
    "TagFilterExpressionElement": {
      "type": "object",
      "description": "Boolean expression of tag filters to define the scope of relevant calls.",
      "properties": {
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ]
    },
    "TimeWindow": {
      "type": "object",
      "description": "Time Window type of the SLO, it could be Fixed or Rolling",
      "properties": {
        "duration": {
          "type": "integer",
          "format": "int32",
          "description": "Duration of the Time Window"
        },
        "durationUnit": {
          "type": "string",
          "description": "Unit of the Time Window Duration",
          "enum": [
            "millisecond",
            "second",
            "minute",
            "hour",
            "day",
            "week",
            "month"
          ]
        },
        "timezone": {
          "type": "string",
          "description": "Timezone string"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "duration",
        "durationUnit",
        "type"
      ]
    }
  }
}