List a monitor's runs
curl --request GET \
--url https://api.select.dev/v2/monitors/{monitor_id}/run-history \
--header 'Authorization: Bearer <token>' \
--header 'x-tenant-id: <x-tenant-id>'import requests
url = "https://api.select.dev/v2/monitors/{monitor_id}/run-history"
headers = {
"x-tenant-id": "<x-tenant-id>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'x-tenant-id': '<x-tenant-id>', Authorization: 'Bearer <token>'}
};
fetch('https://api.select.dev/v2/monitors/{monitor_id}/run-history', 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.select.dev/v2/monitors/{monitor_id}/run-history",
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>",
"x-tenant-id: <x-tenant-id>"
],
]);
$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.select.dev/v2/monitors/{monitor_id}/run-history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-tenant-id", "<x-tenant-id>")
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.select.dev/v2/monitors/{monitor_id}/run-history")
.header("x-tenant-id", "<x-tenant-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.select.dev/v2/monitors/{monitor_id}/run-history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-tenant-id"] = '<x-tenant-id>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "<string>",
"monitor_id": "<string>",
"monitor_name": "<string>",
"type": "digest",
"trigger_config": {
"skip_if_empty": true,
"type": "digest"
},
"run_status": "success",
"trigger_status": "triggered",
"status": "success",
"destination_ids": [
"<string>"
],
"start_time": "<string>",
"finish_time": "<string>",
"notification_sent": true,
"error_message": "<string>",
"trigger_value": 123,
"trigger_details": {
"upper_bound": 123,
"lower_bound": 123,
"is_anomaly": true,
"bound_crossed": "upper",
"actual_spend": 123,
"forecast_spend": 123,
"budget_amount": 123,
"triggered_thresholds": [
{
"metric": "actual_spend",
"unit": "percent",
"value": 123
}
]
},
"partition_config": {
"partition_columns": [
{
"title": "<string>"
}
]
},
"observed_partition_count": 123,
"triggered_partitions": [
{
"partition_value": {},
"trigger_status": "triggered",
"run_status": "success",
"notification_sent": true,
"trigger_value": 123,
"trigger_details": {
"upper_bound": 123,
"lower_bound": 123,
"is_anomaly": true,
"bound_crossed": "upper",
"actual_spend": 123,
"forecast_spend": 123,
"budget_amount": 123,
"triggered_thresholds": [
{
"metric": "actual_spend",
"unit": "percent",
"value": 123
}
]
},
"error_message": "<string>"
}
],
"period_start_time": "<string>",
"period_end_time": "<string>"
}
],
"page_token": "<string>",
"row_count": 123
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}monitors
List a monitor's runs
Lists the monitor’s runs, newest first by default. row_count counts every run matching the request, not just the page returned. Requires monitors:read.
GET
/
monitors
/
{monitor_id}
/
run-history
List a monitor's runs
curl --request GET \
--url https://api.select.dev/v2/monitors/{monitor_id}/run-history \
--header 'Authorization: Bearer <token>' \
--header 'x-tenant-id: <x-tenant-id>'import requests
url = "https://api.select.dev/v2/monitors/{monitor_id}/run-history"
headers = {
"x-tenant-id": "<x-tenant-id>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'x-tenant-id': '<x-tenant-id>', Authorization: 'Bearer <token>'}
};
fetch('https://api.select.dev/v2/monitors/{monitor_id}/run-history', 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.select.dev/v2/monitors/{monitor_id}/run-history",
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>",
"x-tenant-id: <x-tenant-id>"
],
]);
$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.select.dev/v2/monitors/{monitor_id}/run-history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-tenant-id", "<x-tenant-id>")
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.select.dev/v2/monitors/{monitor_id}/run-history")
.header("x-tenant-id", "<x-tenant-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.select.dev/v2/monitors/{monitor_id}/run-history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-tenant-id"] = '<x-tenant-id>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "<string>",
"monitor_id": "<string>",
"monitor_name": "<string>",
"type": "digest",
"trigger_config": {
"skip_if_empty": true,
"type": "digest"
},
"run_status": "success",
"trigger_status": "triggered",
"status": "success",
"destination_ids": [
"<string>"
],
"start_time": "<string>",
"finish_time": "<string>",
"notification_sent": true,
"error_message": "<string>",
"trigger_value": 123,
"trigger_details": {
"upper_bound": 123,
"lower_bound": 123,
"is_anomaly": true,
"bound_crossed": "upper",
"actual_spend": 123,
"forecast_spend": 123,
"budget_amount": 123,
"triggered_thresholds": [
{
"metric": "actual_spend",
"unit": "percent",
"value": 123
}
]
},
"partition_config": {
"partition_columns": [
{
"title": "<string>"
}
]
},
"observed_partition_count": 123,
"triggered_partitions": [
{
"partition_value": {},
"trigger_status": "triggered",
"run_status": "success",
"notification_sent": true,
"trigger_value": 123,
"trigger_details": {
"upper_bound": 123,
"lower_bound": 123,
"is_anomaly": true,
"bound_crossed": "upper",
"actual_spend": 123,
"forecast_spend": 123,
"budget_amount": 123,
"triggered_thresholds": [
{
"metric": "actual_spend",
"unit": "percent",
"value": 123
}
]
},
"error_message": "<string>"
}
],
"period_start_time": "<string>",
"period_end_time": "<string>"
}
],
"page_token": "<string>",
"row_count": 123
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"retryable": true,
"type": "about:blank",
"details": [
{}
]
}Authorizations
Organization API key (sl_…).
Headers
The organization ID the request is scoped to.
Path Parameters
Query Parameters
Field to sort by. Defaults to start_time.
Available options:
start_time, finish_time asc or desc (default).
Available options:
asc, desc Opaque cursor from a previous response. Omit on the first call.

