{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instana/json-schema/instana-correction-configuration-schema.json",
  "title": "CorrectionConfiguration",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instana-slo-correction-configurations-api-openapi.yml#/components/schemas/CorrectionConfiguration",
  "type": "object",
  "properties": {
    "active": {
      "type": "boolean",
      "description": "If value is true, then the correction window is active"
    },
    "createdDate": {
      "type": "string",
      "format": "date-time",
      "description": "Created date of SLO Correction Window Configuration"
    },
    "description": {
      "type": "string",
      "description": "Description of the SLO Correction Window Configuration"
    },
    "id": {
      "type": "string",
      "description": "SLO Correction Window Configuration ID",
      "maxLength": 64,
      "minLength": 0
    },
    "lastUpdated": {
      "type": "string",
      "format": "date-time",
      "description": "Last updated date of SLO Correction Window Configuration"
    },
    "name": {
      "type": "string",
      "description": "Name of the SLO Correction Window Configuration"
    },
    "scheduling": {
      "$ref": "#/$defs/CorrectionScheduling"
    },
    "sloIds": {
      "type": "array",
      "description": "This is the list of SLO configurations related to this Correction Window.",
      "items": {
        "type": "string",
        "description": "This is the list of SLO configurations related to this Correction Window."
      },
      "maxItems": 1024,
      "minItems": 0,
      "uniqueItems": true
    },
    "tags": {
      "type": "array",
      "description": "List of tags associated with SLO Correction Window Configuration",
      "items": {
        "type": "string",
        "description": "List of tags associated with SLO Correction Window Configuration"
      },
      "uniqueItems": true
    }
  },
  "required": [
    "name",
    "scheduling",
    "sloIds",
    "tags"
  ],
  "$defs": {
    "CorrectionScheduling": {
      "type": "object",
      "description": "Time scheduling of the SLO Correction Window configurations.",
      "properties": {
        "duration": {
          "type": "integer",
          "format": "int32",
          "description": "Duration of the correction window, defined by the count of time units."
        },
        "durationUnit": {
          "type": "string",
          "description": "Unit for duration. Supported values: `MINUTE`, `HOUR`, `DAY`.",
          "enum": [
            "millisecond",
            "second",
            "minute",
            "hour",
            "day",
            "week",
            "month"
          ]
        },
        "recurrent": {
          "type": "boolean"
        },
        "recurrentRule": {
          "type": "string",
          "description": "Recurrence Rule defines how the event recurs, using iCalendar RRULE format (e.g., `FREQ=DAILY;INTERVAL=1`).It supports fields like FREQ, INTERVAL, BYDAY, etc. Refer to RFC 5545: https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.10",
          "maxLength": 2048,
          "minLength": 0
        },
        "startTime": {
          "type": "string",
          "format": "date-time",
          "description": "Start time of the correction window in milliseconds since epoch (UTC) (e.g., `1706713140000`)."
        }
      },
      "required": [
        "duration",
        "durationUnit",
        "startTime"
      ]
    }
  }
}