/metrics/mostrecentlyanomalous
DevelopingGET
/metrics/mostrecentlyanomalousModified at: 20 days ago
Returns a list of unique metrics which have been anomalous most recently, ordered by the most recent anomaly on each metric. Returns 10 results unless the optional limit parameter is specified.
Only anomalies in the last 30 days are considered, so where no anomalies have occurred in that period, this method will return an empty result, not the most recent anomalies further back.
Request
Query Params
alerting_metrics_only
string
optional
When set 'true' (default), only consider alerting metrics. Example: true.
limit
string
optional
Limit the number of results returned, must be between 1 and 30. Defaults to 10 if not specified. Example: 5.
Request samples
Responses
An example Response(200)
An example Response
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
object {0}
Example
{
"status": {
"created_timestamp": 1657041857,
"created_string": "Tue 05 Jul 2022 @ 17:24 (UTC)",
"duration": 0.089,
"language": "en-gb",
"timezone": {
"timezone_type": 3,
"timezone": "UTC"
},
"code": 200,
"oldest_cached_component_age": 1193,
"session_id": "9574317bd9284de6d6d21f1cc6d128ce",
"org_onboarding_status_id": 300,
"api_host": "api-stage.anomify.ai",
"user_onboarding_flags": {
"main_intro": false,
"alerts_intro": false,
"alerts_from_search": false,
"training_intro": false,
"alert_created": true,
"test_alert_sent": true,
"two_alerts_sent": true,
"pattern_trained": true
}
},
"data": {
"metrics": [
{
"metric": "prom_2.node_load5",
"last_anomaly_id": 208341,
"last_anomaly_timestamp": 1656950280,
"last_anomaly_timestamp_string": "July 4th, 15:58"
},
{
"metric": "graphite-labs_wikimedia_org.clouddb-services.clouddb1001.cpu.total.system",
"last_anomaly_id": 208261,
"last_anomaly_timestamp": 1656808800,
"last_anomaly_timestamp_string": "July 3rd, 00:40"
},
{
"metric": "graphite-labs_wikimedia_org.clouddb-services.clouddb1001.memory.MemFree",
"last_anomaly_id": 208236,
"last_anomaly_timestamp": 1656746220,
"last_anomaly_timestamp_string": "July 2nd, 07:17"
},
{
"metric": "graphite-labs_wikimedia_org.clouddb-services.clouddb1004.memory.Active",
"last_anomaly_id": 208213,
"last_anomaly_timestamp": 1656706920,
"last_anomaly_timestamp_string": "July 1st, 20:22"
},
{
"metric": "graphite-labs_wikimedia_org.clouddb-services.clouddb1003.memory.MemFree",
"last_anomaly_id": 208166,
"last_anomaly_timestamp": 1656668460,
"last_anomaly_timestamp_string": "July 1st, 09:41"
}
]
}
}
Last modified: 20 days ago