import { Construct } from 'constructs'; export type DatadogAlertType = 'opsgenie' | 'slack'; export interface DatadogMonitorProps { /** * The name of the service to which the monitor belongs. * * Used to generate the monitor name as well a apply the `service` tag. */ readonly serviceName: string; /** * Type of alert. "opsgenie" or "slack" */ readonly alertTypes?: DatadogAlertType[]; /** * If AutoCloseOpsGenieAlerts is set to False, the monitor message will be wrapped in \{\{#is_alert\}\} ... \{\{/is_alert\}\} so that the corresponding OpsGenie alert will not resolve automatically. * If set to True, it will leave the monitor message as it is. * Note also that it is not possible to provide any of the wrappings \{\{#is_alert\}\}, \{\{#is_warning\}\}, \{\{#is_alert_recovery\}\}, '\{\{#is_warning_recovery\}\}' in the message yourself and use the property AutoCloseOpsGenieAlerts at the same time. */ readonly autoCloseOpsGenieAlerts?: boolean; /** * Monitor definition. Ref : https://docs.datadoghq.com/api/latest/monitors/#create-a-monitor */ readonly monitor: { [key: string]: any; }; } /** * @deprecated Please use datadogv2 DatadogMonitor instead */ export declare class DatadogMonitor { constructor(stack: Construct, id: string, props: DatadogMonitorProps); }