question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(cloudwatch): Row class to use list of widgets

See original GitHub issue

Description

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:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
TomaszSzusterTRcommented, Jan 24, 2022

@flavioleggio the addWidget() will also be sufficient 😃

0reactions
github-actions[bot]commented, Jun 14, 2022

⚠️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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found