Get Instance-level Thresholds
You can use LogicMonitor’s REST API to view instance level thresholds for a particular datasource.
Note: As with all of our API calls, authentication is required.
HTTP Method: GET
URI: /device/devices/{deviceId}/devicedatasources/{deviceDatasourceId}/instances/{instanceId}/alertsettings
Where:
- {deviceId} is the id of the device you’d like to see thresholds for. You can get group Ids from a GET request to the devices resource.
- {deviceDatasourceId} is the id of the device datasource you’d like to see thresholds for. You can get this Id by making a GET request to the device datasources resource
- {instanceId} is the id of the instance you’d like to see thresholds for. You can get this id by making a GET request to the instances resource
Request Parameters: You can include a fields parameter in your request to control what data is included in the response and how it is formatted:
Example
The following Python script will return the thresholds for datapoints associated with device 56, device datasource 3320, instance 1469: