Metric
Create a threshold on a metric
Create 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
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
Changed in 1 of the 105 revisions of this API.1
- ○
endpoint added
endpoint-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○