Creates a new metric policy. Policies define which metrics to collect and under what conditions.
Documentation Index
Fetch the complete documentation index at: https://docs.roark.ai/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Input for creating a new metric policy
Name of the metric policy
1"Evaluate all inbound calls"
Modality this policy targets. A policy fires for exactly one modality and can only reference metrics that support that modality.
call, chat "call"
Metric definitions to collect when this policy matches
1Status of the policy (default: ACTIVE)
ACTIVE, INACTIVE "ACTIVE"
Condition groups. Omit to match all calls.
The created metric policy
A metric policy defining when metrics should be collected