Pular para o conteúdo principal
GET
/
slos
/
{name}
/
budget
Get SLO Error Budget
curl --request GET \
  --url http://{host}:{port}/{basePath}/slos/{name}/budget \
  --header 'Authorization: <api-key>'
{
  "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
      }
    ]
  }
}
name
string
obrigatório
Nome único do SLO (ex: slo-payment-availability)
granularity
string
padrão:"daily"
Granularidade do histórico: 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
      }
    ]
  }
}

Autorizações

Authorization
string
header
obrigatório

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

Parâmetros de caminho

name
string
obrigatório

Unique SLO name.

Exemplo:

"slo-payment-availability"

Parâmetros de consulta

granularity
enum<string>
padrão:daily

Granularity of the history.

Opções disponíveis:
hourly,
daily,
weekly

Resposta

SLO budget breakdown

apiVersion
string
Exemplo:

"v1"

kind
string
Exemplo:

"SLOBudget"

metadata
object
budget
object