Skip to content

Alerts API

List Rules

Responses

StatusDescriptionSchema
200Successful Responseany

Create Rule

Request body (required), application/json, AlertRuleIn

FieldTypeRequiredDescription
channel_idsinteger[] | nullno
duration_sintegerno
enabledbooleanno
metricstringyes
namestringyes
operatorstringno
severitystringno
target_idinteger | nullno
target_typestringno
thresholdnumberno

Responses

StatusDescriptionSchema
201Successful Responseany
422Validation ErrorHTTPValidationError

Delete Rule

Parameters

NameInTypeRequiredDescription
rule_idpathintegeryes

Responses

StatusDescriptionSchema
204Successful Response
422Validation ErrorHTTPValidationError

Patch Rule

Parameters

NameInTypeRequiredDescription
rule_idpathintegeryes

Request body (required), application/json, AlertRulePatch

FieldTypeRequiredDescription
channel_idsinteger[] | nullno
duration_sinteger | nullno
enabledboolean | nullno
metricstring | nullno
namestring | nullno
operatorstring | nullno
severitystring | nullno
target_idinteger | nullno
target_typestring | nullno
thresholdnumber | nullno

Responses

StatusDescriptionSchema
200Successful Responseany
422Validation ErrorHTTPValidationError

List Metrics

One source of truth for the metric enum: the rule form renders this.

Responses

StatusDescriptionSchema
200Successful Responseany

List Alerts

Doc 05 leaves the entitlement column blank here on purpose: the sidebar health footer (“3 nodes · 0 alerts”) reads this on every tier.

Parameters

NameInTypeRequiredDescription
statequerystring | nullno
limitqueryintegerno

Responses

StatusDescriptionSchema
200Successful Responseany
422Validation ErrorHTTPValidationError

Ack Alert

Acknowledging silences; it never resolves. The evaluator still flips an acked alert to resolved on recovery (services/alerts.py); an operator saying “I know” must not make the system stop tracking whether it is fixed.

Parameters

NameInTypeRequiredDescription
alert_idpathintegeryes

Responses

StatusDescriptionSchema
200Successful Responseany
422Validation ErrorHTTPValidationError