Returns
Returns the updated Monitor object.Example
monitors.pause() and monitors.resume(). Setting status here still works. Users may set only ACTIVE (resume) or PAUSED (pause); CAPPED, NO_CREDITS, and FAILING are system-set and are rejected.
Parameters
New metric family IDs (
metric.metric_group_id) to score with. Adding a self-hosted metric family
raises an error, for the same reason as on create. So does a newly bound
Classifier (Jev) family when classifier metrics are off on the
deployment. A family the monitor already binds can still be resent: only a newly bound family is checked.New Specification IDs to bind. The list replaces the bound Specifications, and an empty list unbinds them all.
Only Policy and Capability Specifications of the monitor’s product are accepted. The update is refused when
the monitor would be left with nothing to score. Removing a Specification deletes the alert rules on that
Specification and on the families that only it brought.
Only the fields you pass are updated. Any field you omit is left unchanged. Pass
None to clear version_id or monthly_credit_cap, the only nullable fields. The other fields refuse None: leave them out to keep their value, or pass an empty list to clear metric_group_ids or specification_ids.