Class TreatMissingData
Specify how missing data points are treated during alarm evaluation.
Inheritance
System.Object
TreatMissingData
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class TreatMissingData : Enum
Syntax (vb)
Public NotInheritable Class TreatMissingData
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK;
using Amazon.CDK.AWS.CloudWatch;
var fn = new Function(this, "MyFunction", new FunctionProps {
Runtime = Runtime.NODEJS_18_X,
Handler = "index.handler",
Code = Code.FromAsset(Join(__dirname, "lambda-handler")),
Timeout = Duration.Minutes(5)
});
if (fn.Timeout)
{
new Alarm(this, "MyAlarm", new AlarmProps {
Metric = fn.MetricDuration().With(new MetricOptions {
Statistic = "Maximum"
}),
EvaluationPeriods = 1,
DatapointsToAlarm = 1,
Threshold = fn.Timeout.ToMilliseconds(),
TreatMissingData = TreatMissingData.IGNORE,
AlarmName = "My Lambda Timeout"
});
}
Synopsis
Fields
BREACHING | Missing data points are treated as breaching the threshold. |
IGNORE | The current alarm state is maintained. |
MISSING | The alarm does not consider missing data points when evaluating whether to change state. |
NOT_BREACHING | Missing data points are treated as being within the threshold. |
value__ |
Fields
BREACHING
Missing data points are treated as breaching the threshold.
public const TreatMissingData BREACHING
Field Value
Type | Description |
---|---|
TreatMissingData |
IGNORE
The current alarm state is maintained.
public const TreatMissingData IGNORE
Field Value
Type | Description |
---|---|
TreatMissingData |
MISSING
The alarm does not consider missing data points when evaluating whether to change state.
public const TreatMissingData MISSING
Field Value
Type | Description |
---|---|
TreatMissingData |
NOT_BREACHING
Missing data points are treated as being within the threshold.
public const TreatMissingData NOT_BREACHING
Field Value
Type | Description |
---|---|
TreatMissingData |
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |