Class AlarmStatusWidget

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

@Generated(value="jsii-pacmak/1.99.0 (build 8f757e4)", date="2024-06-13T18:49:15.794Z") @Stability(Stable) public class AlarmStatusWidget extends ConcreteWidget
A dashboard widget that displays alarms in a grid view.

Example:

 Dashboard dashboard;
 Alarm errorAlarm;
 dashboard.addWidgets(
 AlarmStatusWidget.Builder.create()
         .alarms(List.of(errorAlarm))
         .build());
 
  • Constructor Details

    • AlarmStatusWidget

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

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

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

    • position

      @Stability(Stable) public void position(@NotNull Number x, @NotNull Number y)
      Place the widget at a given position.

      Specified by:
      position in interface IWidget
      Overrides:
      position in class ConcreteWidget
      Parameters:
      x - This parameter is required.
      y - 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