watchdog
Evaluate message age, repeated reachability failures and pending send echoes.
alicli watchdog --json
alicli watchdog --suspect-after-hours 24 --echo-within-minutes 15 --json| Field or option | Meaning |
|---|---|
exit 0 / ok | No configured alarm condition fired. This is not proof of complete source capture. |
exit 1 / suspect | The observation needs attention but does not meet the hard-alarm condition. |
exit 2 / hard | A configured hard condition fired, including an overdue own-send echo. |
changed | Whether the level changed since the previous stored verdict. Use it to avoid repeating the same notification. |
Interpretation
The silence threshold counts Monday through Friday using the process’s local calendar; it is not a Chinese holiday calendar or an office-hours schedule. A silent feed with an unchanged cursor can escalate. Repeated failed reachability probes escalate after two hours of data age; recent stored data leaves them suspect.
Own-send echoes are checked first and can override fresh traffic. A missing echo means the outcome needs investigation, especially when the original attempt was unconfirmed. It does not justify an automatic resend. The command stores its previous level and cursor in the local database; it does not install a scheduler or send notifications itself.