{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://api.ilert.com/schemas/AlertSourceNoIncludes",
  "title": "AlertSourceNoIncludes",
  "required": [
    "escalationPolicy",
    "integrationType",
    "name"
  ],
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int64"
    },
    "teams": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/TeamRel"
      }
    },
    "name": {
      "type": "string"
    },
    "iconUrl": {
      "type": "string"
    },
    "lightIconUrl": {
      "type": "string"
    },
    "darkIconUrl": {
      "type": "string"
    },
    "escalationPolicy": {
      "$ref": "#/components/schemas/EscalationPolicy"
    },
    "integrationType": {
      "$ref": "#/components/schemas/IntegrationType"
    },
    "integrationKey": {
      "type": "string"
    },
    "integrationUrl": {
      "type": "string",
      "readOnly": true
    },
    "autoResolutionTimeout": {
      "type": "string",
      "format": "ISO-8601"
    },
    "alertGroupingWindow": {
      "type": "string",
      "format": "ISO-8601"
    },
    "alertCreation": {
      "type": "string",
      "default": "ONE_ALERT_PER_EMAIL",
      "enum": [
        "ONE_ALERT_PER_EMAIL",
        "ONE_ALERT_PER_EMAIL_SUBJECT",
        "ONE_PENDING_ALERT_ALLOWED",
        "ONE_OPEN_ALERT_ALLOWED",
        "OPEN_RESOLVE_ON_EXTRACTION",
        "ONE_ALERT_GROUPED_PER_WINDOW",
        "INTELLIGENT_GROUPING"
      ]
    },
    "status": {
      "type": "string",
      "readOnly": true,
      "enum": [
        "PENDING",
        "ALL_ACCEPTED",
        "ALL_RESOLVED",
        "IN_MAINTENANCE",
        "DISABLED"
      ]
    },
    "active": {
      "type": "boolean",
      "default": true
    },
    "alertPriorityRule": {
      "$ref": "#/components/schemas/AlertPriorityRule"
    },
    "supportHours": {
      "$ref": "#/components/schemas/SupportHour"
    },
    "bidirectional": {
      "type": "boolean",
      "readOnly": true
    },
    "autoRaiseAlerts": {
      "type": "boolean",
      "description": "Only effective when a support hour is linked to this alert source."
    },
    "scoreThreshold": {
      "type": "number",
      "format": "double",
      "description": "Only used when alertCreation is set to INTELLIGENT_GROUPING."
    },
    "severity": {
      "type": "integer"
    },
    "services": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Service"
      }
    },
    "createdAt": {
      "type": "string",
      "readOnly": true
    },
    "updatedAt": {
      "type": "string",
      "readOnly": true
    }
  }
}