slo

verify a service-level objective over a window

Evaluates a named set of objectives (latency percentiles, error rate) over a time window against the recorded forward-path SLI samples and returns a PASS / FAIL / INCONCLUSIVE verdict. The HTTP status encodes the verdict so a CI or chaos gate can assert on the status code alone: 200 when the verdict is PASS or INCONCLUSIVE, 406 when it is FAIL. A criteria PASSes only when all objectives hold (logical AND); it is INCONCLUSIVE when an indicator cannot be computed or the window holds fewer than minimumSampleCount samples. Off by default — returns 400 until sloTrackingEnabled=true.

put/mockserver/verifySLO

Request

  • Base URL: http://localhost:1080
  • URL: http://localhost:1080/mockserver/verifySLO
  • Auth: none declared

Request body

namestring

human-readable criteria name, echoed back in the verdict

minimumSampleCountinteger

minimum samples required in the window; below this the verdict is INCONCLUSIVE

upstreamHostsstring[]

optional list of upstream hosts to restrict the evaluation to

Response

verdict is PASS or INCONCLUSIVE

namestring
result'PASS' | 'FAIL' | 'INCONCLUSIVE'
windowFromEpochMillisinteger
windowToEpochMillisinteger
sampleCountinteger

Changes

No recorded changes to this operation across all 1 revision of this API.