/org/adminalerts
DesigningGET
/org/adminalertsLast modified: 2 months ago
Return a list of admin alerts which have been set up, and update them if parameters are supplied.
For each alert type id, specified in place of the "x" below, i.e. "type_1_enabled"
Currently alert type ids are:
Id | Name |
---|---|
1 | All metrics stop receiving data |
2 | Some metrics stop receiving data |
Ids replace the "{id}" value in params below. |
Request
None
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": 1657638085,
"created_string": "Tue 12 Jul 2022 @ 15:01 (UTC)",
"duration": 0.032,
"language": "en-gb",
"timezone": {
"timezone_type": 3,
"timezone": "UTC"
},
"code": 200,
"oldest_cached_component_age": 1091,
"session_id": "103bfbd9f2cdd43fe809104eefc713f7",
"org_onboarding_status_id": 300,
"api_host": "api-stage.anomify.ai",
"user_onboarding_flags": {
"main_intro": true,
"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": {
"admin_alerts": [
{
"id": 1,
"name": "All metrics stop receiving data",
"wait_seconds": 500,
"expiration_seconds": 3600,
"enabled": true,
"alerts": [
{
"method": "email",
"ref": "101",
"user": {
"id": 101,
"org_id": 101,
"name": "Phil Collins",
"email": "si@anomalarm.io",
"phone_number": "+447976123456",
"slack_member_id": "U04UFSKFY",
"demo": false,
"admin": true,
"org": {
"id": 101,
"name": "Anomify",
"timezone": "UTC",
"alert_muting": {
"muted": false,
"muted_until_timestamp": null,
"muted_until_timestamp_string": null,
"minutes_remaining": null
},
"onboarding_status_id": 300,
"connected_services": {
"slack": true,
"ms_teams": false
}
},
"notifications": {
"email_alerts": true
},
"onboarding_flags": {
"main_intro": true,
"alerts_intro": false,
"alerts_from_search": false,
"training_intro": false,
"alert_created": true,
"test_alert_sent": true,
"two_alerts_sent": true,
"pattern_trained": true
}
}
},
{
"method": "email",
"ref": "102",
"user": {
"id": 102,
"org_id": 101,
"name": "Will Floutier",
"email": "will@anomalarm.io",
"phone_number": null,
"slack_member_id": null,
"demo": false,
"admin": true,
"org": {
"id": 101,
"name": "Anomify",
"timezone": "UTC",
"alert_muting": {
"muted": false,
"muted_until_timestamp": null,
"muted_until_timestamp_string": null,
"minutes_remaining": null
},
"onboarding_status_id": 300,
"connected_services": {
"slack": true,
"ms_teams": false
}
},
"notifications": {
"email_alerts": true
},
"onboarding_flags": {
"main_intro": true,
"alerts_intro": true,
"alerts_from_search": true,
"training_intro": false,
"alert_created": true,
"test_alert_sent": true,
"two_alerts_sent": true,
"pattern_trained": true
}
}
},
{
"method": "sms",
"ref": "101",
"user": {
"id": 101,
"org_id": 101,
"name": "Phil Collins",
"email": "si@anomalarm.io",
"phone_number": "+447976123456",
"slack_member_id": "U04UFSKFY",
"demo": false,
"admin": true,
"org": {
"id": 101,
"name": "Anomify",
"timezone": "UTC",
"alert_muting": {
"muted": false,
"muted_until_timestamp": null,
"muted_until_timestamp_string": null,
"minutes_remaining": null
},
"onboarding_status_id": 300,
"connected_services": {
"slack": true,
"ms_teams": false
}
},
"notifications": {
"email_alerts": true
},
"onboarding_flags": {
"main_intro": true,
"alerts_intro": false,
"alerts_from_search": false,
"training_intro": false,
"alert_created": true,
"test_alert_sent": true,
"two_alerts_sent": true,
"pattern_trained": true
}
}
},
{
"method": "sms",
"ref": "102",
"user": {
"id": 102,
"org_id": 101,
"name": "Will Floutier",
"email": "will@anomalarm.io",
"phone_number": null,
"slack_member_id": null,
"demo": false,
"admin": true,
"org": {
"id": 101,
"name": "Anomify",
"timezone": "UTC",
"alert_muting": {
"muted": false,
"muted_until_timestamp": null,
"muted_until_timestamp_string": null,
"minutes_remaining": null
},
"onboarding_status_id": 300,
"connected_services": {
"slack": true,
"ms_teams": false
}
},
"notifications": {
"email_alerts": true
},
"onboarding_flags": {
"main_intro": true,
"alerts_intro": true,
"alerts_from_search": true,
"training_intro": false,
"alert_created": true,
"test_alert_sent": true,
"two_alerts_sent": true,
"pattern_trained": true
}
}
},
{
"method": "slack",
"ref": "anomalarm-demo"
}
]
},
{
"id": 3,
"name": "Metric quota is exceeded",
"wait_seconds": 900,
"expiration_seconds": null,
"enabled": false,
"alerts": []
},
{
"id": 2,
"name": "Some metrics stop receiving data",
"wait_seconds": 7400,
"expiration_seconds": null,
"enabled": true,
"alerts": [
{
"method": "sms",
"ref": "101",
"user": {
"id": 101,
"org_id": 101,
"name": "Phil Collins",
"email": "si@anomalarm.io",
"phone_number": "+447976123456",
"slack_member_id": "U04UFSKFY",
"demo": false,
"admin": true,
"org": {
"id": 101,
"name": "Anomify",
"timezone": "UTC",
"alert_muting": {
"muted": false,
"muted_until_timestamp": null,
"muted_until_timestamp_string": null,
"minutes_remaining": null
},
"onboarding_status_id": 300,
"connected_services": {
"slack": true,
"ms_teams": false
}
},
"notifications": {
"email_alerts": true
},
"onboarding_flags": {
"main_intro": true,
"alerts_intro": false,
"alerts_from_search": false,
"training_intro": false,
"alert_created": true,
"test_alert_sent": true,
"two_alerts_sent": true,
"pattern_trained": true
}
}
},
{
"method": "slack",
"ref": "anomalarm-dev"
}
]
}
],
"message": "OK"
}
}
Last modified: 2 months ago