Hawk-i Docs
Documentation/OPERATIONS

Monitoring

Hawk-i can watch a repository or a deployed contract and rescan automatically when something changes.

$ hawki monitor ./my-project --interval 300 --alert-log alerts.txt

Options:

  • -c, --config <file> - JSON configuration file for watchers.
  • --state-dir <dir> - Directory for watcher state (default: ~/.hawki/monitor_state).
  • --alert-log <file> - File to append alerts to.
  • --interval <sec> - Polling interval in seconds (default: 60).
  • --branch <name> - Git branch to monitor (default: main).
  • --contract-address <addr> - Deployed contract address to monitor.
  • --rpc-url <url> - RPC URL for contract monitoring.

Watchers are pluggable: drop a subclass of Watcher into monitoring/watchers/ and it is discovered automatically.