Get an alert
import requests
url = "https://platform.ankra.app/api/v1/org/alerts/alerts/{alert_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/alerts/alerts/{alert_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/alerts/alerts/{alert_id} \
--header 'Authorization: Bearer <token>'{
"item": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"enabled": true,
"state": "<string>",
"status": "<string>",
"severity": "<string>",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"webhook_ids": [
"<string>"
],
"rule_count": 123,
"trigger_count": 123,
"last_triggered_at": "<string>",
"last_evaluated_at": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"source": "<string>",
"external_annotations": {},
"external_labels": {},
"external_generator_url": "<string>",
"external_source_url": "<string>",
"evaluation_state": "evaluable",
"unevaluable_rule_count": 123,
"unevaluable_reasons": [
"<string>"
],
"resolved_by": "<string>",
"resolution_note": "<string>"
},
"tickets": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ticket_number": 123,
"title": "<string>",
"status": "<string>",
"kind": "<string>",
"priority": "<string>",
"created_at": "<string>"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Alerts
Get an alert
Returns one alert definition with its firing status and the AI board tickets filed for it, open ones first and capped at 20. Open to every member of the organisation; an alert outside a confined caller’s project answers 404.
GET
/
api
/
v1
/
org
/
alerts
/
alerts
/
{alert_id}
Get an alert
import requests
url = "https://platform.ankra.app/api/v1/org/alerts/alerts/{alert_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/alerts/alerts/{alert_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/alerts/alerts/{alert_id} \
--header 'Authorization: Bearer <token>'{
"item": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"enabled": true,
"state": "<string>",
"status": "<string>",
"severity": "<string>",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"webhook_ids": [
"<string>"
],
"rule_count": 123,
"trigger_count": 123,
"last_triggered_at": "<string>",
"last_evaluated_at": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"source": "<string>",
"external_annotations": {},
"external_labels": {},
"external_generator_url": "<string>",
"external_source_url": "<string>",
"evaluation_state": "evaluable",
"unevaluable_rule_count": 123,
"unevaluable_reasons": [
"<string>"
],
"resolved_by": "<string>",
"resolution_note": "<string>"
},
"tickets": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ticket_number": 123,
"title": "<string>",
"status": "<string>",
"kind": "<string>",
"priority": "<string>",
"created_at": "<string>"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.