Interface GraphWidgetProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,MetricWidgetProps
- All Known Implementing Classes:
GraphWidgetProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:36.862Z")
@Stability(Stable)
public interface GraphWidgetProps
extends software.amazon.jsii.JsiiSerializable, MetricWidgetProps
Properties for a GraphWidget.
Example:
Dashboard dashboard;
dashboard.addWidgets(GraphWidget.Builder.create()
// ...
.legendPosition(LegendPosition.RIGHT)
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forGraphWidgetPropsstatic final classAn implementation forGraphWidgetProps -
Method Summary
Modifier and TypeMethodDescriptionstatic GraphWidgetProps.Builderbuilder()getLeft()Metrics to display on left Y axis.default List<HorizontalAnnotation>Annotations for the left Y axis.default YAxisPropsLeft Y axis.default LegendPositionPosition of the legend.default BooleanWhether the graph should show live data.default DurationThe default period for all metrics in this widget.getRight()Metrics to display on right Y axis.default List<HorizontalAnnotation>Annotations for the right Y axis.default YAxisPropsRight Y axis.default BooleanWhether to show the value from the entire time range.default BooleanWhether the graph should be shown as stacked lines.default StringThe default statistic to be displayed for each metric.default GraphWidgetViewgetView()Display this metric.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.cloudwatch.MetricWidgetProps
getHeight, getRegion, getTitle, getWidth
-
Method Details
-
getLeft
Metrics to display on left Y axis.Default: - No metrics
-
getLeftAnnotations
Annotations for the left Y axis.Default: - No annotations
-
getLeftYAxis
Left Y axis.Default: - None
-
getLegendPosition
Position of the legend.Default: - bottom
-
getLiveData
Whether the graph should show live data.Default: false
-
getPeriod
The default period for all metrics in this widget.The period is the length of time represented by one data point on the graph. This default can be overridden within each metric definition.
Default: cdk.Duration.seconds(300)
-
getRight
Metrics to display on right Y axis.Default: - No metrics
-
getRightAnnotations
Annotations for the right Y axis.Default: - No annotations
-
getRightYAxis
Right Y axis.Default: - None
-
getSetPeriodToTimeRange
Whether to show the value from the entire time range. Only applicable for Bar and Pie charts.If false, values will be from the most recent period of your chosen time range; if true, shows the value from the entire time range.
Default: false
-
getStacked
Whether the graph should be shown as stacked lines.Default: false
-
getStatistic
The default statistic to be displayed for each metric.This default can be overridden within the definition of each individual metric
Default: - The statistic for each metric is used
-
getView
Display this metric.Default: TimeSeries
-
builder
- Returns:
- a
GraphWidgetProps.BuilderofGraphWidgetProps
-