curl --request GET \
--url https://api.cekura.ai/observability/v1/alerts/review/ \
--header 'X-CEKURA-API-KEY: <api-key>'import requests
url = "https://api.cekura.ai/observability/v1/alerts/review/"
headers = {"X-CEKURA-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-CEKURA-API-KEY': '<api-key>'}};
fetch('https://api.cekura.ai/observability/v1/alerts/review/', 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.cekura.ai/observability/v1/alerts/review/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-CEKURA-API-KEY: <api-key>"
],
]);
$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.cekura.ai/observability/v1/alerts/review/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-CEKURA-API-KEY", "<api-key>")
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.cekura.ai/observability/v1/alerts/review/")
.header("X-CEKURA-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cekura.ai/observability/v1/alerts/review/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-CEKURA-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"name": "<string>",
"project": 123,
"source_type": "metric",
"id": 123,
"enabled": true,
"project_name": "<string>",
"source_id": 1073741823,
"source_object_name": "<string>",
"source_object_details": {},
"source": "<unknown>",
"threshold": "<unknown>",
"notifications": "<unknown>",
"last_triggered_at": "2023-11-07T05:31:56Z",
"trigger_count": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"last_updated_by": 123,
"last_updated_by_email": "<string>"
}List Alerts for Review
Aggregate fired-alert data for the review page.
curl --request GET \
--url https://api.cekura.ai/observability/v1/alerts/review/ \
--header 'X-CEKURA-API-KEY: <api-key>'import requests
url = "https://api.cekura.ai/observability/v1/alerts/review/"
headers = {"X-CEKURA-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-CEKURA-API-KEY': '<api-key>'}};
fetch('https://api.cekura.ai/observability/v1/alerts/review/', 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.cekura.ai/observability/v1/alerts/review/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-CEKURA-API-KEY: <api-key>"
],
]);
$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.cekura.ai/observability/v1/alerts/review/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-CEKURA-API-KEY", "<api-key>")
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.cekura.ai/observability/v1/alerts/review/")
.header("X-CEKURA-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cekura.ai/observability/v1/alerts/review/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-CEKURA-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"name": "<string>",
"project": 123,
"source_type": "metric",
"id": 123,
"enabled": true,
"project_name": "<string>",
"source_id": 1073741823,
"source_object_name": "<string>",
"source_object_details": {},
"source": "<unknown>",
"threshold": "<unknown>",
"notifications": "<unknown>",
"last_triggered_at": "2023-11-07T05:31:56Z",
"trigger_count": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"last_updated_by": 123,
"last_updated_by_email": "<string>"
}Authorizations
API Key Authentication. It should be included in the header of each request.
Query Parameters
Tenant scope. Supply one of project_id when authenticating with a user session or OAuth bearer token; omit when using an API key already scoped to the tenant.
Response
Detailed serializer for alert retrieval
Alert name
255Project this alert belongs to
Type of data source: metric, duration, call_volume, etc.
metric- Metric
metric Enable/disable alert
ID of monitored object
0 <= x <= 2147483647Get basic details about the source object
Show child attributes
Show child attributes
Source config keyed on sub_type. normal: {sub_type, filters?}. significant_change: {sub_type, window_size, filters?}. threshold: {sub_type, window_size, filters?}. insight_new_mode: {sub_type, min_calls?} — fires when a new failure mode is detected for the metric. insight_uptick: {sub_type, window_hours, baseline_hours} — fires when a failure mode's recent volume spikes vs its baseline. filters is an optional CallLogQueryFilter expression.
Threshold config keyed on the source's sub_type. normal: {} (fires on every failing eval). significant_change: {std_multiplier, ewma_alpha, direction}. threshold: {operator (gt|lt|outside), value (number | {low, high}), min_breaches}. insight_new_mode: {} (fires when a new failure mode appears). insight_uptick: {min_count, multiplier}.
Notification routing. {slack: {workspace_id, channel_id?}} to send to a specific workspace/channel. Empty fans out to every project workspace; empty + no project workspaces means the alert is silent.
Last trigger timestamp
Total triggers count
User who last updated this alert