@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:36:51.274Z") @Stability(value=Stable) public interface GraphWidgetProps extends software.amazon.jsii.JsiiSerializable, MetricWidgetProps
Example:
Dashboard dashboard;
dashboard.addWidgets(GraphWidget.Builder.create()
// ...
.legendPosition(LegendPosition.RIGHT)
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
GraphWidgetProps.Builder
A builder for
GraphWidgetProps |
static class |
GraphWidgetProps.Jsii$Proxy
An implementation for
GraphWidgetProps |
| Modifier and Type | Method and Description |
|---|---|
static GraphWidgetProps.Builder |
builder() |
default List<IMetric> |
getLeft()
Metrics to display on left Y axis.
|
default List<HorizontalAnnotation> |
getLeftAnnotations()
Annotations for the left Y axis.
|
default YAxisProps |
getLeftYAxis()
Left Y axis.
|
default LegendPosition |
getLegendPosition()
Position of the legend.
|
default Boolean |
getLiveData()
Whether the graph should show live data.
|
default Duration |
getPeriod()
The default period for all metrics in this widget.
|
default List<IMetric> |
getRight()
Metrics to display on right Y axis.
|
default List<HorizontalAnnotation> |
getRightAnnotations()
Annotations for the right Y axis.
|
default YAxisProps |
getRightYAxis()
Right Y axis.
|
default Boolean |
getSetPeriodToTimeRange()
Whether to show the value from the entire time range.
|
default Boolean |
getStacked()
Whether the graph should be shown as stacked lines.
|
default String |
getStatistic()
The default statistic to be displayed for each metric.
|
default GraphWidgetView |
getView()
Display this metric.
|
getHeight, getRegion, getTitle, getWidth@Stability(value=Stable) @Nullable default List<IMetric> getLeft()
Default: - No metrics
@Stability(value=Stable) @Nullable default List<HorizontalAnnotation> getLeftAnnotations()
Default: - No annotations
@Stability(value=Stable) @Nullable default YAxisProps getLeftYAxis()
Default: - None
@Stability(value=Stable) @Nullable default LegendPosition getLegendPosition()
Default: - bottom
@Stability(value=Stable) @Nullable default Boolean getLiveData()
Default: false
@Stability(value=Stable) @Nullable default Duration getPeriod()
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)
@Stability(value=Stable) @Nullable default List<IMetric> getRight()
Default: - No metrics
@Stability(value=Stable) @Nullable default List<HorizontalAnnotation> getRightAnnotations()
Default: - No annotations
@Stability(value=Stable) @Nullable default YAxisProps getRightYAxis()
Default: - None
@Stability(value=Stable) @Nullable default Boolean getSetPeriodToTimeRange()
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
@Stability(value=Stable) @Nullable default Boolean getStacked()
Default: false
@Stability(value=Stable) @Nullable default String getStatistic()
This default can be overridden within the definition of each individual metric
Default: - The statistic for each metric is used
@Stability(value=Stable) @Nullable default GraphWidgetView getView()
Default: TimeSeries
@Stability(value=Stable) static GraphWidgetProps.Builder builder()
builder in interface MetricWidgetPropsGraphWidgetProps.Builder of GraphWidgetPropsCopyright © 2023. All rights reserved.