Files
git.stella-ops.org/docs/features/unchecked/cli/cli-notification-simulation-and-acknowledgment.md

32 lines
1.7 KiB
Markdown

# CLI Notification Simulation and Acknowledgment
## Module
Cli
## Status
IMPLEMENTED
## Description
CLI commands for simulating notification rules against events (`stella notify simulate`) and acknowledging incidents (`stella notify ack`) with tenant-scoped operation support.
## Implementation Details
- **Command Group**: `src/Cli/StellaOps.Cli/Commands/NotifyCommandGroup.cs` -- `NotifyCommandGroup` for notification commands
- **Notify Client**: `src/Cli/StellaOps.Cli/Services/NotifyClient.cs` / `INotifyClient.cs` -- notification API client
- **Route consolidation**: Notify commands consolidated under `stella config notify` via cli-routes.json
- **Commands**:
- `stella config notify simulate <event-type>` -- simulate notification rules against an event
- `stella config notify ack <incident-id>` -- acknowledge an incident notification
- `stella config notify channels list` -- list notification channels
- `stella config notify channels test <channel>` -- test a notification channel
- `stella config notify templates list` -- list notification templates
- **Tenant scoping**: Operations support `--tenant` flag for multi-tenant environments
## E2E Test Plan
- [ ] Run `stella config notify simulate gate-failure` and verify notification rules evaluated
- [ ] Run `stella config notify ack <incident-id>` and verify acknowledgment recorded
- [ ] Run `stella config notify channels list` and verify channels displayed
- [ ] Run `stella config notify channels test slack` and verify connectivity test
- [ ] Run `stella config notify templates list` and verify templates listed
- [ ] Verify tenant scoping with `--tenant <id>` flag
- [ ] Verify deprecated `stella notify simulate` still works with warning