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=1000&offset=74288761
Get a list of service level objective objects for your organization.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
ids | string | A comma separated list of the IDs of the service level objectives objects. | |
query | string | The query string to filter results based on SLO names. | |
tags_query | string | The query string to filter results based on a single SLO tag. | |
metrics_query | string | The query string to filter results based on SLO numerator and denominator. | |
limit | number | The number of SLOs to return in the response. | |
offset | number | The specific offset to use as the beginning of the returned response. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"data":[{"name":"Custom Metric SLO","thresholds":[{"target":95,"timeframe":"7d"},{"target":95,"timeframe":"30d","warning":97}],"type":"metric","created_at":-65283953,"creator":{"email":"irure aliqua tem","handle":"fugiat ","name":"labore officia"},"description":"ea","groups":["env:prod","role:mysql"],"id":"exercitation esse anim","modified_at":49740788,"monitor_ids":[-79804514,-61079246],"monitor_tags":["do fugiat dolore ipsum","eu pariatur do nulla"],"query":{"numerator":"sum:my.custom.metric{type:good}.as_count()","denominator":"sum:my.custom.metric{*}.as_count()"},"sli_specification":{"time_slice":{"comparator":"\u003c","query":{"formulas":[{"formula":"query2/query1"}],"queries":[{"data_source":"metrics","name":"query1","query":"sum:trace.servlet.request.hits{*} by {env}.as_count()"},{"data_source":"metrics","name":"query1","query":"sum:trace.servlet.request.errors{*} by {env}.as_count()"}]},"threshold":5}},"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":74831822,"creator":{"email":"Excepteur ut mollit do","handle":"mollit offic","name":"esse non sit sed"},"description":"non ut irure occaecat Excepteur","groups":["env:prod","role:mysql"],"id":"ipsum enim","modified_at":37773724,"monitor_ids":[-50893227,91148165],"monitor_tags":["dolor ut reprehenderit eiusmod","dolor ani"],"query":{"numerator":"sum:my.custom.metric{type:good}.as_count()","denominator":"sum:my.custom.metric{*}.as_count()"},"sli_specification":{"time_slice":{"comparator":"\u003c","query":{"formulas":[{"formula":"query2/query1"}],"queries":[{"data_source":"metrics","name":"query1","query":"sum:trace.servlet.request.hits{*} by {env}.as_count()"},{"data_source":"metrics","name":"query1","query":"sum:trace.servlet.request.errors{*} by {env}.as_count()"}]},"threshold":5}},"tags":["env:prod","app:core"],"target_threshold":99.9,"timeframe":"30d","warning_threshold":99.95}],"errors":["dolor","consequat mollit pariatur dolor"],"metadata":{"page":{"total_count":-48143109,"total_filtered_count":40213587}}}