{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instana/json-schema/instana-correction-schema.json",
  "title": "Correction",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instana-slo-correction-windows-api-openapi.yml#/components/schemas/Correction",
  "type": "object",
  "properties": {
    "activeCorrectionConfigIds": {
      "type": "array",
      "description": "IDs of correction configs that are active",
      "items": {
        "type": "string",
        "description": "IDs of correction configs that are active"
      },
      "uniqueItems": true
    },
    "correctionWindows": {
      "type": "array",
      "description": "List of Correction Windows",
      "items": {
        "$ref": "#/$defs/CorrectionWindow"
      }
    },
    "from": {
      "type": "string",
      "format": "date-time",
      "description": "Correction starting timestamp in milliseconds (13-digit)"
    },
    "inActiveCorrectionConfigIds": {
      "type": "array",
      "description": "IDs of correction configs that are inactive",
      "items": {
        "type": "string",
        "description": "IDs of correction configs that are inactive"
      },
      "uniqueItems": true
    },
    "to": {
      "type": "string",
      "format": "date-time",
      "description": "Correction ending timestamp in milliseconds (13-digit)"
    }
  },
  "$defs": {
    "CorrectionWindow": {
      "type": "object",
      "description": "List of Correction Windows",
      "properties": {
        "correctionConfigs": {
          "type": "array",
          "description": "IDs of the Correction configurations in the Correction Window",
          "items": {
            "type": "string",
            "description": "IDs of the Correction configurations in the Correction Window"
          },
          "uniqueItems": true
        },
        "from": {
          "type": "string",
          "format": "date-time",
          "description": "Correction Window starting timestamp in milliseconds (13-digit)"
        },
        "sloConfigs": {
          "type": "array",
          "description": "IDs of the SLO configurations in the Correction Window",
          "items": {
            "type": "string",
            "description": "IDs of the SLO configurations in the Correction Window"
          },
          "uniqueItems": true
        },
        "to": {
          "type": "string",
          "format": "date-time",
          "description": "Correction Window ending timestamp in milliseconds (13-digit)"
        }
      }
    }
  }
}