(cloudwatch): Row class to use list of widgets
See original GitHub issueDescription
Can class Row accepts list of widgets or maybe implement a method for adding new widgets?
Now we need to explicitly write all widgets when defining a new row as below:
cloudwatch.Row(widget1, widget2, widgetN)
Use Case
To generate widgets in a loop and add them in batch in a programmatic way.
Proposed Solution
Thus there is no option to add a generated list of widgets or add widgets in a loop
cloudwatch.Row(widget_list=[])
cloudwatch.Row().add_widget(widget)
Other information
No response
Acknowledge
- I may be able to implement this feature request
- This feature might incur a breaking change
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:5 (2 by maintainers)
Top Results From Across the Web
class Row · AWS CDK
List of contained widgets. width. Type: number. The amount of horizontal grid units the widget will take up.
Read more >Dashboard Body Structure and Syntax - Amazon CloudWatch
A DashboardBody is a string in JSON format. It can include an array of between 0 and 500 widget objects, as well as...
Read more >Add dashboard widgets - Monitoring - Google Cloud
This document describes how to add widgets to a custom dashboard by using ... The Top List widget displays both the value and...
Read more >Simple List widget - Product Documentation | ServiceNow
The Simple List widget can be used to display any list in the system within Service Portal. You can use this base system...
Read more >How to add a graph widget with an alarm annotation to ...
I need to add some widgets to our Cloudwatch dashboard. My code is like this: MetricAlarm class import { Alarm, DimensionHash, Metric, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@flavioleggio the addWidget() will also be sufficient 😃
⚠️COMMENT VISIBILITY WARNING⚠️
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.