Pular para o conteúdo principal
GET
/
api
/
v1
/
slos
Listar SLOs
curl --request GET \
  --url https://api.example.com/api/v1/slos
{
  "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 servico
status
string
Filtrar por status: healthy, warning, breached
page
integer
padrão:"1"
Número da pagina
pageSize
integer
padrão:"20"
Itens por pagina (maximo 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"
    }
  ]
}