import { Duration } from 'aws-cdk-lib'; import { Construct } from 'constructs'; import { INotification } from '../datadogv2'; export interface DataDogLogQueryAlarmProps extends DataDogProps, LogAlarmProps { } export declare enum UnitOfPeriod { SECONDS = "s", MINUTES = "m", HOURS = "h", DAYS = "d" } export declare enum ComparisonOperator { GREATER_THAN_OR_EQUAL_TO_THRESHOLD = ">=", GREATER_THAN_THRESHOLD = ">", LESS_THAN_OR_EQUAL_TO_THRESHOLD = "<=", LESS_THAN_THRESHOLD = "<" } export interface DataDogProps { readonly serviceName: string; readonly lambdaFunctionName?: string; } export interface LogAlarmProps { readonly period: Duration; readonly unitOfPeriod?: UnitOfPeriod; readonly periodOperator: ComparisonOperator; readonly statistic: 'count'; readonly queryFilters: 'error' | 'warn'; readonly alarmDescription: string; readonly threshold: number; readonly priority: number; readonly index: string; readonly notification?: INotification; readonly lambdaCloudwatchGroupName?: string; readonly disableAutoClose?: boolean; readonly renotifyInterval?: number; } export declare class DataDogLogAlarm extends Construct { constructor(scope: Construct, id: string, props: DataDogLogQueryAlarmProps); private alarmToDataDogQuery; private convertToDatadogPeriod; }