Skip to main content
Creates a new metric policy. Policies define which metrics to collect and under what conditions.
Calls POST /v1/metric/policies

Options

string
required
Name of the metric policy.
string
Status of the policy (default: ACTIVE). One of ACTIVE, INACTIVE
string
required
Modality this policy targets. A policy fires for exactly one modality and can only reference metrics that support that modality. One of call, chat
array
Condition groups. Omit to match all calls.
array
required
Metric definitions to collect when this policy matches, each with an optional setting.

Example

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