/metric/{metric_name}/anomalies
DevelopingGET
/metric/{metric_name}/anomaliesModified at: 20 days ago
Returns a list of anomalies for the metric supplied in the URL.
Request
Path Params
metric_name
string
required
Query Params
from
string
required
Timestamp. Example: 1577014310.
until
string
optional
Timestamp. Example: 1588218480.
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": 1657043610,
"created_string": "Tue 05 Jul 2022 @ 17:53 (UTC)",
"duration": 0.345,
"language": "en-gb",
"timezone": {
"timezone_type": 3,
"timezone": "UTC"
},
"code": 200,
"oldest_cached_component_age": 6160551,
"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": {
"metric": {
"id": 744,
"metric": "demo_robustperception_io.prometheus.node_memory_MemFree_bytes",
"total_anomalies": 84,
"total_patterns": 8,
"total_pattern_matches": 284,
"created_timestamp": 1584628490,
"created_timestamp_string": "March 19th 2020",
"trainable": false
},
"anomalies": [
{
"id": 6497,
"metric_id": 744,
"metric": "demo_robustperception_io.prometheus.node_memory_MemFree_bytes",
"value": 651468800,
"timestamp": 1588150800,
"timestamp_string": "April 29th 2020, 09:00",
"until_timestamp": 1588151340,
"score": 0.78,
"training": {
"trainable": false,
"trainable_status": "expired",
"trainable_until_timestamp": null,
"30_day_trainable_from_timestamp": null,
"30_day_trainable_in": null
},
"patterns": [],
"positive": false
},
{
"id": 6505,
"metric_id": 744,
"metric": "demo_robustperception_io.prometheus.node_memory_MemFree_bytes",
"value": 886585051.428571,
"timestamp": 1588151760,
"timestamp_string": "April 29th 2020, 09:16",
"until_timestamp": 1588151940,
"score": 0.89,
"training": {
"trainable": false,
"trainable_status": "expired",
"trainable_until_timestamp": null,
"30_day_trainable_from_timestamp": null,
"30_day_trainable_in": null
},
"patterns": [],
"positive": false
},
{
"id": 6514,
"metric_id": 744,
"metric": "demo_robustperception_io.prometheus.node_memory_MemFree_bytes",
"value": 704628736,
"timestamp": 1588152660,
"timestamp_string": "April 29th 2020, 09:31",
"until_timestamp": 1588153500,
"score": 0.89,
"training": {
"trainable": false,
"trainable_status": "expired",
"trainable_until_timestamp": null,
"30_day_trainable_from_timestamp": null,
"30_day_trainable_in": null
},
"patterns": [],
"positive": false
},
{
"id": 6705,
"metric_id": 744,
"metric": "demo_robustperception_io.prometheus.node_memory_MemFree_bytes",
"value": 1314051686.4,
"timestamp": 1588217340,
"timestamp_string": "April 30th 2020, 03:29",
"until_timestamp": 1588219200,
"score": 0.89,
"training": {
"trainable": false,
"trainable_status": "expired",
"trainable_until_timestamp": null,
"30_day_trainable_from_timestamp": null,
"30_day_trainable_in": null
},
"patterns": [],
"positive": false
},
{
"id": 6706,
"metric_id": 744,
"metric": "demo_robustperception_io.prometheus.node_memory_MemFree_bytes",
"value": 1276411084.8,
"timestamp": 1588218180,
"timestamp_string": "April 30th 2020, 03:43",
"until_timestamp": 1588219200,
"score": 0.89,
"training": {
"trainable": false,
"trainable_status": "expired",
"trainable_until_timestamp": null,
"30_day_trainable_from_timestamp": null,
"30_day_trainable_in": null
},
"patterns": [],
"positive": false
}
]
}
}
Last modified: 20 days ago