{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coralogix/json-schema/coralogix-get-case-settings-response-schema.json",
  "title": "Get case settings response",
  "description": "Response containing the requested case settings team configuration.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coralogix-case-settings-service-api-openapi.yml#/components/schemas/GetCaseSettingsResponse",
  "required": [
    "caseSettings"
  ],
  "type": "object",
  "properties": {
    "caseSettings": {
      "allOf": [
        {
          "$ref": "#/$defs/CaseSettings"
        }
      ],
      "description": "The requested case settings team configuration"
    }
  },
  "$defs": {
    "AlertSuppressionStrategy": {
      "enum": [
        "ALERT_SUPPRESSION_STRATEGY_UNSPECIFIED",
        "ALERT_SUPPRESSION_STRATEGY_IGNORE",
        "ALERT_SUPPRESSION_STRATEGY_CREATE_CASE"
      ],
      "type": "string",
      "description": "Alert suppression strategy."
    },
    "All": {
      "title": "All filter values selected",
      "type": "object",
      "additionalProperties": false,
      "description": "Represents selection of all items in the filter"
    },
    "AutoCloseConfig": {
      "title": "Auto Close config",
      "required": [
        "postResolutionPeriod"
      ],
      "type": "object",
      "properties": {
        "postResolutionPeriod": {
          "description": "Period after which resolved cases are automatically closed.",
          "maxLength": 30,
          "minLength": 2,
          "pattern": "^[\\s\\S]*$",
          "type": "string",
          "x-coralogix-presence": true
        }
      },
      "description": "Configuration for automatically closing cases after a certain period past resolution."
    },
    "AutoResolveConfig": {
      "title": "Auto resolve config",
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Enable/disable automatic resolution"
        },
        "inactivePeriod": {
          "description": "Period of inactivity after which cases are automatically resolved.",
          "minLength": 0,
          "type": "string",
          "x-coralogix-presence": true
        }
      },
      "description": "Configuration for automatically resolving cases after a certain period of inactivity."
    },
    "CaseKPIs": {
      "title": "KPI settings",
      "type": "object",
      "properties": {
        "thresholds": {
          "minItems": 0,
          "type": "array",
          "items": {
            "$ref": "#/$defs/KPISettings"
          },
          "description": "List of KPI thresholds for different case priorities."
        }
      },
      "description": "Case lifecycle KPI thresholds grouped first by KPI type and then by case priority."
    },
    "CaseLifecycle": {
      "title": "Case lifecycle settings",
      "type": "object",
      "properties": {
        "alertSuppressionStrategy": {
          "allOf": [
            {
              "$ref": "#/$defs/AlertSuppressionStrategy"
            }
          ],
          "description": "Configuration for how cases process suppressed alerts."
        },
        "autoClose": {
          "allOf": [
            {
              "$ref": "#/$defs/AutoCloseConfig"
            }
          ],
          "description": "Configuration for automatically closing resolved cases after a certain period. If not defined, it will fallback to auto closure after 1 week."
        },
        "autoResolve": {
          "allOf": [
            {
              "$ref": "#/$defs/AutoResolveConfig"
            }
          ],
          "description": "Configuration for inactive cases resolution."
        },
        "kpi": {
          "allOf": [
            {
              "$ref": "#/$defs/CaseKPIs"
            }
          ],
          "description": "KPI thresholds for acknowledgement and resolution, grouped by case priority."
        },
        "resolutionSnoozePeriod": {
          "description": "Period after resolution during which new cases are snoozed.",
          "minLength": 0,
          "type": "string",
          "x-coralogix-presence": true
        },
        "suppressionPeriod": {
          "description": "Default period during which duplicate or related cases are suppressed.",
          "minLength": 0,
          "type": "string",
          "x-coralogix-presence": true
        }
      },
      "description": "Team-level configuration options for the lifecycle of case, such as suppression and snooze periods."
    },
    "CasePriority": {
      "enum": [
        "CASE_PRIORITY_UNSPECIFIED",
        "CASE_PRIORITY_P1",
        "CASE_PRIORITY_P2",
        "CASE_PRIORITY_P3",
        "CASE_PRIORITY_P4",
        "CASE_PRIORITY_P5"
      ],
      "type": "string",
      "description": "Case priority."
    },
    "CaseSettings": {
      "title": "Case settings team configuration",
      "type": "object",
      "properties": {
        "caseLifecycle": {
          "allOf": [
            {
              "$ref": "#/$defs/CaseLifecycle"
            }
          ],
          "description": "Case lifecycle settings for the team"
        },
        "createTime": {
          "description": "Timestamp when the team configuration was created",
          "format": "date-time",
          "maxLength": 30,
          "minLength": 20,
          "type": "string",
          "x-coralogix-presence": true
        },
        "globalIndicatorSettings": {
          "allOf": [
            {
              "$ref": "#/$defs/GlobalIndicatorSettings"
            }
          ],
          "description": "Settings for the team"
        },
        "id": {
          "maxLength": 36,
          "minLength": 36,
          "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
          "type": "string",
          "description": "Unique identifier for the team configuration"
        },
        "name": {
          "description": "Human-readable name for the team configuration",
          "maxLength": 4096,
          "minLength": 1,
          "pattern": "^[\\s\\S]*$",
          "type": "string",
          "x-coralogix-presence": true
        },
        "updateTime": {
          "description": "Timestamp when the team configuration was last updated",
          "format": "date-time",
          "maxLength": 30,
          "minLength": 20,
          "type": "string",
          "x-coralogix-presence": true
        }
      },
      "description": "Team-level configuration entity for case management."
    },
    "EntityLabelFilter": {
      "title": "All or EntityLabel list",
      "type": "object",
      "oneOf": [
        {
          "required": [
            "all"
          ],
          "type": "object"
        },
        {
          "required": [
            "values"
          ],
          "type": "object"
        },
        {
          "type": "object",
          "not": {
            "anyOf": [
              {
                "required": [
                  "all"
                ],
                "type": "object"
              },
              {
                "required": [
                  "values"
                ],
                "type": "object"
              }
            ]
          }
        }
      ],
      "properties": {
        "all": {
          "$ref": "#/$defs/All"
        },
        "values": {
          "$ref": "#/$defs/EntityLabelFilter.Values"
        }
      },
      "description": "Select all items from a specific list of EntityLabels (Key/Values)."
    },
    "EntityLabelFilter.Values": {
      "type": "object",
      "properties": {
        "items": {
          "minItems": 0,
          "type": "array",
          "items": {
            "$ref": "#/$defs/v1.KeyValue"
          },
          "description": "List of EntityLabels (Key/Value) to filter to. Passing empty list here means no alerts will be processed."
        }
      },
      "description": "An explicit list of entity label key-value pairs to include in the filter."
    },
    "GlobalIndicatorSettings": {
      "title": "Global indicator settings",
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Enable/disable this setting. When this is disabled, no alerts will be processed for cases."
        },
        "filteringConditions": {
          "maxItems": 1000,
          "minItems": 0,
          "type": "array",
          "items": {
            "$ref": "#/$defs/IndicatorFilter"
          },
          "description": "Whitelist conditions for the alerts to be processed. Empty list means all alerts are processed. Filtering_condition evaluations will be OR'ed together"
        }
      },
      "description": "Team-level indicator configuration options for case management, including case lifecycle and event filtering conditions."
    },
    "IndicatorFilter": {
      "title": "Indicator filter",
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Enable/disable this filter"
        },
        "entityLabels": {
          "allOf": [
            {
              "$ref": "#/$defs/EntityLabelFilter"
            }
          ],
          "description": "Selected entity labels for filtering"
        },
        "priorities": {
          "allOf": [
            {
              "$ref": "#/$defs/IndicatorPriorityFilter"
            }
          ],
          "description": "Selected priorities for filtering"
        }
      },
      "description": "Object for filtering signals to be processed by the cases pipeline. The filters will be AND'ed together."
    },
    "IndicatorPriority": {
      "title": "Indicator priority",
      "enum": [
        "INDICATOR_PRIORITY_UNSPECIFIED",
        "INDICATOR_PRIORITY_P1",
        "INDICATOR_PRIORITY_P2",
        "INDICATOR_PRIORITY_P3",
        "INDICATOR_PRIORITY_P4",
        "INDICATOR_PRIORITY_P5"
      ],
      "type": "string",
      "description": "Priority of an alert indicator at trigger time."
    },
    "IndicatorPriorityFilter": {
      "title": "All or IndicatorPriority list",
      "type": "object",
      "oneOf": [
        {
          "required": [
            "all"
          ],
          "type": "object"
        },
        {
          "required": [
            "values"
          ],
          "type": "object"
        },
        {
          "type": "object",
          "not": {
            "anyOf": [
              {
                "required": [
                  "all"
                ],
                "type": "object"
              },
              {
                "required": [
                  "values"
                ],
                "type": "object"
              }
            ]
          }
        }
      ],
      "properties": {
        "all": {
          "$ref": "#/$defs/All"
        },
        "values": {
          "$ref": "#/$defs/IndicatorPriorityFilter.Values"
        }
      },
      "description": "Select all priorities or a specific list of IndicatorPriority values."
    },
    "IndicatorPriorityFilter.Values": {
      "type": "object",
      "properties": {
        "items": {
          "minItems": 0,
          "type": "array",
          "items": {
            "$ref": "#/$defs/IndicatorPriority"
          },
          "description": "List of IndicatorPriorities to filter to. Passing empty list here means no alerts will be processed."
        }
      },
      "description": "Entity label filter.values."
    },
    "KPISettings": {
      "title": "KPI threshold entry",
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Enable or disable this threshold entry."
        },
        "priority": {
          "allOf": [
            {
              "$ref": "#/$defs/CasePriority"
            }
          ],
          "description": "Case priority level for which this threshold applies."
        },
        "threshold": {
          "description": "Elapsed time after which the KPI is considered breached.",
          "minLength": 0,
          "type": "string",
          "x-coralogix-presence": true
        },
        "type": {
          "allOf": [
            {
              "$ref": "#/$defs/KPIType"
            }
          ],
          "description": "Type of KPI this threshold applies to (acknowledgement or resolution)."
        }
      },
      "description": "Single KPI breach threshold for a specific case priority."
    },
    "KPIType": {
      "enum": [
        "KPI_TYPE_UNSPECIFIED",
        "KPI_TYPE_TIME_TO_ACKNOWLEDGE",
        "KPI_TYPE_TIME_TO_RESOLVE",
        "KPI_TYPE_TIME_TO_UPDATE"
      ],
      "type": "string",
      "description": "Kpi type."
    },
    "v1.KeyValue": {
      "title": "Key-value pair",
      "required": [
        "key",
        "value"
      ],
      "type": "object",
      "properties": {
        "key": {
          "maxLength": 4096,
          "minLength": 1,
          "pattern": "^[\\s\\S]*$",
          "type": "string",
          "description": "Key of the pair (e.g., label or grouping name)"
        },
        "value": {
          "maxLength": 4096,
          "minLength": 1,
          "pattern": "^[\\s\\S]*$",
          "type": "string",
          "description": "Value associated with the key"
        }
      },
      "description": "Represents a simple key-value pair, often used for labels or groupings in cases."
    }
  }
}