public static final class SystemErrorsForOperationsMetricOptions.Builder
extends java.lang.Object
SystemErrorsForOperationsMetricOptions
Constructor and Description |
---|
Builder() |
public SystemErrorsForOperationsMetricOptions.Builder operations(java.util.List<? extends Operation> operations)
SystemErrorsForOperationsMetricOptions.getOperations()
operations
- The operations to apply the metric to.this
public SystemErrorsForOperationsMetricOptions.Builder account(java.lang.String account)
CommonMetricOptions.getAccount()
account
- Account which this metric comes from.this
public SystemErrorsForOperationsMetricOptions.Builder color(java.lang.String color)
CommonMetricOptions.getColor()
color
- The hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. The `Color` class has a set of standard colors that can be used here.this
@Deprecated public SystemErrorsForOperationsMetricOptions.Builder dimensions(java.util.Map<java.lang.String,? extends java.lang.Object> dimensions)
CommonMetricOptions.getDimensions()
dimensions
- Dimensions of the metric.this
public SystemErrorsForOperationsMetricOptions.Builder dimensionsMap(java.util.Map<java.lang.String,java.lang.String> dimensionsMap)
CommonMetricOptions.getDimensionsMap()
dimensionsMap
- Dimensions of the metric.this
public SystemErrorsForOperationsMetricOptions.Builder label(java.lang.String label)
CommonMetricOptions.getLabel()
label
- Label for this metric when added to a Graph in a Dashboard.
You can use dynamic labels
to show summary information about the entire displayed time series
in the legend. For example, if you use:
[max: ${MAX}] MyMetric
As the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend.
this
public SystemErrorsForOperationsMetricOptions.Builder period(Duration period)
CommonMetricOptions.getPeriod()
period
- The period over which the specified statistic is applied.this
public SystemErrorsForOperationsMetricOptions.Builder region(java.lang.String region)
CommonMetricOptions.getRegion()
region
- Region which this metric comes from.this
public SystemErrorsForOperationsMetricOptions.Builder statistic(java.lang.String statistic)
CommonMetricOptions.getStatistic()
statistic
- What function to use for aggregating.
Can be one of the following:
this
public SystemErrorsForOperationsMetricOptions.Builder unit(Unit unit)
CommonMetricOptions.getUnit()
unit
- Unit used to filter the metric stream.
Only refer to datums emitted to the metric stream with the given unit and
ignore all others. Only useful when datums are being emitted to the same
metric stream under different units.
The default is to use all matric datums in the stream, regardless of unit, which is recommended in nearly all cases.
CloudWatch does not honor this property for graphs.
this
public SystemErrorsForOperationsMetricOptions build()
SystemErrorsForOperationsMetricOptions
java.lang.NullPointerException
- if any required attribute was not provided