{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-alert-threshold-schema.json",
  "title": "AlertThreshold",
  "description": "A description of a single Alert",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/harness-budgets-api-openapi.yml#/components/schemas/AlertThreshold",
  "type": "object",
  "properties": {
    "percentage": {
      "type": "number",
      "format": "double"
    },
    "basedOn": {
      "type": "string",
      "description": "Whether the alert is based on Actual cost or next 30 days Forecasted Cost",
      "enum": [
        "ACTUAL_COST",
        "FORECASTED_COST",
        "PARTIAL_COST",
        "YEARLY_ACTUAL_COST",
        "YEARLY_FORECASTED_COST"
      ]
    },
    "emailAddresses": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "userGroupIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "slackWebhooks": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "alertsSent": {
      "type": "integer",
      "format": "int32"
    },
    "crossedAt": {
      "type": "integer",
      "format": "int64"
    }
  }
}