feat: add CRUD operations for dashboards and synthetics#61
Merged
Conversation
9 tasks
rianjs
approved these changes
Jan 23, 2026
Add delete operations with safety features: - `dashboards delete <guid>` - Delete a dashboard - `synthetics delete <id>` - Delete a synthetic monitor Safety features: - Confirmation prompt by default (shows resource name) - --force flag to skip confirmation for automation - Fetches resource first to display name in confirmation [#58]
[#58] Add JSON file-based create and update operations: - dashboards create --from-file - dashboards update <guid> --from-file - synthetics create --from-file - synthetics update <monitor-id> --from-file The --from-file flag accepts a JSON file containing the resource definition. This enables AI agents and scripts to manage these resources programmatically.
57cf431 to
54c6dea
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[#58]
Add full CRUD operations for dashboards and synthetics.
New Commands
Dashboards
Synthetics
JSON File Examples
Dashboard JSON
{ "name": "My Dashboard", "description": "Optional description", "permissions": "PUBLIC_READ_WRITE", "pages": [ { "name": "Page 1", "widgets": [ { "title": "Transaction Count", "visualization": {"id": "viz.line"}, "layout": {"column": 1, "row": 1, "width": 4, "height": 3}, "rawConfiguration": { "nrqlQueries": [{"accountId": 123, "query": "SELECT count(*) FROM Transaction"}] } } ] } ] }Synthetic Monitor JSON
{ "name": "Homepage Check", "type": "SIMPLE", "frequency": 10, "status": "ENABLED", "uri": "https://example.com", "locations": ["AWS_US_EAST_1", "AWS_US_WEST_1"] }Safety Features (Delete Commands)
Both delete commands include:
--forceflag - Skip confirmation for automationTest Plan
make buildmake testdashboards create --helpshows JSON structure and examplesdashboards update --helpshows usagedashboards delete --helpshows usagesynthetics create --helpshows JSON structure, monitor types, and locationssynthetics update --helpshows usagesynthetics delete --helpshows usageCloses #58