@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:05.385Z") @Stability(value=Experimental) public interface AlarmProps extends software.amazon.jsii.JsiiSerializable, CreateAlarmOptions
Example:
import software.amazon.awscdk.services.cloudwatch.*;
Canary canary;
Alarm.Builder.create(this, "CanaryAlarm")
.metric(canary.metricSuccessPercent())
.evaluationPeriods(2)
.threshold(90)
.comparisonOperator(ComparisonOperator.LESS_THAN_THRESHOLD)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
AlarmProps.Builder
A builder for
AlarmProps |
static class |
AlarmProps.Jsii$Proxy
An implementation for
AlarmProps |
| Modifier and Type | Method and Description |
|---|---|
static AlarmProps.Builder |
builder() |
IMetric |
getMetric()
(experimental) The metric to add the alarm on.
|
getActionsEnabled, getAlarmDescription, getAlarmName, getComparisonOperator, getDatapointsToAlarm, getEvaluateLowSampleCountPercentile, getEvaluationPeriods, getThreshold, getTreatMissingData@Stability(value=Experimental) @NotNull IMetric getMetric()
Metric objects can be obtained from most resources, or you can construct custom Metric objects by instantiating one.
@Stability(value=Experimental) static AlarmProps.Builder builder()
builder in interface CreateAlarmOptionsAlarmProps.Builder of AlarmPropsCopyright © 2021. All rights reserved.