Monitoring & Collection/Scrape Collection
POSTMonitoringSince 1.0SynchronousAuth Required
SetScrapeAlertRule
Create or update an alert rule for a specific scrape target
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
targetIdStringRequiredUUID of the scrape target to configure the alert rule for
Body Fields
consecutiveFailsIntegerRequiredConsecutive failure threshold before alert fires
Example: 3
severityStringRequiredSeverity of the generated alert (critical, warning)
Example: critical
autoEscalateBooleanRequiredWhether the alert escalates automatically after continued downtime
Example: true
Responses
Endpoint
POST/api/v1/monitoring/scrape-health/targets/{targetId}/alert-rules
/api/v1/monitoring/scrape-health/targets/{targetId}/alert-rules
Request Example
curl -X POST '{host}/api/v1/monitoring/scrape-health/targets/{targetId}/alert-rules' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"consecutiveFails":3,"severity":"critical","autoEscalate":true}'
Response Example
200{
"uuid": "alert-rule-001",
"targetId": "target-001-abc",
"consecutiveFails": 3,
"severity": "critical",
"autoEscalate": true,
"createdAt": "example"
}Change History
This API has no change history records yet.
