Update a metric alarm
Update alarm thresholds, evaluation settings, or enabled state.
clear_threshold is the one field where null differs from omitting the key: send null to drop the hysteresis, omit it to leave it as is. It is validated against the resulting threshold and comparison, so patching either side of the pair alone can't invert them.
metric_name and denominator_metric_name are not patchable: changing what an alarm watches would leave its state and history describing a different question, so define a new alarm instead.
enabled: true requires at least one attached channel. Channels may be detached freely while an alarm is disabled, so this is what stops that from re-enabling an alarm that evaluates and records transitions with nowhere to notify.
The alarm's owning project is not patchable either, so the permission needed here is fixed for the life of the alarm: alarms.manage when it is org-level, projects.alarms.manage on the owner when it is not.
Path parameters
Request body
Example request
{
"stat": "p99"
}Response
Alarm updated