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
,GaugeWidget
,GraphWidget
,LogQueryWidget
,SingleValueWidget
,TableWidget
,TextWidget
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-11T23:26:30.238Z")
@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.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.cloudwatch.IWidget
IWidget.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
ConcreteWidget
(Number width, Number height) protected
ConcreteWidget
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
ConcreteWidget
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
copyMetricWarnings
(@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.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 Number
getX()
protected Number
getY()
void
Place the widget at a given position.protected void
protected void
toJson()
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, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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
- The amount of horizontal grid units the widget will take up. This parameter is required.height
- The amount of vertical grid units the widget will take up. 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:
getWarnings
in interfaceIWidget
-
getWarningsV2
Any warnings that are produced as a result of putting together this widget.- Specified by:
getWarningsV2
in interfaceIWidget
-
getX
-
setX
-
getY
-
setY
-