import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Data Source schema for Volcengine::TLS::Alarm */ export declare function getAlarm(args: GetAlarmArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getAlarm. */ export interface GetAlarmArgs { /** * Uniquely identifies the resource. */ id: string; } /** * A collection of values returned by getAlarm. */ export interface GetAlarmResult { /** * Alert policy ID. */ readonly alarmId: string; /** * Alert policy name */ readonly alarmName: string; /** * List of notification groups corresponding to the alert. */ readonly alarmNotifyGroups: outputs.tls.GetAlarmAlarmNotifyGroup[]; /** * 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: number; /** * 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: outputs.tls.GetAlarmAlarmPeriodDetail; /** * 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: string; /** * Alert policy creation time */ readonly createTime: string; /** * Uniquely identifies the resource. */ readonly id: string; /** * Configuration for set operations on alert query analysis results. Log Service treats each query analysis result as a set and determines whether to trigger an alert based on the set result. When multiple execution statements (QueryRequest) are configured, multi-set association monitoring is supported. Supported set operations include Cartesian product, left join, and right join. */ readonly joinConfigurations: outputs.tls.GetAlarmJoinConfiguration[]; /** * Last modified time of the alert policy. */ readonly modifyTime: string; /** * ID of the log project where the monitored log topic resides */ readonly projectId: string; /** * Monitoring task execution statement. */ readonly queryRequests: outputs.tls.GetAlarmQueryRequest[]; /** * Monitoring task execution statement. */ readonly requestCycle: outputs.tls.GetAlarmRequestCycle; /** * Enable alert policy. Default is true (enabled) */ readonly sendResolved: boolean; /** * Alert notification level, indicating the severity of the alert. Supported values: notice, warning, or critical. Default is notice */ readonly severity: string; /** * Enable alert policy. Default is true (enabled) */ readonly status: boolean; /** * Alert trigger condition list. You can configure up to 10 alert trigger conditions. If you configure the TriggerConditions field, the Condition and Severity fields will be ignored. If you do not configure the TriggerConditions field, the Condition and Severity fields are required */ readonly triggerConditions: outputs.tls.GetAlarmTriggerCondition[]; /** * 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: number; /** * 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: string; } /** * Data Source schema for Volcengine::TLS::Alarm */ export declare function getAlarmOutput(args: GetAlarmOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getAlarm. */ export interface GetAlarmOutputArgs { /** * Uniquely identifies the resource. */ id: pulumi.Input; }