Class CfnAlarmProps.Jsii$Proxy
- All Implemented Interfaces:
CfnAlarmProps,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- CfnAlarmProps
CfnAlarmProps-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.cloudwatch.CfnAlarmProps
CfnAlarmProps.Builder, CfnAlarmProps.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(CfnAlarmProps.Builder builder) Constructor that initializes the object based on literal property values passed by theCfnAlarmProps.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodefinal booleanfinal ObjectIndicates whether actions should be executed during any changes to the alarm state.The list of actions to execute when this alarm transitions into an ALARM state from any other state.final StringThe description of the alarm.final StringThe name of the alarm.final StringThe arithmetic operation to use when comparing the specified statistic and threshold.final NumberThe number of datapoints that must be breaching to trigger the alarm.final ObjectThe dimensions for the metric associated with the alarm.final StringUsed only for alarms based on percentiles.final NumberThe number of periods over which data is compared to the specified threshold.final StringThe percentile statistic for the metric associated with the alarm.The actions to execute when this alarm transitions to theINSUFFICIENT_DATAstate from any other state.final StringThe name of the metric associated with the alarm.final ObjectAn array that enables you to create an alarm based on the result of a metric math expression.final StringThe namespace of the metric associated with the alarm.The actions to execute when this alarm transitions to theOKstate from any other state.final NumberThe period, in seconds, over which the statistic is applied.final StringThe statistic for the metric associated with the alarm, other than percentile.final NumberThe value to compare with the specified statistic.final StringIn an alarm based on an anomaly detection model, this is the ID of theANOMALY_DETECTION_BANDfunction used as the threshold for the alarm.final StringSets how this alarm is to handle missing data points.final StringgetUnit()The unit of the metric associated with the alarm.final inthashCode()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theCfnAlarmProps.Builder.
-
-
Method Details
-
getComparisonOperator
Description copied from interface:CfnAlarmPropsThe arithmetic operation to use when comparing the specified statistic and threshold.The specified statistic value is used as the first operand.
You can specify the following values:
GreaterThanThreshold,GreaterThanOrEqualToThreshold,LessThanThreshold, orLessThanOrEqualToThreshold.- Specified by:
getComparisonOperatorin interfaceCfnAlarmProps
-
getEvaluationPeriods
Description copied from interface:CfnAlarmPropsThe number of periods over which data is compared to the specified threshold.If you are setting an alarm that requires that a number of consecutive data points be breaching to trigger the alarm, this value specifies that number. If you are setting an "M out of N" alarm, this value is the N, and
DatapointsToAlarmis the M.For more information, see Evaluating an Alarm in the Amazon CloudWatch User Guide .
- Specified by:
getEvaluationPeriodsin interfaceCfnAlarmProps
-
getActionsEnabled
Description copied from interface:CfnAlarmPropsIndicates whether actions should be executed during any changes to the alarm state.The default is TRUE.
- Specified by:
getActionsEnabledin interfaceCfnAlarmProps
-
getAlarmActions
Description copied from interface:CfnAlarmPropsThe list of actions to execute when this alarm transitions into an ALARM state from any other state.Specify each action as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see PutMetricAlarm in the Amazon CloudWatch API Reference .
- Specified by:
getAlarmActionsin interfaceCfnAlarmProps
-
getAlarmDescription
Description copied from interface:CfnAlarmPropsThe description of the alarm.- Specified by:
getAlarmDescriptionin interfaceCfnAlarmProps
-
getAlarmName
Description copied from interface:CfnAlarmPropsThe name of the alarm.If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the alarm name.
If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
- Specified by:
getAlarmNamein interfaceCfnAlarmProps
-
getDatapointsToAlarm
Description copied from interface:CfnAlarmPropsThe 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, and the value that you set for
EvaluationPeriodsis the N value. For more information, see Evaluating an Alarm in the Amazon CloudWatch User Guide .If you omit this parameter, CloudWatch uses the same value here that you set for
EvaluationPeriods, and the alarm goes to alarm state if that many consecutive periods are breaching.- Specified by:
getDatapointsToAlarmin interfaceCfnAlarmProps
-
getDimensions
Description copied from interface:CfnAlarmPropsThe dimensions for the metric associated with the alarm.For an alarm based on a math expression, you can't specify
Dimensions. Instead, you useMetrics.- Specified by:
getDimensionsin interfaceCfnAlarmProps
-
getEvaluateLowSampleCountPercentile
Description copied from interface:CfnAlarmPropsUsed only for alarms based on percentiles.If
ignore, the alarm state does not change during periods with too few data points to be statistically significant. Ifevaluateor this parameter is not used, the alarm is always evaluated and possibly changes state no matter how many data points are available.- Specified by:
getEvaluateLowSampleCountPercentilein interfaceCfnAlarmProps
-
getExtendedStatistic
Description copied from interface:CfnAlarmPropsThe percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100.For an alarm based on a metric, you must specify either
StatisticorExtendedStatisticbut not both.For an alarm based on a math expression, you can't specify
ExtendedStatistic. Instead, you useMetrics.- Specified by:
getExtendedStatisticin interfaceCfnAlarmProps
-
getInsufficientDataActions
Description copied from interface:CfnAlarmPropsThe actions to execute when this alarm transitions to theINSUFFICIENT_DATAstate from any other state.Each action is specified as an Amazon Resource Name (ARN).
- Specified by:
getInsufficientDataActionsin interfaceCfnAlarmProps
-
getMetricName
Description copied from interface:CfnAlarmPropsThe name of the metric associated with the alarm.This is required for an alarm based on a metric. For an alarm based on a math expression, you use
Metricsinstead and you can't specifyMetricName.- Specified by:
getMetricNamein interfaceCfnAlarmProps
-
getMetrics
Description copied from interface:CfnAlarmPropsAn array that enables you to create an alarm based on the result of a metric math expression.Each item in the array either retrieves a metric or performs a math expression.
If you specify the
Metricsparameter, you cannot specifyMetricName,Dimensions,Period,Namespace,Statistic,ExtendedStatistic, orUnit.- Specified by:
getMetricsin interfaceCfnAlarmProps
-
getNamespace
Description copied from interface:CfnAlarmPropsThe namespace of the metric associated with the alarm.This is required for an alarm based on a metric. For an alarm based on a math expression, you can't specify
Namespaceand you useMetricsinstead.For a list of namespaces for metrics from AWS services, see AWS Services That Publish CloudWatch Metrics.
- Specified by:
getNamespacein interfaceCfnAlarmProps
-
getOkActions
Description copied from interface:CfnAlarmPropsThe actions to execute when this alarm transitions to theOKstate from any other state.Each action is specified as an Amazon Resource Name (ARN).
- Specified by:
getOkActionsin interfaceCfnAlarmProps
-
getPeriod
Description copied from interface:CfnAlarmPropsThe period, in seconds, over which the statistic is applied.This is required for an alarm based on a metric. Valid values are 10, 30, 60, and any multiple of 60.
For an alarm based on a math expression, you can't specify
Period, and instead you use theMetricsparameter.Minimum: 10
- Specified by:
getPeriodin interfaceCfnAlarmProps
-
getStatistic
Description copied from interface:CfnAlarmPropsThe statistic for the metric associated with the alarm, other than percentile. For percentile statistics, useExtendedStatistic.For an alarm based on a metric, you must specify either
StatisticorExtendedStatisticbut not both.For an alarm based on a math expression, you can't specify
Statistic. Instead, you useMetrics.- Specified by:
getStatisticin interfaceCfnAlarmProps
-
getThreshold
Description copied from interface:CfnAlarmPropsThe value to compare with the specified statistic.- Specified by:
getThresholdin interfaceCfnAlarmProps
-
getThresholdMetricId
Description copied from interface:CfnAlarmPropsIn an alarm based on an anomaly detection model, this is the ID of theANOMALY_DETECTION_BANDfunction used as the threshold for the alarm.- Specified by:
getThresholdMetricIdin interfaceCfnAlarmProps
-
getTreatMissingData
Description copied from interface:CfnAlarmPropsSets how this alarm is to handle missing data points.Valid values are
breaching,notBreaching,ignore, andmissing. For more information, see Configuring How CloudWatch Alarms Treat Missing Data in the Amazon CloudWatch User Guide .If you omit this parameter, the default behavior of
missingis used.- Specified by:
getTreatMissingDatain interfaceCfnAlarmProps
-
getUnit
Description copied from interface:CfnAlarmPropsThe unit of the metric associated with the alarm.Specify this only if you are creating an alarm based on a single metric. Do not specify this if you are specifying a
Metricsarray.You can specify the following values: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, or None.
- Specified by:
getUnitin interfaceCfnAlarmProps
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-