Alerting & Response/Alert Events
POSTAlertingSince 1.0SynchronousAuth Required
DryRunAlertRule
Simulate a rule evaluation against current data without creating alerts
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
expressionStringRequiredPromQL expression to evaluate
Example: avg(cpu_usage_percent) > 90
durationStringRequiredDuration string for the for clause
Example: 5m
labelsLinkedHashMapRequiredKey-value labels attached to this resource
Example: (nested object)
evalTimestampStringRequiredTimestamp to use as evaluation point
Example: 2026-01-15T08:00:00Z
simulateHoursIntegerRequiredNumber of hours to simulate forward
Example: 24
Responses
Endpoint
POST/api/v1/alerting/dry-run
/api/v1/alerting/dry-run
Request Example
curl -X POST '{host}/api/v1/alerting/dry-run' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"expression":"avg(cpu_usage_percent) > 90","duration":"5m","labels":"(nested object)","evalTimestamp":"2026-01-15T08:00:00Z","simulateHours":24,"tenantId":"tenant-001"}'
Response Example
200{
"valid": true,
"parseError": "connection refused",
"errorPosition": 20,
"firing": true,
"matchedSeries": 3,
"sampleValues": [
{}
],
"simulationSummary": {},
"evalDuration": "120ms"
}Change History
This API has no change history records yet.
