Skip to content

check inspect Command

The check inspect command displays comprehensive state and configuration information for a check. Use this command to debug check behavior, understand current state, and view detailed configuration.

Terminal window
pakyas check inspect <SLUG> [FLAGS]
ArgumentDescription
SLUGCheck slug or ID (required)
FlagDescription
--format <FORMAT>Output format: human (default), json

The inspect command displays information organized into sections:

SectionInformation
CHECKID, name, ping URL
STATECurrent status, since when, critical flag
SCHEDULEKind (cron/interval), expression/period, timezone, grace period
LAST SIGNALType, timestamp, duration, source IP
ALERTINGEnabled, thresholds, consecutive counts, recipient count
MAINTENANCEActive status, reason, end time
STATS (24h)Success rate, ping count, P95 latency
Terminal window
pakyas check inspect my-backup
# Output:
# CHECK
# ID: chk_abc123def456
# Name: my-backup
# Ping URL: https://ping.pakyas.io/chk_abc123def456
#
# STATE
# Status: healthy
# Since: 2024-01-20 15:30:00 UTC (2 hours ago)
# Critical: no
#
# SCHEDULE
# Kind: cron
# Expression: 0 2 * * *
# Timezone: America/New_York
# Grace Period: 10m
#
# LAST SIGNAL
# Type: run_finished
# At: 2024-01-20 15:29:58 UTC
# Duration: 45s
# Source IP: 192.168.1.100
#
# ALERTING
# Enabled: yes
# Thresholds: 2 consecutive misses
# Recipients: 3
#
# MAINTENANCE
# Active: no
#
# STATS (24h)
# Success Rate: 100%
# Ping Count: 24
# P95 Latency: 52ms
Terminal window
# Get check state as JSON for parsing
pakyas check inspect my-backup --format json
# Extract specific field with jq
pakyas check inspect my-backup --format json | jq '.state.status'