Get SLO Error Budget
curl --request GET \
--url http://{host}:{port}/{basePath}/slos/{name}/budget \
--header 'Authorization: <api-key>'import requests
url = "http://{host}:{port}/{basePath}/slos/{name}/budget"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('http://{host}:{port}/{basePath}/slos/{name}/budget', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "http://{host}:{port}/{basePath}/slos/{name}/budget",
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: <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 := "http://{host}:{port}/{basePath}/slos/{name}/budget"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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("http://{host}:{port}/{basePath}/slos/{name}/budget")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("http://{host}:{port}/{basePath}/slos/{name}/budget")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"apiVersion": "v1",
"kind": "SLOBudget",
"metadata": {
"name": "slo-payment-availability",
"namespace": "production"
},
"budget": {
"target": 99.95,
"window": "30d",
"totalMinutes": 43200,
"allowedDowntimeMinutes": 21.6,
"consumedDowntimeMinutes": 14.7,
"remainingDowntimeMinutes": 6.9,
"remainingPercent": 32.0,
"burnRate": {
"current1h": 2.1,
"current6h": 1.8,
"current24h": 1.2
},
"forecast": {
"exhaustionDate": "2026-03-25T08:00:00Z",
"daysRemaining": 5.7,
"trend": "deteriorating"
},
"history": [
{
"date": "2026-03-19",
"consumed": 1.2,
"cumulative": 14.7,
"remainingPercent": 32.0
},
{
"date": "2026-03-18",
"consumed": 0.5,
"cumulative": 13.5,
"remainingPercent": 37.5
},
{
"date": "2026-03-17",
"consumed": 0.1,
"cumulative": 13.0,
"remainingPercent": 39.8
}
]
}
}
SLOs
Get SLO Error Budget
Returns the error budget breakdown for an SLO, including consumption history
GET
/
slos
/
{name}
/
budget
Get SLO Error Budget
curl --request GET \
--url http://{host}:{port}/{basePath}/slos/{name}/budget \
--header 'Authorization: <api-key>'import requests
url = "http://{host}:{port}/{basePath}/slos/{name}/budget"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('http://{host}:{port}/{basePath}/slos/{name}/budget', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "http://{host}:{port}/{basePath}/slos/{name}/budget",
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: <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 := "http://{host}:{port}/{basePath}/slos/{name}/budget"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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("http://{host}:{port}/{basePath}/slos/{name}/budget")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("http://{host}:{port}/{basePath}/slos/{name}/budget")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"apiVersion": "v1",
"kind": "SLOBudget",
"metadata": {
"name": "slo-payment-availability",
"namespace": "production"
},
"budget": {
"target": 99.95,
"window": "30d",
"totalMinutes": 43200,
"allowedDowntimeMinutes": 21.6,
"consumedDowntimeMinutes": 14.7,
"remainingDowntimeMinutes": 6.9,
"remainingPercent": 32.0,
"burnRate": {
"current1h": 2.1,
"current6h": 1.8,
"current24h": 1.2
},
"forecast": {
"exhaustionDate": "2026-03-25T08:00:00Z",
"daysRemaining": 5.7,
"trend": "deteriorating"
},
"history": [
{
"date": "2026-03-19",
"consumed": 1.2,
"cumulative": 14.7,
"remainingPercent": 32.0
},
{
"date": "2026-03-18",
"consumed": 0.5,
"cumulative": 13.5,
"remainingPercent": 37.5
},
{
"date": "2026-03-17",
"consumed": 0.1,
"cumulative": 13.0,
"remainingPercent": 39.8
}
]
}
}
string
required
Unique SLO name (e.g.,
slo-payment-availability)string
default:"daily"
History granularity:
hourly, daily, weekly{
"apiVersion": "v1",
"kind": "SLOBudget",
"metadata": {
"name": "slo-payment-availability",
"namespace": "production"
},
"budget": {
"target": 99.95,
"window": "30d",
"totalMinutes": 43200,
"allowedDowntimeMinutes": 21.6,
"consumedDowntimeMinutes": 14.7,
"remainingDowntimeMinutes": 6.9,
"remainingPercent": 32.0,
"burnRate": {
"current1h": 2.1,
"current6h": 1.8,
"current24h": 1.2
},
"forecast": {
"exhaustionDate": "2026-03-25T08:00:00Z",
"daysRemaining": 5.7,
"trend": "deteriorating"
},
"history": [
{
"date": "2026-03-19",
"consumed": 1.2,
"cumulative": 14.7,
"remainingPercent": 32.0
},
{
"date": "2026-03-18",
"consumed": 0.5,
"cumulative": 13.5,
"remainingPercent": 37.5
},
{
"date": "2026-03-17",
"consumed": 0.1,
"cumulative": 13.0,
"remainingPercent": 39.8
}
]
}
}
Authorizations
Bearer token issued by the operator. Format: Authorization: Bearer <token>.
Path Parameters
Unique SLO name.
Example:
"slo-payment-availability"
Query Parameters
Granularity of the history.
Available options:
hourly, daily, weekly ⌘I