Class SingleValueWidget

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

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:36.903Z") @Stability(Stable) public class SingleValueWidget extends ConcreteWidget
A dashboard widget that displays the most recent value for every metric.

Example:

 Dashboard dashboard;
 Metric visitorCount;
 Metric purchaseCount;
 dashboard.addWidgets(SingleValueWidget.Builder.create()
         .metrics(List.of(visitorCount, purchaseCount))
         .build());
 
  • Constructor Details

    • SingleValueWidget

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

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

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