Get an SLO's history

GET {{baseUrl}}/api/v1/slo/:slo_id/history?from_ts=74288761&to_ts=74288761&target=81.04101124863735&apply_correction=true

Get a specific SLO’s history, regardless of its SLO type.

The detailed history data is structured according to the source data type. For example, metric data is included for event SLOs that use the metric source, and monitor SLO types include the monitor transition history.

Note: There are different response formats for event based and time based SLOs. Examples of both are shown.

Request Params

KeyDatatypeRequiredDescription
from_tsnumber(Required) The from timestamp for the query window in epoch seconds.
to_tsnumber(Required) The to timestamp for the query window in epoch seconds.
targetstringThe SLO target. If target is passed in, the response will include the remaining error budget and a timeframe value of custom.
apply_correctionbooleanDefaults to true. If any SLO corrections are applied and this parameter is set to false,
then the corrections will not be applied and the SLI values will not be affected.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"data":{"from_ts":1615323990,"group_by":["adipisicing in velit eiusmod","eiusmod irure "],"groups":[{"error_budget_remaining":{"7d":100},"errors":[{"error_type":"","error_message":""},{"error_type":"","error_message":""}],"group":"name","history":[[1579212382,0]],"monitor_modified":1615867200,"monitor_type":"string","name":"string","preview":true,"sli_value":99.99,"span_precision":2},{"error_budget_remaining":{"7d":100},"errors":[{"error_type":"","error_message":""},{"error_type":"","error_message":""}],"group":"name","history":[[1579212382,0]],"monitor_modified":1615867200,"monitor_type":"string","name":"string","preview":true,"sli_value":99.99,"span_precision":2}],"monitors":[{"error_budget_remaining":{"7d":100},"errors":[{"error_type":"","error_message":""},{"error_type":"","error_message":""}],"group":"name","history":[[1579212382,0]],"monitor_modified":1615867200,"monitor_type":"string","name":"string","preview":true,"sli_value":99.99,"span_precision":2},{"error_budget_remaining":{"7d":100},"errors":[{"error_type":"","error_message":""},{"error_type":"","error_message":""}],"group":"name","history":[[1579212382,0]],"monitor_modified":1615867200,"monitor_type":"string","name":"string","preview":true,"sli_value":99.99,"span_precision":2}],"overall":{"error_budget_remaining":{"7d":100},"errors":[{"error_type":"","error_message":""},{"error_type":"","error_message":""}],"group":"name","history":[[1579212382,0]],"monitor_modified":1615867200,"monitor_type":"string","name":"string","precision":{"30d":1,"7d":2},"preview":true,"sli_value":99.99,"span_precision":2},"series":{"res_type":"","interval":0,"resp_version":0,"query":"","times":[],"numerator":{"count":0,"sum":0,"metadata":{}},"denominator":{"count":0,"sum":0,"metadata":{}},"message":""},"thresholds":{"my_service":{"target":95,"timeframe":"7d"}},"to_ts":1615928790,"type":"metric","type_id":0},"errors":[{"error":"eu Duis in dolore ut"},{"error":"do cupidatat"}]}