Alerting & Response/Alert Rules
POSTAlertingSince 1.0SynchronousAuth Required
DryRunAlertRuleUpdate
Dry-run an update to preview changes without persisting them
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
ruleIdStringRequiredUUID of the rule to dry-run update against
Body Fields
inputObjectRequiredNew rule input to validate against current state
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
Responses
Endpoint
POST/api/v1/alerting/rules/{ruleId}/dry-run
/api/v1/alerting/rules/{ruleId}/dry-run
Request Example
curl -X POST '{host}/api/v1/alerting/rules/{ruleId}/dry-run' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"input":{"name":"High CPU Usage","promql":"avg(cpu_usage_percent) > 90","threshold":90.0,"for":"5m"}}'
Response Example
200{
"wouldSucceed": true,
"changedFields": [
{}
],
"validationErrors": [],
"warnings": []
}Change History
This API has no change history records yet.
