API Reference
Log In
API Reference

Get the current metric value of an anomaly (the alert rule)

Computes the alert rule's metric over the last 30.44 days (2,629,746,000 milliseconds before now), with the alert rule's filters applied, and returns it as a bare number. The unit is the metric's own: USD for TOTAL_COST and COST_PER_TRANSACTION, milliseconds for DURATION, tokens for the token count metrics, and a count for ERROR_COUNT. For an alert rule whose alertType is THRESHOLD, on TOTAL_COST, a token count or DURATION it is the largest value of a single transaction in that window (the smallest when the operator is less than); otherwise it is the window's total. Two exceptions: COST_PER_TRANSACTION is always the average cost per transaction in USD, and TOKENS_PER_MINUTE is the selected token value divided by the window length in seconds. Metric types this call does not support return an error.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The anomaly ID: a short string ID such as jR2kmLs.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
*/*