get_monitor
Fetch a LastPing monitor by UUID to read its assertions, guards, and alert routes before updating them, preventing accidental loss of existing configuration.
Instructions
Requires an API key with the read scope or higher. Get a single LastPing monitor by UUID. Returns the monitor's full configuration including its output assertions (the assertions field: conditions a successful run's ping body must satisfy; absent when the monitor has none) and its metric guards (the guards field: ceilings on a number the job reports about itself; absent when the monitor has none) and its alert ROUTING (the routes field: which destinations receive which event type; absent when the monitor has none). Read this before calling update_monitor with assertions or guards, and before calling set_route — every one of those three writes REPLACES a whole set, so an agent that did not read the current one first will silently drop assertions, guards or destinations somebody else configured.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Monitor UUID. |