Update Group-level Thresholds
You can use LogicMonitor’s REST API to update group level thresholds for particular datasources.
Note: As with all of our API calls, authentication is required.
HTTP Method: PUT
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 the following parameters in a PUT request:
Example
The following Python script sets a group level threshold of >1 for the StatusCheckFailed_System datapoint, datasource 678 (AWS_EC2 datasource), group 55: