Skip to content
  • LocationSan Pedro, Laguna, Philippines
  • Office hoursMon–Fri, 8:00 AM – 5:00 PM PHT (UTC+8)

For developers

Sysgage Uptime MonitorVersion 1.0.1Updated November 27, 2026

WP-CLI

CommandWhat it does
wp uptime list [--format=table|json|csv]Every monitor with status, response time, 30-day uptime and last check
wp uptime run [--all]Run due checks, or every check with --all
wp uptime check <id>Check one monitor now
wp uptime add <url> [--name=] [--interval=<seconds>] [--keyword=]Add a website monitor, or a keyword monitor with --keyword
wp uptime pause <id> / wp uptime resume <id>Pause or resume a monitor
wp uptime report [--period=day|week|month] [--to=<emails>]Email a summary for yesterday, the last 7 days or last month

REST API

Namespace sysgage-uptime/v1. Public routes are protected by a secret token or key, or are off until you switch them on. Admin routes need the plugin capability and a REST nonce.

RouteAccessPurpose
GET|POST /heartbeat/<token>Secret tokenRecord a heartbeat ping
GET|POST /heartbeat/<token>/failSecret tokenRecord a failure, with an optional message
GET|POST /run?key=<key>Secret keyRun due checks (external cron)
GET /statusPublic, when enabledJSON status feed
GET /badge/<id>Public, when enabledSVG uptime badge
GET /series, /liveAdminChart data and live statuses
POST /monitors/<id>/check, /monitors/<id>/pause, /monitors/reorder, /run-allAdminCheck, pause or resume, reorder, check all
POST /test, /notify-test/<channel>AdminTest a monitor configuration or an alert channel

Webhook payload

The webhook channel posts JSON like this. With a secret set, the X-Sysgage-Signature header holds sha256= followed by the HMAC-SHA256 of the raw body.

{
  "event": "down",
  "title": "Shop checkout is DOWN",
  "message": "...",
  "url": "https://your-site.com/wp-admin/admin.php?page=sgu-monitors&action=view&id=3",
  "site": "https://your-site.com/",
  "timestamp": 1795666307,
  "monitor": {
    "id": 3, "name": "Shop checkout", "type": "keyword",
    "target": "https://your-site.com/checkout", "status": "down",
    "last_response_ms": 0, "last_code": 503
  },
  "facts": { "Reason": "HTTP 503 Service Unavailable" }
}

event is one of down, up, degraded, ssl, reminder, test.

Hooks

HookTypeArgumentsUse
sgu_capabilityFilter$capCapability for all screens and admin routes. Default manage_options.
sgu_http_argsFilter$args, $monitorChange the request arguments of a check.
sgu_check_resultFilter$result, $monitorInspect or change a result before it is stored.
sgu_retry_delayFilter$seconds, $monitorPause between retries. Default 2.
sgu_run_time_budgetFilter$secondsTime budget per run. Default 50.
sgu_should_alertFilter$send, $event, $monitor, $contextReturn false to suppress an alert.
sgu_send_channelFilter$sent, $channel, $message, $monitorDeliver alerts through a custom channel.
sgu_incident_openedAction$incident, $monitorAn outage starts.
sgu_incident_resolvedAction$incidentAn incident ends.
sgu_alert_sentAction$event, $monitor, $context, $resultsAlerts were sent.
sgu_monitor_savedAction$id, $is_newA monitor is created or updated.
sgu_monitor_deletedAction$idA monitor is deleted.

Example: let editors use the plugin.

add_filter( 'sgu_capability', function () {
    return 'edit_others_posts';
} );