{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instana/json-schema/instana-maintenance-config-schema.json",
  "title": "MaintenanceConfig",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instana-maintenance-configuration-api-openapi.yml#/components/schemas/MaintenanceConfig",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "ID of the Maintenance Window Configuration.",
      "maxLength": 64,
      "minLength": 0
    },
    "name": {
      "type": "string",
      "description": "Name of the Maintenance Window Configuration.",
      "maxLength": 256,
      "minLength": 0
    },
    "query": {
      "type": "string",
      "description": "Dynamic Focus Query that determines the scope of the Maintenance Window configuration.",
      "maxLength": 2048,
      "minLength": 0
    },
    "windows": {
      "type": "array",
      "description": "A set of time periods when the Maintenance Window Configuration is active.",
      "items": {
        "$ref": "#/$defs/MaintenanceWindow"
      },
      "maxItems": 1,
      "minItems": 0,
      "uniqueItems": true
    }
  },
  "required": [
    "id",
    "name",
    "query"
  ],
  "$defs": {
    "MaintenanceWindow": {
      "type": "object",
      "description": "A set of time periods when the Maintenance Window Configuration is active.",
      "properties": {
        "end": {
          "type": "integer",
          "format": "int64",
          "minimum": 1
        },
        "id": {
          "type": "string",
          "maxLength": 64,
          "minLength": 0
        },
        "start": {
          "type": "integer",
          "format": "int64",
          "minimum": 0
        }
      },
      "required": [
        "id"
      ]
    }
  }
}