import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Data Source schema for Volcengine::CloudMonitor::Rule */ export declare function getRule(args: GetRuleArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getRule. */ export interface GetRuleArgs { /** * Uniquely identifies the resource. */ id: string; } /** * A collection of values returned by getRule. */ export interface GetRuleResult { /** * Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback. */ readonly alertMethods: string[]; /** * Alert status. alerting: In alert; normal: Normal. */ readonly alertState: string; /** * Multi-metric determination condition. &&: Alert is triggered only if all metrics meet the condition; ||: Alert is triggered if any metric meets the condition. */ readonly conditionOperator: string; /** * Alert conditions. Array format; supports multiple metric evaluation statements, up to 10. */ readonly conditions: outputs.cloudmonitor.GetRuleCondition[]; /** * Alert notification group ID bound to the alert policy. */ readonly contactGroupIds: string[]; /** * Alert policy creation time, in timestamp format. */ readonly createdAt: string; /** * Alert policy description. */ readonly description: string; /** * Dimension configuration. */ readonly dimensionConditions: outputs.cloudmonitor.GetRuleDimensionConditions; /** * Policy expiration time, in HH:MM format. */ readonly effectEndAt: string; /** * Policy start time, in HH:MM format. */ readonly effectStartAt: string; /** * Alert policy status. enable: enabled, disable: disabled */ readonly enableState: string; /** * Duration required to trigger an alert, in minutes. */ readonly evaluationCount: number; /** * Uniquely identifies the resource. */ readonly id: string; /** * Alert level. critical: critical, warning: warning, notice: notification */ readonly level: string; /** * Alert severity configuration. */ readonly levelConditions: outputs.cloudmonitor.GetRuleLevelCondition[]; /** * Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default). */ readonly multipleConditions: boolean; /** * Cloud product associated with the monitoring metric. For details, see Namespace for each product in Cloud Product Monitoring Metrics. */ readonly namespace: string; /** * No data alert. */ readonly noData: outputs.cloudmonitor.GetRuleNoData; /** * Notification policy ID. */ readonly notificationId: string; /** * Notification template configuration. */ readonly notifyTemplates: outputs.cloudmonitor.GetRuleNotifyTemplate[]; /** * Resource ID detected by the alert policy. */ readonly originalDimensions: outputs.cloudmonitor.GetRuleOriginalDimensions; /** * Project to which the alert policy belongs. */ readonly projectName: string; /** * Alert recovery notification. */ readonly recoveryNotify: outputs.cloudmonitor.GetRuleRecoveryNotify; /** * Availability zone ID of the cloud product. */ readonly regions: string[]; /** * Resource type detected by the alert policy. */ readonly resourceType: string; /** * Alarm policy ID. */ readonly ruleId: string; /** * Alert policy name. */ readonly ruleName: string; /** * Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag. */ readonly ruleType: string; /** * Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440. */ readonly silenceTime: number; /** * Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics. */ readonly subNamespace: string; /** * Bind alert policy to Tag. */ readonly tags: outputs.cloudmonitor.GetRuleTag[]; /** * Alarm policy update time, in timestamp format. */ readonly updatedAt: string; /** * Alarm callback URL bound to the alarm policy. */ readonly webhook: string; /** * Alarm callback ID list when an alarm occurs. */ readonly webhookIds: string[]; } /** * Data Source schema for Volcengine::CloudMonitor::Rule */ export declare function getRuleOutput(args: GetRuleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getRule. */ export interface GetRuleOutputArgs { /** * Uniquely identifies the resource. */ id: pulumi.Input; }