import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Alert policy. The logging service periodically analyzes data and sends alerts that meet the trigger conditions to the specified notification objects * * ## Import * * ```sh * $ pulumi import volcenginecc:tls/alarm:Alarm example "alarm_id" * ``` */ export declare class Alarm extends pulumi.CustomResource { /** * Get an existing Alarm resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: AlarmState, opts?: pulumi.CustomResourceOptions): Alarm; /** * Returns true if the given object is an instance of Alarm. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Alarm; /** * Alert policy ID. */ readonly alarmId: pulumi.Output; /** * Alert policy name */ readonly alarmName: pulumi.Output; readonly alarmNotifyGroups: pulumi.Output; /** * Alert notification sending interval. When the alert is triggered continuously and reaches the specified TriggerPeriod limit, the log service sends alert notifications at the specified interval. Value range: 10–1440, unit: minutes. This parameter sets the sending interval for alert notifications across all channels. AlarmPeriod and AlarmPeriodDetail cannot both be empty. If both are specified, AlarmPeriodDetail takes precedence. */ readonly alarmPeriod: pulumi.Output; /** * Alert notification sending interval. When the alert is triggered continuously and reaches the specified TriggerPeriod, the logging service sends alert notifications according to the specified interval. Value range: 10–1440, in minutes. This parameter is used to set the sending interval for each channel. AlarmPeriod and AlarmPeriodDetail cannot both be empty. If both are specified, AlarmPeriodDetail takes precedence */ readonly alarmPeriodDetail: pulumi.Output; /** * Alert trigger conditions. Alert policies support referencing query analysis results using the $N.keyname expression. If you configure the TriggerConditions field, the Condition and Severity fields will be ignored. If you do not configure the TriggerConditions field, both Condition and Severity fields are required. */ readonly condition: pulumi.Output; /** * Alert policy creation time */ readonly createTime: pulumi.Output; readonly joinConfigurations: pulumi.Output; /** * Last modified time of the alert policy. */ readonly modifyTime: pulumi.Output; /** * ID of the log project where the monitored log topic resides */ readonly projectId: pulumi.Output; readonly queryRequests: pulumi.Output; /** * Monitoring task execution statement. */ readonly requestCycle: pulumi.Output; /** * Enable alert policy. Default is true (enabled) */ readonly sendResolved: pulumi.Output; /** * Alert notification level, indicating the severity of the alert. Supported values: notice, warning, or critical. Default is notice */ readonly severity: pulumi.Output; /** * Enable alert policy. Default is true (enabled) */ readonly status: pulumi.Output; readonly triggerConditions: pulumi.Output; /** * Duration period. An alert is triggered after the trigger condition is continuously met for TriggerPeriod cycles. Minimum value: 1, maximum value: 10, default is 1. */ readonly triggerPeriod: pulumi.Output; /** * Customize alert notification content. You can insert content variables and functions. For details, see the documentation for content variables and content functions. To display this content in the actual alert notification, reference it in the content template using the NotifyMsg variable. */ readonly userDefineMsg: pulumi.Output; /** * Create a Alarm resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: AlarmArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Alarm resources. */ export interface AlarmState { /** * Alert policy ID. */ alarmId?: pulumi.Input; /** * Alert policy name */ alarmName?: pulumi.Input; alarmNotifyGroups?: pulumi.Input[]>; /** * Alert notification sending interval. When the alert is triggered continuously and reaches the specified TriggerPeriod limit, the log service sends alert notifications at the specified interval. Value range: 10–1440, unit: minutes. This parameter sets the sending interval for alert notifications across all channels. AlarmPeriod and AlarmPeriodDetail cannot both be empty. If both are specified, AlarmPeriodDetail takes precedence. */ alarmPeriod?: pulumi.Input; /** * Alert notification sending interval. When the alert is triggered continuously and reaches the specified TriggerPeriod, the logging service sends alert notifications according to the specified interval. Value range: 10–1440, in minutes. This parameter is used to set the sending interval for each channel. AlarmPeriod and AlarmPeriodDetail cannot both be empty. If both are specified, AlarmPeriodDetail takes precedence */ alarmPeriodDetail?: pulumi.Input; /** * Alert trigger conditions. Alert policies support referencing query analysis results using the $N.keyname expression. If you configure the TriggerConditions field, the Condition and Severity fields will be ignored. If you do not configure the TriggerConditions field, both Condition and Severity fields are required. */ condition?: pulumi.Input; /** * Alert policy creation time */ createTime?: pulumi.Input; joinConfigurations?: pulumi.Input[]>; /** * Last modified time of the alert policy. */ modifyTime?: pulumi.Input; /** * ID of the log project where the monitored log topic resides */ projectId?: pulumi.Input; queryRequests?: pulumi.Input[]>; /** * Monitoring task execution statement. */ requestCycle?: pulumi.Input; /** * Enable alert policy. Default is true (enabled) */ sendResolved?: pulumi.Input; /** * Alert notification level, indicating the severity of the alert. Supported values: notice, warning, or critical. Default is notice */ severity?: pulumi.Input; /** * Enable alert policy. Default is true (enabled) */ status?: pulumi.Input; triggerConditions?: pulumi.Input[]>; /** * Duration period. An alert is triggered after the trigger condition is continuously met for TriggerPeriod cycles. Minimum value: 1, maximum value: 10, default is 1. */ triggerPeriod?: pulumi.Input; /** * Customize alert notification content. You can insert content variables and functions. For details, see the documentation for content variables and content functions. To display this content in the actual alert notification, reference it in the content template using the NotifyMsg variable. */ userDefineMsg?: pulumi.Input; } /** * The set of arguments for constructing a Alarm resource. */ export interface AlarmArgs { /** * Alert policy name */ alarmName: pulumi.Input; alarmNotifyGroups: pulumi.Input[]>; /** * Alert notification sending interval. When the alert is triggered continuously and reaches the specified TriggerPeriod limit, the log service sends alert notifications at the specified interval. Value range: 10–1440, unit: minutes. This parameter sets the sending interval for alert notifications across all channels. AlarmPeriod and AlarmPeriodDetail cannot both be empty. If both are specified, AlarmPeriodDetail takes precedence. */ alarmPeriod?: pulumi.Input; /** * Alert notification sending interval. When the alert is triggered continuously and reaches the specified TriggerPeriod, the logging service sends alert notifications according to the specified interval. Value range: 10–1440, in minutes. This parameter is used to set the sending interval for each channel. AlarmPeriod and AlarmPeriodDetail cannot both be empty. If both are specified, AlarmPeriodDetail takes precedence */ alarmPeriodDetail?: pulumi.Input; /** * Alert trigger conditions. Alert policies support referencing query analysis results using the $N.keyname expression. If you configure the TriggerConditions field, the Condition and Severity fields will be ignored. If you do not configure the TriggerConditions field, both Condition and Severity fields are required. */ condition?: pulumi.Input; joinConfigurations?: pulumi.Input[]>; /** * ID of the log project where the monitored log topic resides */ projectId: pulumi.Input; queryRequests: pulumi.Input[]>; /** * Monitoring task execution statement. */ requestCycle: pulumi.Input; /** * Enable alert policy. Default is true (enabled) */ sendResolved?: pulumi.Input; /** * Alert notification level, indicating the severity of the alert. Supported values: notice, warning, or critical. Default is notice */ severity?: pulumi.Input; /** * Enable alert policy. Default is true (enabled) */ status?: pulumi.Input; triggerConditions?: pulumi.Input[]>; /** * Duration period. An alert is triggered after the trigger condition is continuously met for TriggerPeriod cycles. Minimum value: 1, maximum value: 10, default is 1. */ triggerPeriod: pulumi.Input; /** * Customize alert notification content. You can insert content variables and functions. For details, see the documentation for content variables and content functions. To display this content in the actual alert notification, reference it in the content template using the NotifyMsg variable. */ userDefineMsg?: pulumi.Input; }