Pular para o conteĆŗdo principal
GET
/
slos
List SLOs
curl --request GET \
  --url http://{host}:{port}/{basePath}/slos \
  --header 'Authorization: <api-key>'
{
  "apiVersion": "v1",
  "kind": "SLOList",
  "metadata": {
    "totalCount": 8,
    "page": 1,
    "pageSize": 20
  },
  "items": [
    {
      "name": "slo-payment-availability",
      "namespace": "production",
      "service": "payment-service",
      "type": "availability",
      "target": 99.95,
      "current": 99.87,
      "status": "warning",
      "budgetRemaining": "32%",
      "window": "30d",
      "lastUpdated": "2026-03-19T15:00:00Z"
    },
    {
      "name": "slo-api-latency-p99",
      "namespace": "production",
      "service": "api-gateway",
      "type": "latency",
      "target": 200,
      "targetUnit": "ms",
      "current": 145,
      "status": "healthy",
      "budgetRemaining": "78%",
      "window": "30d",
      "lastUpdated": "2026-03-19T15:00:00Z"
    },
    {
      "name": "slo-checkout-error-rate",
      "namespace": "production",
      "service": "checkout-service",
      "type": "error_rate",
      "target": 0.1,
      "current": 0.35,
      "status": "breached",
      "budgetRemaining": "0%",
      "window": "30d",
      "lastUpdated": "2026-03-19T15:00:00Z"
    }
  ]
}
namespace
string
Filtrar por namespace Kubernetes
service
string
Filtrar por nome do serviƧo
status
string
Filtrar por status: healthy, warning, breached
page
integer
padrão:"1"
Número da pÔgina
pageSize
integer
padrão:"20"
Itens por pƔgina (mƔximo 100)
{
  "apiVersion": "v1",
  "kind": "SLOList",
  "metadata": {
    "totalCount": 8,
    "page": 1,
    "pageSize": 20
  },
  "items": [
    {
      "name": "slo-payment-availability",
      "namespace": "production",
      "service": "payment-service",
      "type": "availability",
      "target": 99.95,
      "current": 99.87,
      "status": "warning",
      "budgetRemaining": "32%",
      "window": "30d",
      "lastUpdated": "2026-03-19T15:00:00Z"
    },
    {
      "name": "slo-api-latency-p99",
      "namespace": "production",
      "service": "api-gateway",
      "type": "latency",
      "target": 200,
      "targetUnit": "ms",
      "current": 145,
      "status": "healthy",
      "budgetRemaining": "78%",
      "window": "30d",
      "lastUpdated": "2026-03-19T15:00:00Z"
    },
    {
      "name": "slo-checkout-error-rate",
      "namespace": "production",
      "service": "checkout-service",
      "type": "error_rate",
      "target": 0.1,
      "current": 0.35,
      "status": "breached",
      "budgetRemaining": "0%",
      "window": "30d",
      "lastUpdated": "2026-03-19T15:00:00Z"
    }
  ]
}

AutorizaƧƵes

Authorization
string
header
obrigatório

Bearer token issued by the operator. Format: Authorization: Bearer <token>.

Parâmetros de consulta

namespace
string

Filter by Kubernetes namespace.

service
string

Filter by service name.

status
enum<string>

Filter by SLO status.

OpƧƵes disponƭveis:
healthy,
warning,
breached
page
integer
padrão:1

Page number.

pageSize
integer
padrão:20

Items per page (max 100).

Intervalo obrigatório: x <= 100

Resposta

Paginated list of SLOs

apiVersion
string
Exemplo:

"v1"

kind
string
Exemplo:

"SLOList"

metadata
object
items
object[]