Skip to content

Monitor

Examples

List monitors

monitors = pm.monitor.list()

Get a single monitor

# Get a monitor by ID
monitor_id = 11
monitor = pm.monitor.get(monitor_id)

Create a monitor

monitor = pm.monitor.create(
  name="My monitor",
  description="Demonstration monitor",
  service=service.id,
  scope=scope.id,
)

Updating a monitor

monitor = monitor.update(
  status="warning",
)

Deleting a monitor

monitor.delete()

Last update: October 20, 2022
Created: October 20, 2022