get
https://{app-url}{}/api/v2/anomalies/tokenMap
Retrieves Anomalies token map
Retrieves the token map for a given anomaly, if available. All parameters are passed as query parameters in the URL; the request body is empty.
| Argument | Description |
|---|---|
| q * (string) | Search query — include only anomalies of abnormal metrics that match the given query. Required when anomalyId is not provided. |
| anomalyId (string) | Filter by a specific anomaly ID. Required when q is not provided. |
| startDate (integer) | Filter anomalies that started after the given time (inclusive). Units: epoch seconds. |
| endDate (integer) | Relevant when requesting closed anomalies. Returns anomalies that started before the given time (inclusive). Units: epoch seconds. |
| state (string) | Anomaly state: {open, closed, both}. |
| resolution (string) | Include anomalies by timescale. Supported values: {short, medium, long, longlong, weekly}. Provide as a comma-separated list. Required when using anomalyId. |
| durationUnit (string) | Time unit for duration: {seconds, minutes, hours, days}. |
| durationValue (integer) | Minimum anomaly duration. Units are based on durationUnit. |
| score (number) | Minimum anomaly score in the range [0,1] (inclusive). |
| sort (string) | Sort field: {startDate, endDate, duration, score}. |
| bookmark (string) | Filter by bookmarks: all (bookmarked anomalies), none (no bookmarks), user_id (bookmarked by a specific user), * (not bookmarked by the given user). |
| order (string) | Sort order: {asc, desc}. |
| valueDirection (string) | Direction of anomaly breach: {down, up, both}. |
| delta (number) | Delta of the anomaly peak relative to the baseline. Units and interpretation depend on the delta type (percentage or absolute). |
| tokenMapClustersLimit (integer) | Number of token map clusters to fetch. |
| tokenMapClusterLimit (integer) | Maximum number of tokens to include per cluster. |
