Set service alert overrides
The body is the full override: an unlisted rule inherits. replace with no destination is refused, because the service’s alerts would go nowhere. The values that result for the service must be valid. Regenerates and reloads the rule file and the routing config. A change of the routing needs the admin role; an operator on the service sends the stored routing.
/api/v1/database-services/{id}/alert-overridestse_sessionAPI key · cookierequiredidstringrequiredapplication/jsonroutingAlertRoutingInputrequiredShow propertiesHide properties
destinationIdsinteger<int64>[]Ignored for inherit
modestringrequiredreplace: only the assigned destinations; add: the assigned and the global destinations
inheritreplaceaddrulesAlertRuleOverrideInput[]The full set of rule overrides; an unlisted rule inherits
Show propertiesHide properties
AlertRuleOverrideInputenabledboolean | nullOmit or null to inherit
namestringrequiredseveritystring | nullOmit or null to inherit
warningcriticalthresholdinteger<int64> | nullOmit or null to inherit
OK
mutedUntilstring | nullrequiredRFC3339; null when the service is not muted or the alert router cannot be reached
routingAlertRoutingrequiredShow propertiesHide properties
destinationIdsinteger<int64>[]requiredEmpty for inherit
modestringrequiredreplace: only the assigned destinations; add: the assigned and the global destinations
inheritreplaceaddrulesAlertRuleOverride[]requiredEvery rule that a service can override
Show propertiesHide properties
AlertRuleOverrideeffectiveAlertRuleEffectiverequiredThe values the rule uses for this service
Show propertiesHide properties
enabledbooleanrequiredseveritystringrequiredthresholdinteger<int64> | nullrequirednull when the rule has no threshold
enabledboolean | nullrequirednull inherits
namestringrequiredseveritystring | nullrequirednull inherits
warningcriticalthresholdinteger<int64> | nullrequirednull inherits
serviceIdstringrequiredserviceNamestringrequiredError
codestringStable code of the refusal, when the route has codes
detailsstring[]Additional detail, e.g. per-field validation failures
errorstringrequiredHuman-readable error message