@Stability(value=Stable) public static final class GraphWidgetProps.Builder extends Object implements software.amazon.jsii.Builder<GraphWidgetProps>
GraphWidgetProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public GraphWidgetProps.Builder left(List<? extends IMetric> left)
GraphWidgetProps.getLeft()left - Metrics to display on left Y axis.this@Stability(value=Stable) public GraphWidgetProps.Builder leftAnnotations(List<? extends HorizontalAnnotation> leftAnnotations)
GraphWidgetProps.getLeftAnnotations()leftAnnotations - Annotations for the left Y axis.this@Stability(value=Stable) public GraphWidgetProps.Builder leftYAxis(YAxisProps leftYAxis)
GraphWidgetProps.getLeftYAxis()leftYAxis - Left Y axis.this@Stability(value=Stable) public GraphWidgetProps.Builder legendPosition(LegendPosition legendPosition)
GraphWidgetProps.getLegendPosition()legendPosition - Position of the legend.this@Stability(value=Stable) public GraphWidgetProps.Builder liveData(Boolean liveData)
GraphWidgetProps.getLiveData()liveData - Whether the graph should show live data.this@Stability(value=Stable) public GraphWidgetProps.Builder period(Duration period)
GraphWidgetProps.getPeriod()period - 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.this@Stability(value=Stable) public GraphWidgetProps.Builder right(List<? extends IMetric> right)
GraphWidgetProps.getRight()right - Metrics to display on right Y axis.this@Stability(value=Stable) public GraphWidgetProps.Builder rightAnnotations(List<? extends HorizontalAnnotation> rightAnnotations)
GraphWidgetProps.getRightAnnotations()rightAnnotations - Annotations for the right Y axis.this@Stability(value=Stable) public GraphWidgetProps.Builder rightYAxis(YAxisProps rightYAxis)
GraphWidgetProps.getRightYAxis()rightYAxis - Right Y axis.this@Stability(value=Stable) public GraphWidgetProps.Builder setPeriodToTimeRange(Boolean setPeriodToTimeRange)
GraphWidgetProps.getSetPeriodToTimeRange()setPeriodToTimeRange - 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.this@Stability(value=Stable) public GraphWidgetProps.Builder stacked(Boolean stacked)
GraphWidgetProps.getStacked()stacked - Whether the graph should be shown as stacked lines.this@Stability(value=Stable) public GraphWidgetProps.Builder statistic(String statistic)
GraphWidgetProps.getStatistic()statistic - The default statistic to be displayed for each metric.
This default can be overridden within the definition of each individual metricthis@Stability(value=Stable) public GraphWidgetProps.Builder view(GraphWidgetView view)
GraphWidgetProps.getView()view - Display this metric.this@Stability(value=Stable) public GraphWidgetProps.Builder height(Number height)
MetricWidgetProps.getHeight()height - Height of the widget.this@Stability(value=Stable) public GraphWidgetProps.Builder region(String region)
MetricWidgetProps.getRegion()region - The region the metrics of this graph should be taken from.this@Stability(value=Stable) public GraphWidgetProps.Builder title(String title)
MetricWidgetProps.getTitle()title - Title for the graph.this@Stability(value=Stable) public GraphWidgetProps.Builder width(Number width)
MetricWidgetProps.getWidth()width - Width of the widget, in a grid of 24 units wide.this@Stability(value=Stable) public GraphWidgetProps build()
build in interface software.amazon.jsii.Builder<GraphWidgetProps>GraphWidgetPropsNullPointerException - if any required attribute was not providedCopyright © 2023. All rights reserved.