-
Notifications
You must be signed in to change notification settings - Fork 1
feat: Add missing CRUD operations for dashboards, synthetics, and alerts #58
Copy link
Copy link
Closed
Description
Summary
Several resources are missing create, update, and delete operations. This issue tracks adding complete CRUD support.
Current State
| Resource | List | Get | Create | Update | Delete |
|---|---|---|---|---|---|
| apps | ✅ | ✅ | N/A | N/A | N/A |
| alerts policies | ✅ | ✅ | ❌ | ❌ | ❌ |
| dashboards | ✅ | ✅ | ❌ | ❌ | ❌ |
| deployments | ✅ | N/A | ✅ | N/A | N/A |
| synthetics | ✅ | ✅ | ❌ | ❌ | ❌ |
| users | ✅ | ✅ | N/A | N/A | N/A |
| logs rules | ✅ | N/A | ✅ | ✅ | ✅ |
Notes:
- apps: Created by instrumentation, not via CLI
- users: Typically managed via admin UI
- deployments: Event markers, not updateable resources
Missing Operations to Add
1. Dashboards
-
dashboards create- Create from JSON definition -
dashboards update- Update existing dashboard -
dashboards delete- Delete dashboard
2. Synthetics
-
synthetics create- Create synthetic monitor -
synthetics update- Update monitor settings -
synthetics delete- Delete monitor
3. Alert Policies
-
alerts policies create- Create alert policy -
alerts policies update- Update policy settings -
alerts policies delete- Delete policy
Safety Features for Delete Commands
All delete commands should include:
-
Confirmation prompt by default (like
logs rules delete)Delete dashboard "My Dashboard" (GUID: abc123)? [y/N]: -
--forceflag to skip prompt for automationdashboards delete <guid> --force
-
Consider
--dry-runflag to preview without deletingdashboards delete <guid> --dry-run # Would delete: My Dashboard (GUID: abc123)
-
Type-to-confirm for extra safety (optional, using existing
ConfirmDanger)Delete dashboard "My Dashboard"? Type 'DELETE' to confirm:
Related
- Partially addresses feat: Add --limit and --force flags for shell scripting composability #17 (which mentioned --force flag for delete commands that don't exist yet)
- Follows patterns from
logs rules deleteimplementation
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels