Skip to main content
Updates an existing metric policy. System policies cannot be modified.
Calls PUT /v1/metric/policies/{policyId}

Arguments

string
required
The ID of the metric policy to update.

Options

string
Name of the metric policy.
string
Status of the policy. One of ACTIVE, INACTIVE
array
Condition groups. Omit to keep existing, provide empty array to remove all conditions.
array
Metric definitions to collect when this policy matches. Replaces the policy’s whole metric list: a metric sent without settings goes back to its default, so resend a metric’s settings to keep them. Omit to keep the current metrics.

Example

Every command also takes the global options and sets one of the exit codes.