check doctor Command
pakyas check doctor asks the server to analyze a check’s configuration and recent activity, and prints the findings with severity levels and suggested actions.
pakyas check doctor <CHECK> [FLAGS]Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
CHECK | Check slug, check ID, or public ID |
| Flag | Description |
|---|---|
--deep | Deeper analysis (slower) |
--fail-on <SEVERITY> | Exit with code 1 if any finding is at or above this severity: error (default), warning, or info |
With the global --format json, the report is printed as JSON. Any other format prints the human report.
Exit Codes
Section titled “Exit Codes”| Code | Meaning |
|---|---|
| 0 | No findings at or above the --fail-on threshold |
| 1 | Findings at or above the threshold, or the command failed (for example, check not found) |
| 2 | Invalid arguments |
With --format json, the report is printed before the command exits 1, so you can inspect .findings to tell findings apart from errors.
What It Shows
Section titled “What It Shows”- Overall status:
healthy,attention_needed, orcritical - Findings: issues with a severity (
error,warning,info) - Evidence: details supporting each finding
- Next actions: what to do about each finding
| Status | Meaning |
|---|---|
healthy | No issues detected |
attention_needed | Warnings that should be addressed |
critical | Errors that need attention now |
Human output looks like this:
DOCTOR 1b4e28ba "Nightly Backup"Result: ! Attention needed
DIAGNOSIS 1) ! <finding title> <description> Evidence: - <key>: <value> Next actions: - <suggested action>Examples
Section titled “Examples”# Basic diagnosticpakyas check doctor backup-nightly
# Deeper analysispakyas check doctor backup-nightly --deep
# Fail a CI job on warnings or errorspakyas check doctor backup-nightly --fail-on warning
# Only errors, as JSONpakyas check doctor backup-nightly --format json \ | jq '.findings[] | select(.severity == "error")'The JSON report has check_id, check_name, analyzed_at, deep, status, summary, and findings; each finding has code, severity, title, description, details, and suggested_actions.
See Also
Section titled “See Also”- check inspect - Current state and configuration
- check tail - Timeline events
- check - Other check commands