Class GraphWidget
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloudwatch.ConcreteWidget
software.amazon.awscdk.services.cloudwatch.GraphWidget
- All Implemented Interfaces:
IWidget
,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-10-31T19:12:54.622Z")
@Stability(Stable)
public class GraphWidget
extends ConcreteWidget
A dashboard widget that displays metrics.
Example:
Dashboard dashboard; dashboard.addWidgets(GraphWidget.Builder.create() // ... .legendPosition(LegendPosition.RIGHT) .build());
-
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
ModifierConstructorDescriptionGraphWidget
(GraphWidgetProps props) protected
GraphWidget
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
GraphWidget
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLeftMetric
(IMetric metric) Add another metric to the left Y axis of the GraphWidget.void
addRightMetric
(IMetric metric) Add another metric to the right Y axis of the GraphWidget.toJson()
Return the widget JSON for use in the dashboard.Methods inherited from class software.amazon.awscdk.services.cloudwatch.ConcreteWidget
copyMetricWarnings, getHeight, getWarnings, getWarningsV2, getWidth, getX, getY, position, setX, setY
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
-
GraphWidget
protected GraphWidget(software.amazon.jsii.JsiiObjectRef objRef) -
GraphWidget
protected GraphWidget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
GraphWidget
- Parameters:
props
- This parameter is required.
-
-
Method Details
-
addLeftMetric
Add another metric to the left Y axis of the GraphWidget.- Parameters:
metric
- the metric to add. This parameter is required.
-
addRightMetric
Add another metric to the right Y axis of the GraphWidget.- Parameters:
metric
- the metric to add. This parameter is required.
-
toJson
Return the widget JSON for use in the dashboard.- Specified by:
toJson
in interfaceIWidget
- Specified by:
toJson
in classConcreteWidget
-