import * as cw from 'aws-cdk-lib/aws-cloudwatch'; /** * An interface to define a generic alarm that can be used in DataDog as well as in CloudWatch. */ export interface MetricAlarmProps { /** * The CloudWatch metric used as source for the alarm. */ readonly metric: cw.Metric; /** * Description for the alarm */ readonly alarmDescription: string; /** * The value against which the specified statistic is compared. */ readonly threshold: number; /** * Comparison to use to check if metric is breaching * * @defaultValue {@link cw.ComparisonOperator.GREATER_THAN_OR_EQUAL_TO_THRESHOLD} */ readonly comparisonOperator: cw.ComparisonOperator; /** * Sets how this alarm is to handle missing data points. * * @defaultValue {@link cw.TreatMissingData.MISSING} */ readonly treatMissingData?: cw.TreatMissingData; /** * The number of periods over which data is compared to the specified threshold. */ readonly evaluationPeriods: number; /** * priority */ readonly priority: number; /** * Add as_count aggregator to the query */ readonly aggregateQueryAsCount?: boolean; }