@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.254Z") @Stability(value=Stable) public interface CreateAlarmOptions extends software.amazon.jsii.JsiiSerializable
Example:
import software.amazon.awscdk.services.cloudwatch.*;
HostedZone myHostedZone;
Certificate certificate = Certificate.Builder.create(this, "Certificate")
.domainName("hello.example.com")
.validation(CertificateValidation.fromDns(myHostedZone))
.build();
certificate.metricDaysToExpiry().createAlarm(this, "Alarm", CreateAlarmOptions.builder()
.comparisonOperator(ComparisonOperator.LESS_THAN_THRESHOLD)
.evaluationPeriods(1)
.threshold(45)
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
CreateAlarmOptions.Builder
A builder for
CreateAlarmOptions |
static class |
CreateAlarmOptions.Jsii$Proxy
An implementation for
CreateAlarmOptions |
| Modifier and Type | Method and Description |
|---|---|
static CreateAlarmOptions.Builder |
builder() |
default Boolean |
getActionsEnabled()
Whether the actions for this alarm are enabled.
|
default String |
getAlarmDescription()
Description for the alarm.
|
default String |
getAlarmName()
Name of the alarm.
|
default ComparisonOperator |
getComparisonOperator()
Comparison to use to check if metric is breaching.
|
default Number |
getDatapointsToAlarm()
The number of datapoints that must be breaching to trigger the alarm.
|
default String |
getEvaluateLowSampleCountPercentile()
Specifies whether to evaluate the data and potentially change the alarm state if there are too few data points to be statistically significant.
|
Number |
getEvaluationPeriods()
The number of periods over which data is compared to the specified threshold.
|
Number |
getThreshold()
The value against which the specified statistic is compared.
|
default TreatMissingData |
getTreatMissingData()
Sets how this alarm is to handle missing data points.
|
@Stability(value=Stable) @NotNull Number getEvaluationPeriods()
@Stability(value=Stable) @NotNull Number getThreshold()
@Stability(value=Stable) @Nullable default Boolean getActionsEnabled()
Default: true
@Stability(value=Stable) @Nullable default String getAlarmDescription()
Default: No description
@Stability(value=Stable) @Nullable default String getAlarmName()
Default: Automatically generated name
@Stability(value=Stable) @Nullable default ComparisonOperator getComparisonOperator()
Default: GreaterThanOrEqualToThreshold
@Stability(value=Stable) @Nullable default Number getDatapointsToAlarm()
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``
@Stability(value=Stable) @Nullable default String getEvaluateLowSampleCountPercentile()
Used only for alarms that are based on percentiles.
Default: - Not configured.
@Stability(value=Stable) @Nullable default TreatMissingData getTreatMissingData()
Default: TreatMissingData.Missing
@Stability(value=Stable) static CreateAlarmOptions.Builder builder()
CreateAlarmOptions.Builder of CreateAlarmOptionsCopyright © 2022. All rights reserved.