import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * VMP alert rule configuration * * ## Import * * ```sh * $ pulumi import volcenginecc:vmp/alertingRule:AlertingRule example "alerting_rule_id" * ``` */ export declare class AlertingRule extends pulumi.CustomResource { /** * Get an existing AlertingRule 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?: AlertingRuleState, opts?: pulumi.CustomResourceOptions): AlertingRule; /** * Returns true if the given object is an instance of AlertingRule. 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 AlertingRule; /** * Alert rule ID */ readonly alertingRuleId: pulumi.Output; readonly annotations: pulumi.Output; /** * Alert rule creation time */ readonly createTime: pulumi.Output; /** * Alert rule description */ readonly description: pulumi.Output; readonly labels: pulumi.Output; readonly levels: pulumi.Output; /** * Alert rule name */ readonly name: pulumi.Output; /** * Alert aggregation policy ID */ readonly notifyGroupPolicyId: pulumi.Output; /** * Alert notification policy ID */ readonly notifyPolicyId: pulumi.Output; /** * Alert configuration */ readonly query: pulumi.Output; /** * Alert rule status: Running (monitoring), Disabled (disabled) */ readonly status: pulumi.Output; readonly tags: pulumi.Output; /** * Alert rule type. Allowed values: vmp/PromQL */ readonly type: pulumi.Output; /** * Alert rule update time */ readonly updateTime: pulumi.Output; /** * Create a AlertingRule 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: AlertingRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AlertingRule resources. */ export interface AlertingRuleState { /** * Alert rule ID */ alertingRuleId?: pulumi.Input; annotations?: pulumi.Input[]>; /** * Alert rule creation time */ createTime?: pulumi.Input; /** * Alert rule description */ description?: pulumi.Input; labels?: pulumi.Input[]>; levels?: pulumi.Input[]>; /** * Alert rule name */ name?: pulumi.Input; /** * Alert aggregation policy ID */ notifyGroupPolicyId?: pulumi.Input; /** * Alert notification policy ID */ notifyPolicyId?: pulumi.Input; /** * Alert configuration */ query?: pulumi.Input; /** * Alert rule status: Running (monitoring), Disabled (disabled) */ status?: pulumi.Input; tags?: pulumi.Input[]>; /** * Alert rule type. Allowed values: vmp/PromQL */ type?: pulumi.Input; /** * Alert rule update time */ updateTime?: pulumi.Input; } /** * The set of arguments for constructing a AlertingRule resource. */ export interface AlertingRuleArgs { annotations?: pulumi.Input[]>; /** * Alert rule description */ description?: pulumi.Input; labels?: pulumi.Input[]>; levels?: pulumi.Input[]>; /** * Alert rule name */ name: pulumi.Input; /** * Alert aggregation policy ID */ notifyGroupPolicyId?: pulumi.Input; /** * Alert notification policy ID */ notifyPolicyId?: pulumi.Input; /** * Alert configuration */ query?: pulumi.Input; /** * Alert rule status: Running (monitoring), Disabled (disabled) */ status?: pulumi.Input; tags?: pulumi.Input[]>; /** * Alert rule type. Allowed values: vmp/PromQL */ type: pulumi.Input; }