@Stability(value=Experimental) public static final class AlarmProps.Builder extends Object
AlarmProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
AlarmProps |
build()
Builds the configured instance.
|
AlarmProps.Builder |
withActionsEnabled(Boolean value)
Sets the value of ActionsEnabled
|
AlarmProps.Builder |
withAlarmDescription(String value)
Sets the value of AlarmDescription
|
AlarmProps.Builder |
withAlarmName(String value)
Sets the value of AlarmName
|
AlarmProps.Builder |
withComparisonOperator(ComparisonOperator value)
Sets the value of ComparisonOperator
|
AlarmProps.Builder |
withDatapointsToAlarm(Number value)
Sets the value of DatapointsToAlarm
|
AlarmProps.Builder |
withEvaluateLowSampleCountPercentile(String value)
Sets the value of EvaluateLowSampleCountPercentile
|
AlarmProps.Builder |
withEvaluationPeriods(Number value)
Sets the value of EvaluationPeriods
|
AlarmProps.Builder |
withMetric(IMetric value)
Sets the value of Metric
|
AlarmProps.Builder |
withPeriod(software.amazon.awscdk.core.Duration value)
Sets the value of Period
|
AlarmProps.Builder |
withStatistic(String value)
Sets the value of Statistic
|
AlarmProps.Builder |
withThreshold(Number value)
Sets the value of Threshold
|
AlarmProps.Builder |
withTreatMissingData(TreatMissingData value)
Sets the value of TreatMissingData
|
@Stability(value=Experimental) public AlarmProps.Builder withMetric(IMetric value)
value - The metric to add the alarm on.this@Stability(value=Experimental) public AlarmProps.Builder withEvaluationPeriods(Number value)
value - The number of periods over which data is compared to the specified threshold.this@Stability(value=Experimental) public AlarmProps.Builder withThreshold(Number value)
value - The value against which the specified statistic is compared.this@Stability(value=Experimental) public AlarmProps.Builder withActionsEnabled(@Nullable Boolean value)
value - Whether the actions for this alarm are enabled.this@Stability(value=Experimental) public AlarmProps.Builder withAlarmDescription(@Nullable String value)
value - Description for the alarm.this@Stability(value=Experimental) public AlarmProps.Builder withAlarmName(@Nullable String value)
value - Name of the alarm.this@Stability(value=Experimental) public AlarmProps.Builder withComparisonOperator(@Nullable ComparisonOperator value)
value - Comparison to use to check if metric is breaching.this@Stability(value=Experimental) public AlarmProps.Builder withDatapointsToAlarm(@Nullable Number value)
value - The number of datapoints that must be breaching to trigger the alarm.this@Stability(value=Experimental) public AlarmProps.Builder withEvaluateLowSampleCountPercentile(@Nullable String value)
value - Specifies whether to evaluate the data and potentially change the alarm state if there are too few data points to be statistically significant.this@Stability(value=Experimental) public AlarmProps.Builder withPeriod(@Nullable software.amazon.awscdk.core.Duration value)
value - The period over which the specified statistic is applied.this@Stability(value=Experimental) public AlarmProps.Builder withStatistic(@Nullable String value)
value - What function to use for aggregating.this@Stability(value=Experimental) public AlarmProps.Builder withTreatMissingData(@Nullable TreatMissingData value)
value - Sets how this alarm is to handle missing data points.this@Stability(value=Experimental) public AlarmProps build()
AlarmPropsNullPointerException - if any required attribute was not providedCopyright © 2019. All rights reserved.