Update Metric Definition
Only the name and the enabled flag are mutable. The predicate and destination metric are fixed at creation: changing them would splice two different meanings into one series with nothing marking the seam, so a changed definition should be a new definition.
Disabling stops new observations within one flush interval (~10s). Bins already written stay and age out with normal metric retention.
The owning project is not mutable either, so the permission needed here is fixed: alarms.manage for an org-wide definition, projects.alarms.manage on the owner for a project one.
Authorizations
Timbal API key. Obtain your API key from the Timbal platform settings. See Authentication for more information.
Body
Body for PATCH /orgs/{org_id}/metrics/definitions/{id}.
Only the knobs that are safe to change in place. The predicate and the destination metric are immutable: editing them would splice two different meanings into one series with no marker at the seam, so a changed definition should be a new definition.
Response
Definition updated