curl --request GET \
--url https://api.cloud.corbado.io/v1/observe/alertFirings/{alertFiringID} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.cloud.corbado.io/v1/observe/alertFirings/{alertFiringID}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.cloud.corbado.io/v1/observe/alertFirings/{alertFiringID}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cloud.corbado.io/v1/observe/alertFirings/{alertFiringID}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.cloud.corbado.io/v1/observe/alertFirings/{alertFiringID}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.cloud.corbado.io/v1/observe/alertFirings/{alertFiringID}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloud.corbado.io/v1/observe/alertFirings/{alertFiringID}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"alert": {
"id": "<string>",
"valueFormat": {
"unit": "percent",
"decimals": 1,
"suffix": "<string>"
},
"vocabulary": {
"value": {
"key": "<string>",
"name": "<string>",
"help": "<string>"
},
"measures": [
{
"key": "<string>",
"name": "<string>",
"help": "<string>",
"detailKey": "<string>",
"reference": true
}
],
"minimum": {
"key": "<string>",
"name": "<string>",
"help": "<string>",
"detailKey": "<string>",
"reference": true
},
"gateMeasure": "<string>",
"settings": [
{
"key": "<string>",
"name": "<string>",
"help": "<string>"
}
]
},
"alertRuleID": "<string>",
"alertRuleName": "<string>",
"ruleType": "relative_flow_count",
"labelSetHash": "<string>",
"hasOverride": true,
"createdMs": 123,
"updatedMs": 123,
"status": "normal",
"labels": {},
"currentValue": 123,
"thresholdValue": 123,
"firstBreachedMs": 123,
"lastEvaluatedMs": 123,
"lastStatusChangeMs": 123,
"lastNotificationMs": 123,
"errorMessage": "<string>",
"severity": "info",
"highWaterSeverity": "info",
"noDataReason": "no_data",
"previousStatus": "normal",
"currentFiringID": "<string>"
},
"firedMs": 123,
"durationMs": 123,
"transitions": [
{
"id": "<string>",
"alertRuleID": "<string>",
"alertInstanceID": "<string>",
"toStatus": "normal",
"reason": "breach",
"notified": true,
"evaluatedMs": 123,
"createdMs": 123,
"labels": {},
"fromStatus": "normal",
"fromSeverity": "info",
"toSeverity": "info",
"value": 123,
"thresholdValue": 123,
"message": "<string>"
}
],
"notifications": [
{
"id": "<string>",
"alertRuleID": "<string>",
"alertInstanceID": "<string>",
"transition": "firing",
"channel": "email",
"target": "<string>",
"status": "pending",
"createdMs": 123,
"updatedMs": 123,
"labels": {},
"dedupeKey": "<string>",
"firingID": "<string>",
"errorMessage": "<string>",
"sentMs": 123
}
],
"pendingSinceMs": 123,
"endedMs": 123,
"endStatus": "normal",
"endReason": "<string>",
"previousFiringID": "<string>",
"nextFiringID": "<string>"
}{
"error": {
"message": "Validation failed",
"details": [
{
"field": "projectID",
"message": "required"
}
]
}
}Get alert firing
Returns one firing of an alert: from the evaluation that switched it to firing to the one that switched
it to another status, with the transitions and notifications in between and the alert’s current state.
Pass the ID of any transition of the firing: the one that fired it, a severity change, the one that ended
it, or the breach that made it pending. The firingID of a notification, a phase or an alert is such an
ID. The response’s id is the transition that fired it. Firings are kept as long as their transitions,
about 90 days.
Required API key permission: observe:alerts:read.
curl --request GET \
--url https://api.cloud.corbado.io/v1/observe/alertFirings/{alertFiringID} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.cloud.corbado.io/v1/observe/alertFirings/{alertFiringID}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.cloud.corbado.io/v1/observe/alertFirings/{alertFiringID}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cloud.corbado.io/v1/observe/alertFirings/{alertFiringID}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.cloud.corbado.io/v1/observe/alertFirings/{alertFiringID}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.cloud.corbado.io/v1/observe/alertFirings/{alertFiringID}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloud.corbado.io/v1/observe/alertFirings/{alertFiringID}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"alert": {
"id": "<string>",
"valueFormat": {
"unit": "percent",
"decimals": 1,
"suffix": "<string>"
},
"vocabulary": {
"value": {
"key": "<string>",
"name": "<string>",
"help": "<string>"
},
"measures": [
{
"key": "<string>",
"name": "<string>",
"help": "<string>",
"detailKey": "<string>",
"reference": true
}
],
"minimum": {
"key": "<string>",
"name": "<string>",
"help": "<string>",
"detailKey": "<string>",
"reference": true
},
"gateMeasure": "<string>",
"settings": [
{
"key": "<string>",
"name": "<string>",
"help": "<string>"
}
]
},
"alertRuleID": "<string>",
"alertRuleName": "<string>",
"ruleType": "relative_flow_count",
"labelSetHash": "<string>",
"hasOverride": true,
"createdMs": 123,
"updatedMs": 123,
"status": "normal",
"labels": {},
"currentValue": 123,
"thresholdValue": 123,
"firstBreachedMs": 123,
"lastEvaluatedMs": 123,
"lastStatusChangeMs": 123,
"lastNotificationMs": 123,
"errorMessage": "<string>",
"severity": "info",
"highWaterSeverity": "info",
"noDataReason": "no_data",
"previousStatus": "normal",
"currentFiringID": "<string>"
},
"firedMs": 123,
"durationMs": 123,
"transitions": [
{
"id": "<string>",
"alertRuleID": "<string>",
"alertInstanceID": "<string>",
"toStatus": "normal",
"reason": "breach",
"notified": true,
"evaluatedMs": 123,
"createdMs": 123,
"labels": {},
"fromStatus": "normal",
"fromSeverity": "info",
"toSeverity": "info",
"value": 123,
"thresholdValue": 123,
"message": "<string>"
}
],
"notifications": [
{
"id": "<string>",
"alertRuleID": "<string>",
"alertInstanceID": "<string>",
"transition": "firing",
"channel": "email",
"target": "<string>",
"status": "pending",
"createdMs": 123,
"updatedMs": 123,
"labels": {},
"dedupeKey": "<string>",
"firingID": "<string>",
"errorMessage": "<string>",
"sentMs": 123
}
],
"pendingSinceMs": 123,
"endedMs": 123,
"endStatus": "normal",
"endReason": "<string>",
"previousFiringID": "<string>",
"nextFiringID": "<string>"
}{
"error": {
"message": "Validation failed",
"details": [
{
"field": "projectID",
"message": "required"
}
]
}
}Authorizations
Response
The firing.
One firing of an alert, from the evaluation that switched it to firing to the one that switched it to another status. Severity changes while firing belong to it. An alert that fires again after it ended, also after a stretch without data, starts a new firing.
Was this page helpful?