Update Instance-level Thresholds
You can use LogicMonitor’s REST API to programmatically update instance level thresholds.
Note: As with all of our API calls, authentication is required.
HTTP Method: PUT
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
- {id} is the id of the alert setting you’d like to update, from a Get instance-level thresholds request.
Request Parameters: You can include the following parameters in your PUT request:
Example
The following Python script updates the threshold for the recvd packets datapoint for device datasource 3320 (which is Ping in api.logicmonitor.com):