import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * If you need to monitor the data status of a cloud product resource, you can create a cloud monitoring alert policy. When the monitored resource data meets the alert trigger conditions, the system will send alert notifications using your specified method, helping you quickly identify resources with abnormal data. * * ## Import * * ```sh * $ pulumi import volcenginecc:cloudmonitor/rule:Rule example "rule_id" * ``` */ export declare class Rule extends pulumi.CustomResource { /** * Get an existing Rule 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?: RuleState, opts?: pulumi.CustomResourceOptions): Rule; /** * Returns true if the given object is an instance of Rule. 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 Rule; /** * Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback. */ readonly alertMethods: pulumi.Output; /** * Alert status. alerting: In alert; normal: Normal. */ readonly alertState: pulumi.Output; /** * 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: pulumi.Output; readonly conditions: pulumi.Output; /** * Alert notification group ID bound to the alert policy. */ readonly contactGroupIds: pulumi.Output; /** * Alert policy creation time, in timestamp format. */ readonly createdAt: pulumi.Output; /** * Alert policy description. */ readonly description: pulumi.Output; /** * Dimension configuration. */ readonly dimensionConditions: pulumi.Output; /** * Policy expiration time, in HH:MM format. */ readonly effectEndAt: pulumi.Output; /** * Policy start time, in HH:MM format. */ readonly effectStartAt: pulumi.Output; /** * Alert policy status. enable: enabled, disable: disabled */ readonly enableState: pulumi.Output; /** * Duration required to trigger an alert, in minutes. */ readonly evaluationCount: pulumi.Output; /** * Alert level. critical: critical, warning: warning, notice: notification */ readonly level: pulumi.Output; readonly levelConditions: pulumi.Output; /** * Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default). */ readonly multipleConditions: pulumi.Output; /** * Cloud product associated with the monitoring metric. For details, see Namespace for each product in Cloud Product Monitoring Metrics. */ readonly namespace: pulumi.Output; /** * No data alert. */ readonly noData: pulumi.Output; /** * Notification policy ID. */ readonly notificationId: pulumi.Output; readonly notifyTemplates: pulumi.Output; /** * Resource ID detected by the alert policy. */ readonly originalDimensions: pulumi.Output; /** * Project to which the alert policy belongs. */ readonly projectName: pulumi.Output; /** * Alert recovery notification. */ readonly recoveryNotify: pulumi.Output; /** * Availability zone ID of the cloud product. */ readonly regions: pulumi.Output; /** * Resource type detected by the alert policy. */ readonly resourceType: pulumi.Output; /** * Alarm policy ID. */ readonly ruleId: pulumi.Output; /** * Alert policy name. */ readonly ruleName: pulumi.Output; /** * Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag. */ readonly ruleType: pulumi.Output; /** * Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440. */ readonly silenceTime: pulumi.Output; /** * Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics. */ readonly subNamespace: pulumi.Output; readonly tags: pulumi.Output; /** * Alarm policy update time, in timestamp format. */ readonly updatedAt: pulumi.Output; /** * Alarm callback URL bound to the alarm policy. */ readonly webhook: pulumi.Output; /** * Alarm callback ID list when an alarm occurs. */ readonly webhookIds: pulumi.Output; /** * Create a Rule 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: RuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Rule resources. */ export interface RuleState { /** * Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback. */ alertMethods?: pulumi.Input[]>; /** * Alert status. alerting: In alert; normal: Normal. */ alertState?: pulumi.Input; /** * Multi-metric determination condition. &&: Alert is triggered only if all metrics meet the condition; ||: Alert is triggered if any metric meets the condition. */ conditionOperator?: pulumi.Input; conditions?: pulumi.Input[]>; /** * Alert notification group ID bound to the alert policy. */ contactGroupIds?: pulumi.Input[]>; /** * Alert policy creation time, in timestamp format. */ createdAt?: pulumi.Input; /** * Alert policy description. */ description?: pulumi.Input; /** * Dimension configuration. */ dimensionConditions?: pulumi.Input; /** * Policy expiration time, in HH:MM format. */ effectEndAt?: pulumi.Input; /** * Policy start time, in HH:MM format. */ effectStartAt?: pulumi.Input; /** * Alert policy status. enable: enabled, disable: disabled */ enableState?: pulumi.Input; /** * Duration required to trigger an alert, in minutes. */ evaluationCount?: pulumi.Input; /** * Alert level. critical: critical, warning: warning, notice: notification */ level?: pulumi.Input; levelConditions?: pulumi.Input[]>; /** * Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default). */ multipleConditions?: pulumi.Input; /** * Cloud product associated with the monitoring metric. For details, see Namespace for each product in Cloud Product Monitoring Metrics. */ namespace?: pulumi.Input; /** * No data alert. */ noData?: pulumi.Input; /** * Notification policy ID. */ notificationId?: pulumi.Input; notifyTemplates?: pulumi.Input[]>; /** * Resource ID detected by the alert policy. */ originalDimensions?: pulumi.Input; /** * Project to which the alert policy belongs. */ projectName?: pulumi.Input; /** * Alert recovery notification. */ recoveryNotify?: pulumi.Input; /** * Availability zone ID of the cloud product. */ regions?: pulumi.Input[]>; /** * Resource type detected by the alert policy. */ resourceType?: pulumi.Input; /** * Alarm policy ID. */ ruleId?: pulumi.Input; /** * Alert policy name. */ ruleName?: pulumi.Input; /** * Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag. */ ruleType?: pulumi.Input; /** * Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440. */ silenceTime?: pulumi.Input; /** * Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics. */ subNamespace?: pulumi.Input; tags?: pulumi.Input[]>; /** * Alarm policy update time, in timestamp format. */ updatedAt?: pulumi.Input; /** * Alarm callback URL bound to the alarm policy. */ webhook?: pulumi.Input; /** * Alarm callback ID list when an alarm occurs. */ webhookIds?: pulumi.Input[]>; } /** * The set of arguments for constructing a Rule resource. */ export interface RuleArgs { /** * Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback. */ alertMethods?: pulumi.Input[]>; /** * Multi-metric determination condition. &&: Alert is triggered only if all metrics meet the condition; ||: Alert is triggered if any metric meets the condition. */ conditionOperator?: pulumi.Input; conditions?: pulumi.Input[]>; /** * Alert notification group ID bound to the alert policy. */ contactGroupIds?: pulumi.Input[]>; /** * Alert policy description. */ description?: pulumi.Input; /** * Dimension configuration. */ dimensionConditions?: pulumi.Input; /** * Policy expiration time, in HH:MM format. */ effectEndAt: pulumi.Input; /** * Policy start time, in HH:MM format. */ effectStartAt: pulumi.Input; /** * Alert policy status. enable: enabled, disable: disabled */ enableState: pulumi.Input; /** * Duration required to trigger an alert, in minutes. */ evaluationCount: pulumi.Input; /** * Alert level. critical: critical, warning: warning, notice: notification */ level: pulumi.Input; levelConditions?: pulumi.Input[]>; /** * Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default). */ multipleConditions?: pulumi.Input; /** * Cloud product associated with the monitoring metric. For details, see Namespace for each product in Cloud Product Monitoring Metrics. */ namespace: pulumi.Input; /** * No data alert. */ noData?: pulumi.Input; /** * Notification policy ID. */ notificationId?: pulumi.Input; notifyTemplates?: pulumi.Input[]>; /** * Resource ID detected by the alert policy. */ originalDimensions?: pulumi.Input; /** * Project to which the alert policy belongs. */ projectName?: pulumi.Input; /** * Alert recovery notification. */ recoveryNotify?: pulumi.Input; /** * Availability zone ID of the cloud product. */ regions?: pulumi.Input[]>; /** * Alert policy name. */ ruleName: pulumi.Input; /** * Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag. */ ruleType: pulumi.Input; /** * Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440. */ silenceTime: pulumi.Input; /** * Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics. */ subNamespace: pulumi.Input; tags?: pulumi.Input[]>; /** * Alarm callback URL bound to the alarm policy. */ webhook?: pulumi.Input; /** * Alarm callback ID list when an alarm occurs. */ webhookIds?: pulumi.Input[]>; }