@Stability(value=Stable) public static final class CfnAlarmProps.Builder extends Object implements software.amazon.jsii.Builder<CfnAlarmProps>
CfnAlarmProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnAlarmProps.Builder alarmName(String alarmName)
CfnAlarmProps.getAlarmName()alarmName - The name of the alarm. This parameter is required.this@Stability(value=Stable) public CfnAlarmProps.Builder comparisonOperator(String comparisonOperator)
CfnAlarmProps.getComparisonOperator()comparisonOperator - The arithmetic operation to use when comparing the specified statistic and threshold. This parameter is required.this@Stability(value=Stable) public CfnAlarmProps.Builder evaluationPeriods(Number evaluationPeriods)
CfnAlarmProps.getEvaluationPeriods()evaluationPeriods - The number of periods over which data is compared to the specified threshold. This parameter is required.this@Stability(value=Stable) public CfnAlarmProps.Builder metricName(String metricName)
CfnAlarmProps.getMetricName()metricName - The name of the metric associated with the alarm. This parameter is required.this@Stability(value=Stable) public CfnAlarmProps.Builder monitoredResourceName(String monitoredResourceName)
CfnAlarmProps.getMonitoredResourceName()monitoredResourceName - The name of the Lightsail resource that the alarm monitors. This parameter is required.this@Stability(value=Stable) public CfnAlarmProps.Builder threshold(Number threshold)
CfnAlarmProps.getThreshold()threshold - The value against which the specified statistic is compared. This parameter is required.this@Stability(value=Stable) public CfnAlarmProps.Builder contactProtocols(List<String> contactProtocols)
CfnAlarmProps.getContactProtocols()contactProtocols - The contact protocols for the alarm, such as `Email` , `SMS` (text messaging), or both.
Allowed Values : Email | SMSthis@Stability(value=Stable) public CfnAlarmProps.Builder datapointsToAlarm(Number datapointsToAlarm)
CfnAlarmProps.getDatapointsToAlarm()datapointsToAlarm - The number of data points within the evaluation periods that must be breaching to cause the alarm to go to the `ALARM` state.this@Stability(value=Stable) public CfnAlarmProps.Builder notificationEnabled(Boolean notificationEnabled)
CfnAlarmProps.getNotificationEnabled()notificationEnabled - A Boolean value indicating whether the alarm is enabled.this@Stability(value=Stable) public CfnAlarmProps.Builder notificationEnabled(IResolvable notificationEnabled)
CfnAlarmProps.getNotificationEnabled()notificationEnabled - A Boolean value indicating whether the alarm is enabled.this@Stability(value=Stable) public CfnAlarmProps.Builder notificationTriggers(List<String> notificationTriggers)
CfnAlarmProps.getNotificationTriggers()notificationTriggers - The alarm states that trigger a notification.
To specify the
OKandINSUFFICIENT_DATAvalues, you must also specifyContactProtocolsvalues. Otherwise, theOKandINSUFFICIENT_DATAvalues will not take effect and the stack will drift.
Allowed Values : OK | ALARM | INSUFFICIENT_DATA
this@Stability(value=Stable) public CfnAlarmProps.Builder treatMissingData(String treatMissingData)
CfnAlarmProps.getTreatMissingData()treatMissingData - Specifies how the alarm handles missing data points.
An alarm can treat missing data in the following ways:
breaching - Assumes the missing data is not within the threshold. Missing data counts towards the number of times that the metric is not within the threshold.notBreaching - Assumes the missing data is within the threshold. Missing data does not count towards the number of times that the metric is not within the threshold.ignore - Ignores the missing data. Maintains the current alarm state.missing - Missing data is treated as missing.this@Stability(value=Stable) public CfnAlarmProps build()
build in interface software.amazon.jsii.Builder<CfnAlarmProps>CfnAlarmPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.