Skip to content

Add scout anomalies command#16

Open
quinnmil wants to merge 3 commits into
mainfrom
15-anomalies-command
Open

Add scout anomalies command#16
quinnmil wants to merge 3 commits into
mainfrom
15-anomalies-command

Conversation

@quinnmil
Copy link
Copy Markdown
Contributor

Summary

  • New scout anomalies command lists anomaly events with --state, --metric, --endpoint filters
  • scout anomalies show <id> shows detail with joined smart_monitor and deploy context
  • Supports --json / --toon structured output

Companion PRs:

Closes #15

Test plan

  • go test ./...
  • scout anomalies --app <id> against a Scout app with anomaly events
  • scout anomalies show <event-id> --app <id>
  • scout anomalies --app <id> --json
  • scout anomalies --app <id> --state open
  • scout anomalies --app <id> --metric response_time

🤖 Generated with Claude Code

quinnmil and others added 2 commits May 21, 2026 11:56
- `scout anomalies` lists anomaly events with state/metric/endpoint filters
- `scout anomalies show <id>` shows detail including joined smart_monitor and deploy

Closes #15

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Extract anomalyState helper to dedupe open/closed string conversion.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@quinnmil quinnmil linked an issue May 21, 2026 that may be closed by this pull request
Mirrors the new fields exposed by the apm API (scoutapp/apm#5505).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add scout anomalies command

1 participant