happy monitors

bash
happy monitors list # all monitorshappy monitors get <id-or-name> # detail viewhappy monitors create [flags] # create monitorhappy monitors update <id-or-name> [flags] # update monitorhappy monitors pause <id-or-name> # pause checkshappy monitors resume <id-or-name> # un-pausehappy monitors delete <id-or-name> # delete + check historyhappy monitors check <id-or-name> # run an ad-hoc check now

list

bash
happy monitors listhappy monitors list --status down # filter by statushappy monitors list --json # machine-readable

Output: name, status, region count, last-checked timestamp, URL.

create

bash
happy monitors create \ --name "Acme API" \ --url https://api.acme.com/health \ --type http \ --interval 60 \ --regions us-east,us-west,eu-west \ --expected-status 200,201
FlagDefault
--name(required)
--url(required for http/tcp/dns/keyword)
--typehttp
--interval60 (seconds)
--regionsus-east
--methodGET
--timeout30 (seconds)
--expected-statusnone (any 2xx)
--keyword(only for --type keyword)
--keyword-typecontains
--heartbeat-url(only for --type heartbeat)
--ssl-checkoff
--domain-checkoff

get

bash
happy monitors get acme-api

Returns the full monitor row + the last 10 check results + uptime % over the past 24h.

update

bash
happy monitors update acme-api --interval 30 --regions us-east,us-west,eu-west,ap-southeast

pause / resume

bash
happy monitors pause acme-apihappy monitors resume acme-api

delete

bash
happy monitors delete acme-api

Asks for confirmation. Use --yes to skip.

check (ad-hoc)

bash
happy monitors check acme-api

Runs the configured probe right now from the configured region(s) without scheduling a recurring check. Useful for verifying a deploy.

Ask a question... ⌘I