Class ComparisonOperator
Comparison operator for evaluating alarms.
Inheritance
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.AWS.CloudWatch.dll
Syntax (csharp)
public sealed class ComparisonOperator : Enum
Syntax (vb)
Public NotInheritable Class ComparisonOperator
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.CloudWatch;
HostedZone myHostedZone;
var certificate = new Certificate(this, "Certificate", new CertificateProps {
DomainName = "hello.example.com",
Validation = CertificateValidation.FromDns(myHostedZone)
});
certificate.MetricDaysToExpiry().CreateAlarm(this, "Alarm", new CreateAlarmOptions {
ComparisonOperator = ComparisonOperator.LESS_THAN_THRESHOLD,
EvaluationPeriods = 1,
Threshold = 45
});
Synopsis
Fields
GREATER_THAN_OR_EQUAL_TO_THRESHOLD | Specified statistic is greater than or equal to the threshold. |
GREATER_THAN_THRESHOLD | Specified statistic is strictly greater than the threshold. |
GREATER_THAN_UPPER_THRESHOLD | Specified statistic is greater than the anomaly model band. |
LESS_THAN_LOWER_OR_GREATER_THAN_UPPER_THRESHOLD | Specified statistic is lower than or greater than the anomaly model band. |
LESS_THAN_LOWER_THRESHOLD | Specified statistic is lower than the anomaly model band. |
LESS_THAN_OR_EQUAL_TO_THRESHOLD | Specified statistic is less than or equal to the threshold. |
LESS_THAN_THRESHOLD | Specified statistic is strictly less than the threshold. |
value__ |
Fields
GREATER_THAN_OR_EQUAL_TO_THRESHOLD
Specified statistic is greater than or equal to the threshold.
public const ComparisonOperator GREATER_THAN_OR_EQUAL_TO_THRESHOLD
Field Value
Type | Description |
---|---|
ComparisonOperator |
GREATER_THAN_THRESHOLD
Specified statistic is strictly greater than the threshold.
public const ComparisonOperator GREATER_THAN_THRESHOLD
Field Value
Type | Description |
---|---|
ComparisonOperator |
GREATER_THAN_UPPER_THRESHOLD
Specified statistic is greater than the anomaly model band.
public const ComparisonOperator GREATER_THAN_UPPER_THRESHOLD
Field Value
Type | Description |
---|---|
ComparisonOperator |
Remarks
Used only for alarms based on anomaly detection models
LESS_THAN_LOWER_OR_GREATER_THAN_UPPER_THRESHOLD
Specified statistic is lower than or greater than the anomaly model band.
public const ComparisonOperator LESS_THAN_LOWER_OR_GREATER_THAN_UPPER_THRESHOLD
Field Value
Type | Description |
---|---|
ComparisonOperator |
Remarks
Used only for alarms based on anomaly detection models
LESS_THAN_LOWER_THRESHOLD
Specified statistic is lower than the anomaly model band.
public const ComparisonOperator LESS_THAN_LOWER_THRESHOLD
Field Value
Type | Description |
---|---|
ComparisonOperator |
Remarks
Used only for alarms based on anomaly detection models
LESS_THAN_OR_EQUAL_TO_THRESHOLD
Specified statistic is less than or equal to the threshold.
public const ComparisonOperator LESS_THAN_OR_EQUAL_TO_THRESHOLD
Field Value
Type | Description |
---|---|
ComparisonOperator |
LESS_THAN_THRESHOLD
Specified statistic is strictly less than the threshold.
public const ComparisonOperator LESS_THAN_THRESHOLD
Field Value
Type | Description |
---|---|
ComparisonOperator |
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |