-
Notifications
You must be signed in to change notification settings - Fork 1
Improve NRQL query UX and error messages #51
Copy link
Copy link
Closed
Description
Problem
The NRQL interface has confusing command structure and could have better error messages.
Issues Encountered
1. Nested command structure is non-obvious:
# This doesn't work:
$ newrelic-cli nrql "SELECT * FROM Log..."
# Must use:
$ newrelic-cli nrql query "SELECT * FROM Log..."2. Time range flags vs NRQL syntax confusion:
# Tried (doesn't work):
$ newrelic-cli nrql query "SELECT..." --since 7d
# Must embed in query:
$ newrelic-cli nrql query "SELECT... SINCE 7 days ago"Proposed Enhancements
- Accept query as direct argument to
nrqlsubcommand (shortcut for common case) - Add
--sinceand--untilflags that inject into the NRQL query automatically - Better error messages when command structure is wrong: "Did you mean 'nrql query'?"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels