Skip to main content
PUT
JavaScript

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

policyId
string<uuid>
required

The ID of the metric policy to update

Body

application/json

Input for updating an existing metric policy

name
string

Name of the metric policy

Minimum string length: 1
status
enum<string>

Status of the policy

Available options:
ACTIVE,
INACTIVE
conditions
object[]

Condition groups. Omit to keep existing, provide empty array to remove all conditions.

metrics
object[]

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.

Minimum array length: 1

Response

The updated metric policy

data
object
required

A metric policy defining when metrics should be collected