Get SLO
curl --request GET \
--url http://{host}:{port}/{basePath}/slos/{name} \
--header 'Authorization: <api-key>'import requests
url = "http://{host}:{port}/{basePath}/slos/{name}"
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}', 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}",
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}"
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}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("http://{host}:{port}/{basePath}/slos/{name}")
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": "SLO",
"metadata": {
"name": "slo-payment-availability",
"namespace": "production",
"createdAt": "2026-01-15T10:00:00Z",
"labels": {
"service": "payment-service",
"team": "platform",
"tier": "critical"
}
},
"spec": {
"service": "payment-service",
"type": "availability",
"target": 99.95,
"window": "30d",
"indicator": {
"source": "prometheus",
"query": "sum(rate(http_requests_total{service='payment-service',code!~'5..'}[5m])) / sum(rate(http_requests_total{service='payment-service'}[5m])) * 100",
"goodEventsQuery": "http_requests_total{code!~'5..'}",
"totalEventsQuery": "http_requests_total"
},
"alerting": {
"burnRateThresholds": [
{
"severity": "critical",
"shortWindow": "5m",
"longWindow": "1h",
"burnRate": 14.4
},
{
"severity": "warning",
"shortWindow": "30m",
"longWindow": "6h",
"burnRate": 6.0
}
],
"notificationChannels": ["slack:#sre-alerts", "pagerduty:platform-team"]
}
},
"status": {
"current": 99.87,
"status": "warning",
"budgetTotal": 21.6,
"budgetConsumed": 14.7,
"budgetRemaining": 6.9,
"budgetRemainingPercent": "32%",
"windowStart": "2026-02-17T15:00:00Z",
"windowEnd": "2026-03-19T15:00:00Z",
"lastUpdated": "2026-03-19T15:00:00Z",
"history": [
{"date": "2026-03-19", "value": 99.82},
{"date": "2026-03-18", "value": 99.91},
{"date": "2026-03-17", "value": 99.98}
]
}
}
SLOs
Get SLO
Returns the full details of a specific SLO
GET
/
slos
/
{name}
Get SLO
curl --request GET \
--url http://{host}:{port}/{basePath}/slos/{name} \
--header 'Authorization: <api-key>'import requests
url = "http://{host}:{port}/{basePath}/slos/{name}"
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}', 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}",
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}"
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}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("http://{host}:{port}/{basePath}/slos/{name}")
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": "SLO",
"metadata": {
"name": "slo-payment-availability",
"namespace": "production",
"createdAt": "2026-01-15T10:00:00Z",
"labels": {
"service": "payment-service",
"team": "platform",
"tier": "critical"
}
},
"spec": {
"service": "payment-service",
"type": "availability",
"target": 99.95,
"window": "30d",
"indicator": {
"source": "prometheus",
"query": "sum(rate(http_requests_total{service='payment-service',code!~'5..'}[5m])) / sum(rate(http_requests_total{service='payment-service'}[5m])) * 100",
"goodEventsQuery": "http_requests_total{code!~'5..'}",
"totalEventsQuery": "http_requests_total"
},
"alerting": {
"burnRateThresholds": [
{
"severity": "critical",
"shortWindow": "5m",
"longWindow": "1h",
"burnRate": 14.4
},
{
"severity": "warning",
"shortWindow": "30m",
"longWindow": "6h",
"burnRate": 6.0
}
],
"notificationChannels": ["slack:#sre-alerts", "pagerduty:platform-team"]
}
},
"status": {
"current": 99.87,
"status": "warning",
"budgetTotal": 21.6,
"budgetConsumed": 14.7,
"budgetRemaining": 6.9,
"budgetRemainingPercent": "32%",
"windowStart": "2026-02-17T15:00:00Z",
"windowEnd": "2026-03-19T15:00:00Z",
"lastUpdated": "2026-03-19T15:00:00Z",
"history": [
{"date": "2026-03-19", "value": 99.82},
{"date": "2026-03-18", "value": 99.91},
{"date": "2026-03-17", "value": 99.98}
]
}
}
string
required
Unique SLO name (e.g.,
slo-payment-availability){
"apiVersion": "v1",
"kind": "SLO",
"metadata": {
"name": "slo-payment-availability",
"namespace": "production",
"createdAt": "2026-01-15T10:00:00Z",
"labels": {
"service": "payment-service",
"team": "platform",
"tier": "critical"
}
},
"spec": {
"service": "payment-service",
"type": "availability",
"target": 99.95,
"window": "30d",
"indicator": {
"source": "prometheus",
"query": "sum(rate(http_requests_total{service='payment-service',code!~'5..'}[5m])) / sum(rate(http_requests_total{service='payment-service'}[5m])) * 100",
"goodEventsQuery": "http_requests_total{code!~'5..'}",
"totalEventsQuery": "http_requests_total"
},
"alerting": {
"burnRateThresholds": [
{
"severity": "critical",
"shortWindow": "5m",
"longWindow": "1h",
"burnRate": 14.4
},
{
"severity": "warning",
"shortWindow": "30m",
"longWindow": "6h",
"burnRate": 6.0
}
],
"notificationChannels": ["slack:#sre-alerts", "pagerduty:platform-team"]
}
},
"status": {
"current": 99.87,
"status": "warning",
"budgetTotal": 21.6,
"budgetConsumed": 14.7,
"budgetRemaining": 6.9,
"budgetRemainingPercent": "32%",
"windowStart": "2026-02-17T15:00:00Z",
"windowEnd": "2026-03-19T15:00:00Z",
"lastUpdated": "2026-03-19T15:00:00Z",
"history": [
{"date": "2026-03-19", "value": 99.82},
{"date": "2026-03-18", "value": 99.91},
{"date": "2026-03-17", "value": 99.98}
]
}
}
Authorizations
Bearer token issued by the operator. Format: Authorization: Bearer <token>.
Path Parameters
Unique SLO name.
Example:
"slo-payment-availability"
⌘I