Class TableWidget

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloudwatch.ConcreteWidget
software.amazon.awscdk.services.cloudwatch.TableWidget
All Implemented Interfaces:
IWidget, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-17T21:37:27.895Z") @Stability(Stable) public class TableWidget extends ConcreteWidget
A dashboard widget that displays metrics.

Example:

 Dashboard dashboard;
 dashboard.addWidgets(TableWidget.Builder.create()
         // ...
         .layout(TableLayout.VERTICAL)
         .build());
 
  • Constructor Details

    • TableWidget

      protected TableWidget(software.amazon.jsii.JsiiObjectRef objRef)
    • TableWidget

      protected TableWidget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • TableWidget

      @Stability(Stable) public TableWidget(@NotNull TableWidgetProps props)
      Parameters:
      props - This parameter is required.
  • Method Details

    • addMetric

      @Stability(Stable) public void addMetric(@NotNull IMetric metric)
      Add another metric.

      Parameters:
      metric - the metric to add. This parameter is required.
    • toJson

      @Stability(Stable) @NotNull public List<Object> toJson()
      Return the widget JSON for use in the dashboard.
      Specified by:
      toJson in interface IWidget
      Specified by:
      toJson in class ConcreteWidget