{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "AlertRule",
  "type": "object",
  "description": "An alert rule defining the condition and threshold that triggers an alert for an SAP HANA Cloud service instance. Rules can be cloud-native or embedded statistics server (ESS) based.",
  "properties": {
    "ruleId": {
      "type": "string",
      "description": "The unique identifier of the alert rule."
    },
    "ruleName": {
      "type": "string",
      "description": "The human-readable name of the alert rule (e.g., Memory Usage Alert, Disk Full Alert)."
    },
    "ruleType": {
      "type": "string",
      "description": "The type of alert rule."
    },
    "enabled": {
      "type": "boolean",
      "description": "Whether the alert rule is currently active."
    },
    "severity": {
      "type": "string",
      "description": "The severity level assigned to alerts triggered by this rule."
    },
    "metric": {
      "type": "string",
      "description": "The metric being monitored by this rule."
    },
    "thresholdOperator": {
      "type": "string",
      "description": "The comparison operator used to evaluate the threshold."
    },
    "thresholdValue": {
      "type": "number",
      "description": "The threshold value that triggers the alert when exceeded."
    },
    "unit": {
      "type": "string",
      "description": "The unit of measurement for the threshold value."
    },
    "description": {
      "type": "string",
      "description": "A description of what this alert rule monitors."
    }
  }
}