Get Group-level Thresholds
You can use LogicMonitor’s REST API to view group level thresholds for a particular datasource.
Note: As with all of our API calls, authentication is required.
HTTP Method: GET
URI: /device/groups/{groupId}/datasources/{datasourceId}/alertsettings
Where:
- {groupId} is the id of the group you’d like to see thresholds for. You can get group Ids from a GET request to the groups resource.
- {datasourceId} is the id of the datasource you’d like to see thresholds for. You can get datasource Id by making a GET request to /device/groups/{groupId}/datasources
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 devices in group 55 & datasource 678: