Commands

up0 monitors

Monitor list and service binding

up0 monitors

Monitor list and service binding

up0 monitors bind

Bind a monitor to a service in the org's service catalog.

Drives the write path #856 built: PATCH /api/v1/me/monitors/{id} with {"service_id": <uuid>}. Turns on #838's Issue<->Incident correlation for that service once the monitor and an issue share it.

Usage: up0 monitors bind [OPTIONS] MONITOR
NameTypeDefaultDescription
MONITORstringrequiredMonitor id (UUID) or exact name
--servicestringrequiredName of the service to bind to (must belong to this org)
--jsonbooleanfalseEmit the updated monitor as JSON
--org-idstring-Organization ID (or set UP0_ORG_ID) (env: UP0_ORG_ID)

up0 monitors list

List the organization's monitors, showing each one's bound service.

Pages through every monitor (#859 review) rather than stopping at the API's 100-per-page cap -- a list command that silently drops rows past page 1 is the same failure class as bind reporting a real monitor "not found"; both are fixed by _all_monitors.

Usage: up0 monitors list [OPTIONS]
NameTypeDefaultDescription
--jsonbooleanfalseEmit monitors as JSON
--org-idstring-Organization ID (or set UP0_ORG_ID) (env: UP0_ORG_ID)

up0 monitors unbind

Clear a monitor's service binding (sets service_id to null).

Usage: up0 monitors unbind [OPTIONS] MONITOR
NameTypeDefaultDescription
MONITORstringrequiredMonitor id (UUID) or exact name
--jsonbooleanfalseEmit the updated monitor as JSON
--org-idstring-Organization ID (or set UP0_ORG_ID) (env: UP0_ORG_ID)

On this page