Skip to content

feat: Add missing CRUD operations for dashboards, synthetics, and alerts #58

@piekstra

Description

@piekstra

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:

  1. Confirmation prompt by default (like logs rules delete)

    Delete dashboard "My Dashboard" (GUID: abc123)? [y/N]:
    
  2. --force flag to skip prompt for automation

    dashboards delete <guid> --force
  3. Consider --dry-run flag to preview without deleting

    dashboards delete <guid> --dry-run
    # Would delete: My Dashboard (GUID: abc123)
  4. Type-to-confirm for extra safety (optional, using existing ConfirmDanger)

    Delete dashboard "My Dashboard"? Type 'DELETE' to confirm:
    

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions