Update alert suppression window
PUT {{baseUrl}}/alert-suppression-windows/:windowId?aid=1234&expand=test
Updates an alert suppression window in ThousandEyes, using the provided POST data. Only Account Admins can update alert suppression windows.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
aid | number | A unique identifier associated with your account group. You can retrieve your AccountGroupId from the /account-groups endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. | |
expand | string | Optional parameter on whether or not to expand alert related resources. Without this parameter, there's no default expansion. For example, to expand the "tests" resource, use the ?expand=test query. |
Request Body
{"name"=>"Monthly maintenance", "isEnabled"=>false, "startDate"=>"2017-07-01T05:00:00Z", "duration"=>0, "repeat"=>{"type"=>"week", "intervalType"=>"day", "intervalLength"=>2, "daysOfWeek"=>["sun", "sun"]}, "endRepeat"=>{"type"=>"never", "count"=>3, "date"=>"2017-07-01"}, "tests"=>["71687", "71687"]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"alertSuppressionWindowId":"2411","name":"Monthly maintenance","isEnabled":false,"status":"ended","startDate":"2017-07-01T05:00:00Z","duration":0,"repeat":{"type":"week","intervalType":"day","intervalLength":2,"daysOfWeek":["sun","sun"]},"endRepeat":{"type":"never","count":3,"date":"2017-07-01"},"_links":{"self":{"href":"https://api.thousandeyes.com/v7/link/to/resource/id","templated":true,"type":"ipsum ut","deprecation":"velit pariatur voluptate","name":"in adipisicing commodo dolor","profile":"Lorem laboris in eu","title":"mollit consectetur elit","hreflang":"veniam non"}},"tests":[{"interval":60,"alertsEnabled":true,"enabled":true,"alertRules":[{"ruleId":"127094","ruleName":"The End of the Internet","expression":"((hops((hopDelay \u003e= 100 ms))))","direction":"to-target","isDefault":true,"alertType":"http-server","minimumSources":10,"minimumSourcesPct":99,"roundsViolatingMode":"exact","roundsViolatingOutOf":5,"roundsViolatingRequired":2,"sensitivityLevel":"medium","severity":"major"},{"ruleId":"127094","ruleName":"The End of the Internet","expression":"((hops((hopDelay \u003e= 100 ms))))","direction":"to-target","isDefault":true,"alertType":"http-server","minimumSources":10,"minimumSourcesPct":99,"roundsViolatingMode":"exact","roundsViolatingOutOf":5,"roundsViolatingRequired":2,"sensitivityLevel":"medium","severity":"major"}]},{"interval":60,"alertsEnabled":true,"enabled":true,"alertRules":[{"ruleId":"127094","ruleName":"The End of the Internet","expression":"((hops((hopDelay \u003e= 100 ms))))","direction":"to-target","isDefault":true,"alertType":"http-server","minimumSources":10,"minimumSourcesPct":99,"roundsViolatingMode":"exact","roundsViolatingOutOf":5,"roundsViolatingRequired":2,"sensitivityLevel":"medium","severity":"major"},{"ruleId":"127094","ruleName":"The End of the Internet","expression":"((hops((hopDelay \u003e= 100 ms))))","direction":"to-target","isDefault":true,"alertType":"http-server","minimumSources":10,"minimumSourcesPct":99,"roundsViolatingMode":"exact","roundsViolatingOutOf":5,"roundsViolatingRequired":2,"sensitivityLevel":"medium","severity":"major"}]}]}