@Stability(value=Stable) public static final class AlarmProps.Builder extends Object implements software.amazon.jsii.Builder<AlarmProps>
AlarmProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public AlarmProps.Builder metric(IMetric metric)
AlarmProps.getMetric()metric - The metric to add the alarm on. This parameter is required.
Metric objects can be obtained from most resources, or you can construct
custom Metric objects by instantiating one.this@Stability(value=Stable) public AlarmProps.Builder evaluationPeriods(Number evaluationPeriods)
CreateAlarmOptions.getEvaluationPeriods()evaluationPeriods - The number of periods over which data is compared to the specified threshold. This parameter is required.this@Stability(value=Stable) public AlarmProps.Builder threshold(Number threshold)
CreateAlarmOptions.getThreshold()threshold - The value against which the specified statistic is compared. This parameter is required.this@Stability(value=Stable) public AlarmProps.Builder actionsEnabled(Boolean actionsEnabled)
CreateAlarmOptions.getActionsEnabled()actionsEnabled - Whether the actions for this alarm are enabled.this@Stability(value=Stable) public AlarmProps.Builder alarmDescription(String alarmDescription)
CreateAlarmOptions.getAlarmDescription()alarmDescription - Description for the alarm.this@Stability(value=Stable) public AlarmProps.Builder alarmName(String alarmName)
CreateAlarmOptions.getAlarmName()alarmName - Name of the alarm.this@Stability(value=Stable) public AlarmProps.Builder comparisonOperator(ComparisonOperator comparisonOperator)
CreateAlarmOptions.getComparisonOperator()comparisonOperator - Comparison to use to check if metric is breaching.this@Stability(value=Stable) public AlarmProps.Builder datapointsToAlarm(Number datapointsToAlarm)
CreateAlarmOptions.getDatapointsToAlarm()datapointsToAlarm - The number of datapoints that must be breaching to trigger the alarm.
This is used only if you are setting an "M
out of N" alarm. In that case, this value is the M. For more information, see Evaluating an Alarm in the Amazon
CloudWatch User Guide.this@Stability(value=Stable) public AlarmProps.Builder evaluateLowSampleCountPercentile(String evaluateLowSampleCountPercentile)
CreateAlarmOptions.getEvaluateLowSampleCountPercentile()evaluateLowSampleCountPercentile - Specifies whether to evaluate the data and potentially change the alarm state if there are too few data points to be statistically significant.
Used only for alarms that are based on percentiles.this@Stability(value=Stable) public AlarmProps.Builder treatMissingData(TreatMissingData treatMissingData)
CreateAlarmOptions.getTreatMissingData()treatMissingData - Sets how this alarm is to handle missing data points.this@Stability(value=Stable) public AlarmProps build()
build in interface software.amazon.jsii.Builder<AlarmProps>AlarmPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.