{
  "type": "object",
  "name": "ExternalServiceConditionBody",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "entities": {
      "type": "array",
      "items": {
        "type": "integer"
      }
    },
    "external_service_url": {
      "type": "string"
    },
    "metric": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "runbook_url": {
      "type": "string"
    },
    "terms": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "duration": {
            "type": "string"
          },
          "operator": {
            "type": "string"
          },
          "priority": {
            "type": "string"
          },
          "threshold": {
            "type": "string"
          },
          "time_function": {
            "type": "string"
          }
        }
      }
    },
    "type": {
      "type": "string"
    }
  },
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}