Get all alerts for a Device

Last updated on 22 September, 2020

With LogicMonitor’s REST API you can programmatically get all alerts for specific devices in your account.





URI: /device/devices/{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.




Example URI

sort sort={+ or -}property Sorts the response by the property specified in either increasing (+) or decreasing (-) order /device/devices/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 /device/devices/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 /device/devices/32/alerts?fields=internalId,type
size size=integer The number of results to display. Default is 50, and max is 1000 /device/devices/54/alerts?size=5
offset offset=integer The number of results to offset the displayed results by /device/devices/56/alerts?offset=2