Skip to main content
SLO & Service Quality/SLO

GetCurrentStatusWithFallback

Get the SLO status with automatic fallback to cached data when the VM is unavailable.

GET/api/v1/slo/objectives/{sloId}/status-safe

Operation ID

GetCurrentStatusWithFallback

Since

1.0.0

Execution Mode

Synchronous

Auth Context

Auth Required

Auth Context

Send these values as request headers when calling this API.

AuthorizationstringRequired

Bearer Token

X-Tenant-IDstring

X-Tenant-ID

Request Inputs

Path Parameters

  • sloId
    StringRequired

    Identifier of the SLO objective to query with fallback support.

Responses

200 OK
200 OK

On success, this API returns the following response structure.

  • status
    Object

    Current SLO compliance status retrieved from realtime or fallback source.

    • sloId
      String

      Identifier of the SLO objective being reported.

      Example: slo-xyz789

    • currentSli
      Long

      Current measured SLI value within the compliance window.

      Example: 0.9985

    • targetSli
      Long

      Target SLI value that the objective aims to meet.

      Example: 0.999

    • status
      String

      Compliance status: MEETING | AT_RISK | BREACHED.

      Example: MEETING

    • remainingErrorBudgetRatio
      Long

      Fraction of the error budget still remaining (0.0–1.0).

      Example: 0.65

    • errorBudgetConsumedPct
      Long

      Percentage of the error budget that has been consumed.

      Example: 35

    • windowStart
      String

      Start of the current compliance measurement window.

      Example: 2026-01-15T08:00:00Z

    • windowEnd
      String

      End of the current compliance measurement window.

      Example: 2026-01-15T08:00:00Z

    • cachedAt
      String

      Timestamp when this status was last cached.

      Example: 2026-01-15T08:00:00Z

  • dataSource
    String

    Data source used for the status: realtime | stale_cache | estimate.

    Example: realtime

  • cacheAgeSecs
    String

    Age of the cached data in seconds; zero if data is from realtime.

    Example: 120

  • vmStatus
    String

    Health state of the VictoriaMetrics backend: healthy | degraded | unavailable.

    Example: healthy