Enum TreatMissingData
- All Implemented Interfaces:
Serializable
,Comparable<TreatMissingData>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-06T14:43:15.776Z")
@Stability(Stable)
public enum TreatMissingData
extends Enum<TreatMissingData>
Specify how missing data points are treated during alarm evaluation.
Example:
import software.amazon.awscdk.*; import software.amazon.awscdk.services.cloudwatch.*; Function fn = Function.Builder.create(this, "MyFunction") .runtime(Runtime.NODEJS_18_X) .handler("index.handler") .code(Code.fromAsset(join(__dirname, "lambda-handler"))) .timeout(Duration.minutes(5)) .build(); if (fn.getTimeout()) { Alarm.Builder.create(this, "MyAlarm") .metric(fn.metricDuration().with(MetricOptions.builder() .statistic("Maximum") .build())) .evaluationPeriods(1) .datapointsToAlarm(1) .threshold(fn.timeout.toMilliseconds()) .treatMissingData(TreatMissingData.IGNORE) .alarmName("My Lambda Timeout") .build(); }
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionMissing data points are treated as breaching the threshold.The current alarm state is maintained.The alarm does not consider missing data points when evaluating whether to change state.Missing data points are treated as being within the threshold. -
Method Summary
Modifier and TypeMethodDescriptionstatic TreatMissingData
Returns the enum constant of this type with the specified name.static TreatMissingData[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BREACHING
Missing data points are treated as breaching the threshold. -
NOT_BREACHING
Missing data points are treated as being within the threshold. -
IGNORE
The current alarm state is maintained. -
MISSING
The alarm does not consider missing data points when evaluating whether to change state.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-