Class ConcreteWidget
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloudwatch.ConcreteWidget
- All Implemented Interfaces:
IWidget,software.amazon.jsii.JsiiSerializable
- Direct Known Subclasses:
AlarmStatusWidget,AlarmWidget,CustomWidget,GraphWidget,LogQueryWidget,SingleValueWidget,TextWidget
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:36.854Z")
@Stability(Stable)
public abstract class ConcreteWidget
extends software.amazon.jsii.JsiiObject
implements IWidget
A real CloudWatch widget that has its own fixed size and remembers its position.
This is in contrast to other widgets which exist for layout purposes.
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.cloudwatch.IWidget
IWidget.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConcreteWidget(Number width, Number height) protectedConcreteWidget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedConcreteWidget(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcopyMetricWarnings(@NotNull IMetric... ms) Copy the warnings from the given metric.The amount of vertical grid units the widget will take up.Any warnings that are produced as a result of putting together this widget.getWidth()The amount of horizontal grid units the widget will take up.protected NumbergetX()protected NumbergetY()voidPlace the widget at a given position.protected voidprotected voidtoJson()Return the widget JSON for use in the dashboard.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
ConcreteWidget
protected ConcreteWidget(software.amazon.jsii.JsiiObjectRef objRef) -
ConcreteWidget
protected ConcreteWidget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
ConcreteWidget
- Parameters:
width- This parameter is required.height- This parameter is required.
-
-
Method Details
-
copyMetricWarnings
Copy the warnings from the given metric.- Parameters:
ms- This parameter is required.
-
position
Place the widget at a given position. -
toJson
Return the widget JSON for use in the dashboard. -
getHeight
The amount of vertical grid units the widget will take up. -
getWidth
The amount of horizontal grid units the widget will take up. -
getWarnings
Any warnings that are produced as a result of putting together this widget.- Specified by:
getWarningsin interfaceIWidget
-
getX
-
setX
-
getY
-
setY
-