Get all SLOs

GET {{baseUrl}}/api/v1/slo?ids=id1, id2, id3&query=monitor&tags_query=env:prod&metrics_query=aws.elb.request_count&limit=-62147425&offset=-62147425

Get a list of service level objective objects for your organization.

Request Params

KeyDatatypeRequiredDescription
idsstringA comma separated list of the IDs of the service level objectives objects.
querystringThe query string to filter results based on SLO names.
tags_querystringThe query string to filter results based on a single SLO tag.
metrics_querystringThe query string to filter results based on SLO numerator and denominator.
limitnumberThe number of SLOs to return in the response.
offsetnumberThe specific offset to use as the beginning of the returned response.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"data":[{"name":"Custom Metric SLO","thresholds":[{"target":95,"timeframe":"7d"},{"target":95,"timeframe":"30d","warning":97}],"type":"metric","created_at":-94400396,"creator":{"email":"esse ullamco","handle":"pariatur irure sit non","name":"in proident laborum"},"description":"est proident magna reprehenderit","groups":["env:prod","role:mysql"],"id":"ipsum laboris consequat","modified_at":-34908193,"monitor_ids":[35412081,-51315393],"monitor_tags":["voluptate adipisicing fugiat elit","reprehenderit et nostrud pariatur Excepteur"],"query":{"numerator":"sum:my.custom.metric{type:good}.as_count()","denominator":"sum:my.custom.metric{*}.as_count()"},"tags":["env:prod","app:core"],"target_threshold":99.9,"timeframe":"30d","warning_threshold":99.95},{"name":"Custom Metric SLO","thresholds":[{"target":95,"timeframe":"7d"},{"target":95,"timeframe":"30d","warning":97}],"type":"metric","created_at":-83055437,"creator":{"email":"exercitation","handle":"commodo aute incididunt ut","name":"Lorem dolor irure"},"description":"do nostrud ex sit","groups":["env:prod","role:mysql"],"id":"ut elit commodo","modified_at":-65512371,"monitor_ids":[70922825,-10561601],"monitor_tags":["laborum aliqua proident","ullamco cillum ea consectetur"],"query":{"numerator":"sum:my.custom.metric{type:good}.as_count()","denominator":"sum:my.custom.metric{*}.as_count()"},"tags":["env:prod","app:core"],"target_threshold":99.9,"timeframe":"30d","warning_threshold":99.95}],"errors":["deserunt in fugiat","proident"],"metadata":{"page":{"total_count":69715777,"total_filtered_count":-16033264}}}