Metric
Create a threshold on a metric
Changed onCreate a boolean threshold derived from an existing metric. The source metric is addressed by its UUID or its stable slug. The threshold fires when the source metric meets the comparison condition. Scope and supported contexts are inherited from the source metric.
post/v1/metric/definitions/{idOrSlug}/thresholds
Request
- Base URLhttps://api.roark.ai
- URLhttps://api.roark.ai/v1/metric/definitions/{idOrSlug}/thresholds
- AuthHTTP bearer
Path parameters
idOrSlugstring required
The metric definition's Roark ID (UUID) or its stable slug (e.g. customer_satisfaction).
Request body
Example request
{
"slug": "customer_satisfaction",
"metricId": "customer_satisfaction",
"operator": "GREATER_THAN_OR_EQUALS",
"value": "4"
}Response
The created threshold (as a metric definition)
Changes
- info
added the required property
/to the response with the status
- info
- info
added the required property
/to the response with the status
- info