-
-
Notifications
You must be signed in to change notification settings - Fork 205
Alerts and Webhook Recipes
Alerts turn observed conditions into reviewable events. Webhooks deliver those alerts to another system. Build them in that order: signal first, routing second.
CCAM supports event-pattern, inactivity, status-duration, and token-threshold rules. Choose the rule that expresses the operational question directly.
| Goal | Rule shape | Common pitfall |
|---|---|---|
| Detect a known failure signature | Event pattern | Pattern too broad and noisy |
| Find silent active work | Inactivity | Threshold shorter than normal long tools |
| Escalate a prolonged state | Status duration | Treating ordinary waiting as failure |
| Warn on unusually large usage | Token threshold | Ignoring model/project scope |
- Observe normal behavior over a representative period.
- Create one disabled or narrowly scoped rule.
- Review historical matches if available.
- Enable and watch its cooldown behavior.
- Add a webhook target and send a synthetic test.
- Confirm the delivered payload points to actionable context.
Useful commands:
npx ccam rules
npx ccam alerts --unacked
npx ccam alert-rules create --help
npx ccam webhooks providers
npx ccam webhooks test <webhook-id>
npx ccam webhooks deliveries <webhook-id>Writes require explicit confirmation. Supply rule or webhook configuration from a permission-restricted file rather than a shell argument when it includes secrets.
- Give every target an owner and purpose.
- Scope targets to relevant rules when possible.
- Use provider-native signing/secrets if supported.
- Never expect CCAM to return stored webhook secrets.
- Review delivery history before retrying manually.
- Rate-limit downstream automation and make it idempotent.
Start with a sustained ingestion/remote-source symptom and one high-but-realistic usage threshold. Avoid starting with dozens of event patterns. A small alert set with clear response instructions is more valuable than exhaustive noise.
Recipe: Send Alerts to Your Team.
Start Here · Localized product Wiki · Repository · Releases · Security · Report an issue
Guidance tracks the current master branch. For a deployed release, consult the repository documentation at that release tag before changing configuration.
CCAM Handbook
Use CCAM
- Read the dashboard
- Sessions and agents
- Kanban and tasks
- Tokens and costs
- Run agents
- Personal settings
Operate CCAM
- Deployment guide
- Hook health
- Security
- Backups and retention
- Prometheus and Grafana
- Remote machines
- Upgrades and rollback
- Incident runbooks
Automate and extend
- CLI patterns
- MCP workflows
- Alerts and webhooks
- Dynamic workflows
- Skills and plugins
- Safe config explorer
- Integration patterns
Help