aws / aws/aws-cdk

(cloudwatch): allow period override on LogQueryWidget

Open
#32,132 2 comments 0 reactions 0 assignees View on GitHub
@aws-cdk/aws-cloudwatch effort/small feature-request p2
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

### Describe the feature

Allow overriding the default period on a LogQueryWidget.

This is possible on `GraphWidget` but not on `LogQueryWidget`. (there are in fact quite a few props other that don't exist on `LogQueryWidget`).

### Use Case

I want to run a Logs Insights query over a large time period, ignoring whatever the global setting is in the dashboard.

### Proposed Solution

Extend `LogQueryWidget` with those of `GraphWidget`.

### Other Information

_No response_

### Acknowledgements

- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

### CDK version used

2.166.0

### Environment details (OS name and version, etc.)

MacOS

Contributor guide

Open the contributing guide

Research direction

Start by locating the TypeScript definitions and tests for LogQueryWidget and GraphWidget in the AWS CDK CloudWatch module. Compare the widget properties, identify the period handling and its test coverage, then verify that a LogQueryWidget can override the dashboard's global period without changing existing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
cloud, observability-sre
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.