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

Minimum array length: 1

Response

The updated metric policy

data
object
required

A metric policy defining when metrics should be collected