| Modifier and Type | Method and Description |
|---|---|
Alarm.Builder |
actionsEnabled(Boolean actionsEnabled)
Whether the actions for this alarm are enabled.
|
Alarm.Builder |
alarmDescription(String alarmDescription)
Description for the alarm.
|
Alarm.Builder |
alarmName(String alarmName)
Name of the alarm.
|
Alarm |
build() |
Alarm.Builder |
comparisonOperator(ComparisonOperator comparisonOperator)
Comparison to use to check if metric is breaching.
|
static Alarm.Builder |
create(software.constructs.Construct scope,
String id) |
Alarm.Builder |
datapointsToAlarm(Number datapointsToAlarm)
The number of datapoints that must be breaching to trigger the alarm.
|
Alarm.Builder |
evaluateLowSampleCountPercentile(String evaluateLowSampleCountPercentile)
Specifies whether to evaluate the data and potentially change the alarm state if there are too few data points to be statistically significant.
|
Alarm.Builder |
evaluationPeriods(Number evaluationPeriods)
The number of periods over which data is compared to the specified threshold.
|
Alarm.Builder |
metric(IMetric metric)
The metric to add the alarm on.
|
Alarm.Builder |
threshold(Number threshold)
The value against which the specified statistic is compared.
|
Alarm.Builder |
treatMissingData(TreatMissingData treatMissingData)
Sets how this alarm is to handle missing data points.
|
@Stability(value=Stable) public static Alarm.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.Alarm.Builder.@Stability(value=Stable) public Alarm.Builder evaluationPeriods(Number evaluationPeriods)
evaluationPeriods - The number of periods over which data is compared to the specified threshold. This parameter is required.this@Stability(value=Stable) public Alarm.Builder threshold(Number threshold)
threshold - The value against which the specified statistic is compared. This parameter is required.this@Stability(value=Stable) public Alarm.Builder actionsEnabled(Boolean actionsEnabled)
Default: true
actionsEnabled - Whether the actions for this alarm are enabled. This parameter is required.this@Stability(value=Stable) public Alarm.Builder alarmDescription(String alarmDescription)
Default: No description
alarmDescription - Description for the alarm. This parameter is required.this@Stability(value=Stable) public Alarm.Builder alarmName(String alarmName)
Default: Automatically generated name
alarmName - Name of the alarm. This parameter is required.this@Stability(value=Stable) public Alarm.Builder comparisonOperator(ComparisonOperator comparisonOperator)
Default: GreaterThanOrEqualToThreshold
comparisonOperator - Comparison to use to check if metric is breaching. This parameter is required.this@Stability(value=Stable) public Alarm.Builder datapointsToAlarm(Number datapointsToAlarm)
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.
Default: ``evaluationPeriods``
datapointsToAlarm - The number of datapoints that must be breaching to trigger the alarm. This parameter is required.this@Stability(value=Stable) public Alarm.Builder evaluateLowSampleCountPercentile(String evaluateLowSampleCountPercentile)
Used only for alarms that are based on percentiles.
Default: - Not configured.
evaluateLowSampleCountPercentile - Specifies whether to evaluate the data and potentially change the alarm state if there are too few data points to be statistically significant. This parameter is required.this@Stability(value=Stable) public Alarm.Builder treatMissingData(TreatMissingData treatMissingData)
Default: TreatMissingData.Missing
treatMissingData - Sets how this alarm is to handle missing data points. This parameter is required.this@Stability(value=Stable) public Alarm.Builder metric(IMetric metric)
Metric objects can be obtained from most resources, or you can construct custom Metric objects by instantiating one.
metric - The metric to add the alarm on. This parameter is required.thisCopyright © 2022. All rights reserved.