List alert rules
GET {{baseUrl}}/alerts/rules?aid=1234
Returns a list of alert rules. Default rules for each test type are indicated with a boolean response (true or false); these default alert rules automatically apply to their respective test types.
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. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"alertRules":[{"alertType":"http-server","expression":"((hops((hopDelay \u003e= 100 ms))))","roundsViolatingOutOf":5,"roundsViolatingRequired":2,"ruleName":"The End of the Internet","ruleId":"127094","direction":"to-target","notifyOnClear":true,"isDefault":true,"minimumSources":10,"minimumSourcesPct":99,"roundsViolatingMode":"exact","includeCoveredPrefixes":true,"sensitivityLevel":"medium","severity":"major"},{"alertType":"http-server","expression":"((hops((hopDelay \u003e= 100 ms))))","roundsViolatingOutOf":5,"roundsViolatingRequired":2,"ruleName":"The End of the Internet","ruleId":"127094","direction":"to-target","notifyOnClear":true,"isDefault":true,"minimumSources":10,"minimumSourcesPct":99,"roundsViolatingMode":"exact","includeCoveredPrefixes":true,"sensitivityLevel":"medium","severity":"major"}],"_links":{"self":{"href":"https://api.thousandeyes.com/v7/link/to/resource/id","templated":true,"type":"sint","deprecation":"elit esse quis","name":"sed reprehenderit nisi","profile":"eu laborum exercitation","title":"ex consectetur","hreflang":"officia dolor"}}}