With LogicMonitor’s REST API you can programmatically get all alerts for specific websites in your account.
Notes:
HTTP Method:GET
URI: /service/services/{id}/alerts
Request Parameters: By default, a list of 50 alerts will be returned for each result. You can include sort, filter, fields, size and offset parameters in your request to control what data is included in the response and how it is formatted.
Property
|
Syntax
|
Description
|
Example URI
|
sort |
sort={+ or -}property |
Sorts the response by the property specified in either increasing (+) or decreasing (-) order |
/service/services/76/alerts?sort=-startEpoch |
filter |
filter=property:value |
Filters the response to include only the results that have the specified value for the specified property |
/service/services/12/alerts?filter=severity:2 |
fields |
fields={list of properties separated by commas} |
Filters the response to only include the following fields for each object |
/service/services/32/alerts?fields=internalId,type |
size |
size=integer |
The number of results to display. Max is 1000 |
/service/services/54/alerts?size=5 |
offset |
offset=integer |
The number of results to offset the displayed results by |
/service/services/56/alerts?offset=2 |