Compute the summary of an SLO at a given point in time. When instanceId is provided, returns that instance. When instanceId is omitted or set to '*', returns all matching instances (up to 1000). The endpoint is synchronous and returns results directly. You must have the read privileges for the SLOs feature in the Observability section of the Kibana feature privileges.
Path parameters
-
An identifier for the space. If
/s/and the identifier are omitted from the path, the default space is used. -
An identifier for the slo.
GET
/s/{spaceId}/api/observability/slos/{sloId}/_snapshot
curl \
--request GET 'https://localhost:5601/s/default/api/observability/slos/9c235211-6834-11ea-a78c-6feb38a34414/_snapshot?at=2025-01-12T10%3A00%3A00.000Z' \
--header "Authorization: $API_KEY" \
--header "kbn-xsrf: string"
Response examples (200)
Snapshot result for a healthy SLO instance
{
"at": "2025-01-12T10:00:00.000Z",
"results": [
{
"id": "8853df00-ae2e-11ed-90af-09bb6422b258",
"instanceId": "*",
"summary": {
"errorBudget": {
"consumed": 0.24,
"initial": 0.01,
"remaining": 0.76
},
"good": 9976,
"sliValue": 0.9976,
"status": "HEALTHY",
"total": 10000
}
}
]
}
{
"at": "2025-01-12T10:00:00.000Z",
"results": [
{
"id": "8853df00-ae2e-11ed-90af-09bb6422b258",
"instanceId": "host.name:web-01",
"summary": {
"errorBudget": {
"consumed": 5,
"initial": 0.01,
"remaining": -4
},
"good": 9500,
"sliValue": 0.95,
"status": "VIOLATED",
"total": 10000
}
}
]
}
Response examples (400)
{
"error": "Bad Request",
"message": "Invalid value 'foo' supplied to: at",
"statusCode": 400
}
Response examples (401)
{
"error": "Unauthorized",
"message": "security_exception: unable to authenticate user for REST request [/api/observability/slos]",
"statusCode": 401
}
Response examples (403)
{
"error": "Forbidden",
"message": "security_exception: action [slo_read] is unauthorized for user",
"statusCode": 403
}
Response examples (404)
{
"error": "Not Found",
"message": "SLO [8853df00-ae2e-11ed-90af-09bb6422b258] not found",
"statusCode": 404
}