Enum ComparisonOperator
Comparison operator for evaluating alarms.
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum ComparisonOperator
Syntax (vb)
Public Enum ComparisonOperator
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. |
Fields
Name | Description |
---|---|
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. |