@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:36:51.205Z") @Stability(value=Stable) public interface AlarmStatusWidgetProps extends software.amazon.jsii.JsiiSerializable
Example:
Dashboard dashboard;
Alarm errorAlarm;
dashboard.addWidgets(
AlarmStatusWidget.Builder.create()
.alarms(List.of(errorAlarm))
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
AlarmStatusWidgetProps.Builder
A builder for
AlarmStatusWidgetProps |
static class |
AlarmStatusWidgetProps.Jsii$Proxy
An implementation for
AlarmStatusWidgetProps |
| Modifier and Type | Method and Description |
|---|---|
static AlarmStatusWidgetProps.Builder |
builder() |
List<IAlarm> |
getAlarms()
CloudWatch Alarms to show in widget.
|
default Number |
getHeight()
Height of the widget.
|
default AlarmStatusWidgetSortBy |
getSortBy()
Specifies how to sort the alarms in the widget.
|
default List<AlarmState> |
getStates()
Use this field to filter the list of alarms displayed in the widget to only those alarms currently in the specified states.
|
default String |
getTitle()
The title of the widget.
|
default Number |
getWidth()
Width of the widget, in a grid of 24 units wide.
|
@Stability(value=Stable) @NotNull List<IAlarm> getAlarms()
@Stability(value=Stable) @Nullable default Number getHeight()
Default: 3
@Stability(value=Stable) @Nullable default AlarmStatusWidgetSortBy getSortBy()
Default: - alphabetical order
@Stability(value=Stable) @Nullable default List<AlarmState> getStates()
You can specify one or more alarm states in the value for this field. The alarm states that you can specify are ALARM, INSUFFICIENT_DATA, and OK.
If you omit this field or specify an empty array, all the alarms specifed in alarms are displayed.
Default: - all the alarms specified in alarms are displayed.
@Stability(value=Stable) @Nullable default String getTitle()
Default: 'Alarm Status'
@Stability(value=Stable) @Nullable default Number getWidth()
Default: 6
@Stability(value=Stable) static AlarmStatusWidgetProps.Builder builder()
AlarmStatusWidgetProps.Builder of AlarmStatusWidgetPropsCopyright © 2023. All rights reserved.