Update an SLO

PUT {{baseUrl}}/api/v1/slo/:slo_id

Update the specified service level objective object.

Request Body

{"name"=>"Custom Metric SLO", "thresholds"=>[{"target"=>95, "timeframe"=>"7d"}, {"target"=>95, "timeframe"=>"30d", "warning"=>97}], "type"=>"metric", "created_at"=>-99964498, "creator"=>{"email"=>"nostrud aliqua dolore adipisicing", "handle"=>"esse ad", "name"=>"est"}, "description"=>"adipisicing est quis ipsum", "groups"=>["env:prod", "role:mysql"], "id"=>"nostrud officia", "modified_at"=>-83338646, "monitor_ids"=>[-42604664, -6863832], "monitor_tags"=>["sint", "cillum nisi ipsum"], "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}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
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}}}