Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(query): Provide a default query if not specified (#188)
**Old Behavior** If the query parameter was not provided - the `[0]` arg - then an error would be returned ``` No query provided ``` **New Behavior** This merge request defaults the query to ``` fields @timestamp, @message, @logstream, @log | sort @timestamp desc ``` (if not provided). **Testing** Screenshot of the output from a manual test ``` No Cloudwatch Insight Query provided. Defaulting to: fields @timestamp, @message, @logstream, @log | sort @timestamp desc Querying between 2023-10-06T20:43:15.096Z and 2023-10-06T21:43:15.096Z for 1 log group(s): ["/aws/lambda/CoreAPI-processesTaskGeneratePatientExport"] 0 records (0.00 MB) scanned, 0 matched No results returned. ``` --------- Co-authored-by: Kellen Stuart <[email protected]>
- Loading branch information