ValidateAlertRule
Validate an alert rule definition for correctness before saving
POST
/api/v1/alerting/rules/validateOperation ID
ValidateAlertRuleSince
1.0.0Execution Mode
SynchronousAuth Context
Auth RequiredAuth Context
Send these values as request headers when calling this API.
AuthorizationstringRequiredBearer Token
X-Tenant-IDstringX-Tenant-ID
Request Inputs
application/jsonBody Fields
ruleObjectRequiredAlert rule input to validate
nameStringRule name to validate
Example: High CPU Usage
promqlStringPromQL expression for the rule
Example: avg(cpu_usage_percent) > 90
thresholdLongThreshold value for the rule
Example: 90
forStringDuration string for the for clause
Example: 5m
