Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.19.0 published on Friday, Mar 18, 2022 by Pulumi

Alarm

This resource provides a alarm rule resource and it can be used to monitor several cloud services according different metrics. Details for alarm rule.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var basic = new AliCloud.Cms.Alarm("basic", new AliCloud.Cms.AlarmArgs
        {
            ContactGroups = 
            {
                "test-group",
            },
            Dimensions = 
            {
                { "device", "/dev/vda1,/dev/vdb1" },
                { "instanceId", "i-bp1247,i-bp11gd" },
            },
            EffectiveInterval = "0:00-2:00",
            EscalationsCritical = new AliCloud.Cms.Inputs.AlarmEscalationsCriticalArgs
            {
                ComparisonOperator = "<=",
                Statistics = "Average",
                Threshold = "35",
                Times = 2,
            },
            Metric = "disk_writebytes",
            Period = 900,
            Project = "acs_ecs_dashboard",
            Webhook = $"https://{data.Alicloud_account.Current.Id}.eu-central-1.fc.aliyuncs.com/2016-08-15/proxy/Terraform/AlarmEndpointMock/",
        });
    }

}
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cms"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cms.NewAlarm(ctx, "basic", &cms.AlarmArgs{
			ContactGroups: pulumi.StringArray{
				pulumi.String("test-group"),
			},
			Dimensions: pulumi.AnyMap{
				"device":     pulumi.Any("/dev/vda1,/dev/vdb1"),
				"instanceId": pulumi.Any("i-bp1247,i-bp11gd"),
			},
			EffectiveInterval: pulumi.String("0:00-2:00"),
			EscalationsCritical: &cms.AlarmEscalationsCriticalArgs{
				ComparisonOperator: pulumi.String("<="),
				Statistics:         pulumi.String("Average"),
				Threshold:          pulumi.String("35"),
				Times:              pulumi.Int(2),
			},
			Metric:  pulumi.String("disk_writebytes"),
			Period:  pulumi.Int(900),
			Project: pulumi.String("acs_ecs_dashboard"),
			Webhook: pulumi.String(fmt.Sprintf("%v%v%v", "https://", data.Alicloud_account.Current.Id, ".eu-central-1.fc.aliyuncs.com/2016-08-15/proxy/Terraform/AlarmEndpointMock/")),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

basic = alicloud.cms.Alarm("basic",
    contact_groups=["test-group"],
    dimensions={
        "device": "/dev/vda1,/dev/vdb1",
        "instanceId": "i-bp1247,i-bp11gd",
    },
    effective_interval="0:00-2:00",
    escalations_critical=alicloud.cms.AlarmEscalationsCriticalArgs(
        comparison_operator="<=",
        statistics="Average",
        threshold="35",
        times=2,
    ),
    metric="disk_writebytes",
    period=900,
    project="acs_ecs_dashboard",
    webhook=f"https://{data['alicloud_account']['current']['id']}.eu-central-1.fc.aliyuncs.com/2016-08-15/proxy/Terraform/AlarmEndpointMock/")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const basic = new alicloud.cms.Alarm("basic", {
    contactGroups: ["test-group"],
    dimensions: {
        device: "/dev/vda1,/dev/vdb1",
        instanceId: "i-bp1247,i-bp11gd",
    },
    effectiveInterval: "0:00-2:00",
    escalationsCritical: {
        comparisonOperator: "<=",
        statistics: "Average",
        threshold: "35",
        times: 2,
    },
    metric: "disk_writebytes",
    period: 900,
    project: "acs_ecs_dashboard",
    webhook: pulumi.interpolate`https://${alicloud_account_current.id}.eu-central-1.fc.aliyuncs.com/2016-08-15/proxy/Terraform/AlarmEndpointMock/`,
});

Coming soon!

Create a Alarm Resource

new Alarm(name: string, args: AlarmArgs, opts?: CustomResourceOptions);
@overload
def Alarm(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          contact_groups: Optional[Sequence[str]] = None,
          dimensions: Optional[Mapping[str, Any]] = None,
          effective_interval: Optional[str] = None,
          enabled: Optional[bool] = None,
          end_time: Optional[int] = None,
          escalations_critical: Optional[AlarmEscalationsCriticalArgs] = None,
          escalations_info: Optional[AlarmEscalationsInfoArgs] = None,
          escalations_warn: Optional[AlarmEscalationsWarnArgs] = None,
          metric: Optional[str] = None,
          name: Optional[str] = None,
          operator: Optional[str] = None,
          period: Optional[int] = None,
          project: Optional[str] = None,
          silence_time: Optional[int] = None,
          start_time: Optional[int] = None,
          statistics: Optional[str] = None,
          threshold: Optional[str] = None,
          triggered_count: Optional[int] = None,
          webhook: Optional[str] = None)
@overload
def Alarm(resource_name: str,
          args: AlarmArgs,
          opts: Optional[ResourceOptions] = None)
func NewAlarm(ctx *Context, name string, args AlarmArgs, opts ...ResourceOption) (*Alarm, error)
public Alarm(string name, AlarmArgs args, CustomResourceOptions? opts = null)
public Alarm(String name, AlarmArgs args)
public Alarm(String name, AlarmArgs args, CustomResourceOptions options)
type: alicloud:cms:Alarm
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AlarmArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args AlarmArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args AlarmArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AlarmArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AlarmArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Alarm Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Alarm resource accepts the following input properties:

ContactGroups List<string>

List contact groups of the alarm rule, which must have been created on the console.

Dimensions Dictionary<string, object>

Map of the resources associated with the alarm rule, such as "instanceId", "device" and "port". Each key's value is a string and it uses comma to split multiple items. For more information, see Metrics Reference.

Metric string

Name of the monitoring metrics corresponding to a project, such as "CPUUtilization" and "networkin_rate". For more information, see Metrics Reference.

Project string

Monitor project name, such as "acs_ecs_dashboard" and "acs_rds_dashboard". For more information, see Metrics Reference.

EffectiveInterval string

The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default to "00:00-23:59".

Enabled bool

Whether to enable alarm rule. Default to true.

EndTime int

It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.

Deprecated:

Field 'end_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.

EscalationsCritical Pulumi.AliCloud.Cms.Inputs.AlarmEscalationsCriticalArgs

A configuration of critical alarm (documented below).

EscalationsInfo Pulumi.AliCloud.Cms.Inputs.AlarmEscalationsInfoArgs

A configuration of critical info (documented below).

EscalationsWarn Pulumi.AliCloud.Cms.Inputs.AlarmEscalationsWarnArgs

A configuration of critical warn (documented below).

Name string

The alarm rule name.

Operator string

It has been deprecated from provider version 1.94.0 and 'escalations_critical.comparison_operator' instead.

Deprecated:

Field 'operator' has been deprecated from provider version 1.94.0. New field 'escalations_critical.comparison_operator' instead.

Period int

Index query cycle, which must be consistent with that defined for metrics. Default to 300, in seconds.

SilenceTime int

Notification silence period in the alarm state, in seconds. Valid value range: [300, 86400]. Default to 86400

StartTime int

It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.

Deprecated:

Field 'start_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.

Statistics string

Critical level alarm statistics method. It must be consistent with that defined for metrics. Valid values: ["Average", "Minimum", "Maximum", "Value", "ErrorCodeMaximum", "Sum", "Count"]. Default to "Average".

Deprecated:

Field 'statistics' has been deprecated from provider version 1.94.0. New field 'escalations_critical.statistics' instead.

Threshold string

Critical level alarm threshold value, which must be a numeric value currently.

Deprecated:

Field 'threshold' has been deprecated from provider version 1.94.0. New field 'escalations_critical.threshold' instead.

TriggeredCount int

It has been deprecated from provider version 1.94.0 and 'escalations_critical.times' instead.

Deprecated:

Field 'triggered_count' has been deprecated from provider version 1.94.0. New field 'escalations_critical.times' instead.

Webhook string

The webhook that should be called when the alarm is triggered. Currently, only http protocol is supported. Default is empty string.

ContactGroups []string

List contact groups of the alarm rule, which must have been created on the console.

Dimensions map[string]interface{}

Map of the resources associated with the alarm rule, such as "instanceId", "device" and "port". Each key's value is a string and it uses comma to split multiple items. For more information, see Metrics Reference.

Metric string

Name of the monitoring metrics corresponding to a project, such as "CPUUtilization" and "networkin_rate". For more information, see Metrics Reference.

Project string

Monitor project name, such as "acs_ecs_dashboard" and "acs_rds_dashboard". For more information, see Metrics Reference.

EffectiveInterval string

The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default to "00:00-23:59".

Enabled bool

Whether to enable alarm rule. Default to true.

EndTime int

It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.

Deprecated:

Field 'end_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.

EscalationsCritical AlarmEscalationsCriticalArgs

A configuration of critical alarm (documented below).

EscalationsInfo AlarmEscalationsInfoArgs

A configuration of critical info (documented below).

EscalationsWarn AlarmEscalationsWarnArgs

A configuration of critical warn (documented below).

Name string

The alarm rule name.

Operator string

It has been deprecated from provider version 1.94.0 and 'escalations_critical.comparison_operator' instead.

Deprecated:

Field 'operator' has been deprecated from provider version 1.94.0. New field 'escalations_critical.comparison_operator' instead.

Period int

Index query cycle, which must be consistent with that defined for metrics. Default to 300, in seconds.

SilenceTime int

Notification silence period in the alarm state, in seconds. Valid value range: [300, 86400]. Default to 86400

StartTime int

It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.

Deprecated:

Field 'start_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.

Statistics string

Critical level alarm statistics method. It must be consistent with that defined for metrics. Valid values: ["Average", "Minimum", "Maximum", "Value", "ErrorCodeMaximum", "Sum", "Count"]. Default to "Average".

Deprecated:

Field 'statistics' has been deprecated from provider version 1.94.0. New field 'escalations_critical.statistics' instead.

Threshold string

Critical level alarm threshold value, which must be a numeric value currently.

Deprecated:

Field 'threshold' has been deprecated from provider version 1.94.0. New field 'escalations_critical.threshold' instead.

TriggeredCount int

It has been deprecated from provider version 1.94.0 and 'escalations_critical.times' instead.

Deprecated:

Field 'triggered_count' has been deprecated from provider version 1.94.0. New field 'escalations_critical.times' instead.

Webhook string

The webhook that should be called when the alarm is triggered. Currently, only http protocol is supported. Default is empty string.

contactGroups List

List contact groups of the alarm rule, which must have been created on the console.

dimensions Map

Map of the resources associated with the alarm rule, such as "instanceId", "device" and "port". Each key's value is a string and it uses comma to split multiple items. For more information, see Metrics Reference.

metric String

Name of the monitoring metrics corresponding to a project, such as "CPUUtilization" and "networkin_rate". For more information, see Metrics Reference.

project String

Monitor project name, such as "acs_ecs_dashboard" and "acs_rds_dashboard". For more information, see Metrics Reference.

effectiveInterval String

The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default to "00:00-23:59".

enabled Boolean

Whether to enable alarm rule. Default to true.

endTime Integer

It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.

Deprecated:

Field 'end_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.

escalationsCritical AlarmEscalationsCriticalArgs

A configuration of critical alarm (documented below).

escalationsInfo AlarmEscalationsInfoArgs

A configuration of critical info (documented below).

escalationsWarn AlarmEscalationsWarnArgs

A configuration of critical warn (documented below).

name String

The alarm rule name.

operator String

It has been deprecated from provider version 1.94.0 and 'escalations_critical.comparison_operator' instead.

Deprecated:

Field 'operator' has been deprecated from provider version 1.94.0. New field 'escalations_critical.comparison_operator' instead.

period Integer

Index query cycle, which must be consistent with that defined for metrics. Default to 300, in seconds.

silenceTime Integer

Notification silence period in the alarm state, in seconds. Valid value range: [300, 86400]. Default to 86400

startTime Integer

It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.

Deprecated:

Field 'start_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.

statistics String

Critical level alarm statistics method. It must be consistent with that defined for metrics. Valid values: ["Average", "Minimum", "Maximum", "Value", "ErrorCodeMaximum", "Sum", "Count"]. Default to "Average".

Deprecated:

Field 'statistics' has been deprecated from provider version 1.94.0. New field 'escalations_critical.statistics' instead.

threshold String

Critical level alarm threshold value, which must be a numeric value currently.

Deprecated:

Field 'threshold' has been deprecated from provider version 1.94.0. New field 'escalations_critical.threshold' instead.

triggeredCount Integer

It has been deprecated from provider version 1.94.0 and 'escalations_critical.times' instead.

Deprecated:

Field 'triggered_count' has been deprecated from provider version 1.94.0. New field 'escalations_critical.times' instead.

webhook String

The webhook that should be called when the alarm is triggered. Currently, only http protocol is supported. Default is empty string.

contactGroups string[]

List contact groups of the alarm rule, which must have been created on the console.

dimensions {[key: string]: any}

Map of the resources associated with the alarm rule, such as "instanceId", "device" and "port". Each key's value is a string and it uses comma to split multiple items. For more information, see Metrics Reference.

metric string

Name of the monitoring metrics corresponding to a project, such as "CPUUtilization" and "networkin_rate". For more information, see Metrics Reference.

project string

Monitor project name, such as "acs_ecs_dashboard" and "acs_rds_dashboard". For more information, see Metrics Reference.

effectiveInterval string

The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default to "00:00-23:59".

enabled boolean

Whether to enable alarm rule. Default to true.

endTime number

It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.

Deprecated:

Field 'end_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.

escalationsCritical AlarmEscalationsCriticalArgs

A configuration of critical alarm (documented below).

escalationsInfo AlarmEscalationsInfoArgs

A configuration of critical info (documented below).

escalationsWarn AlarmEscalationsWarnArgs

A configuration of critical warn (documented below).

name string

The alarm rule name.

operator string

It has been deprecated from provider version 1.94.0 and 'escalations_critical.comparison_operator' instead.

Deprecated:

Field 'operator' has been deprecated from provider version 1.94.0. New field 'escalations_critical.comparison_operator' instead.

period number

Index query cycle, which must be consistent with that defined for metrics. Default to 300, in seconds.

silenceTime number

Notification silence period in the alarm state, in seconds. Valid value range: [300, 86400]. Default to 86400

startTime number

It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.

Deprecated:

Field 'start_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.

statistics string

Critical level alarm statistics method. It must be consistent with that defined for metrics. Valid values: ["Average", "Minimum", "Maximum", "Value", "ErrorCodeMaximum", "Sum", "Count"]. Default to "Average".

Deprecated:

Field 'statistics' has been deprecated from provider version 1.94.0. New field 'escalations_critical.statistics' instead.

threshold string

Critical level alarm threshold value, which must be a numeric value currently.

Deprecated:

Field 'threshold' has been deprecated from provider version 1.94.0. New field 'escalations_critical.threshold' instead.

triggeredCount number

It has been deprecated from provider version 1.94.0 and 'escalations_critical.times' instead.

Deprecated:

Field 'triggered_count' has been deprecated from provider version 1.94.0. New field 'escalations_critical.times' instead.

webhook string

The webhook that should be called when the alarm is triggered. Currently, only http protocol is supported. Default is empty string.

contact_groups Sequence[str]

List contact groups of the alarm rule, which must have been created on the console.

dimensions Mapping[str, Any]

Map of the resources associated with the alarm rule, such as "instanceId", "device" and "port". Each key's value is a string and it uses comma to split multiple items. For more information, see Metrics Reference.

metric str

Name of the monitoring metrics corresponding to a project, such as "CPUUtilization" and "networkin_rate". For more information, see Metrics Reference.

project str

Monitor project name, such as "acs_ecs_dashboard" and "acs_rds_dashboard". For more information, see Metrics Reference.

effective_interval str

The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default to "00:00-23:59".

enabled bool

Whether to enable alarm rule. Default to true.

end_time int

It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.

Deprecated:

Field 'end_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.

escalations_critical AlarmEscalationsCriticalArgs

A configuration of critical alarm (documented below).

escalations_info AlarmEscalationsInfoArgs

A configuration of critical info (documented below).

escalations_warn AlarmEscalationsWarnArgs

A configuration of critical warn (documented below).

name str

The alarm rule name.

operator str

It has been deprecated from provider version 1.94.0 and 'escalations_critical.comparison_operator' instead.

Deprecated:

Field 'operator' has been deprecated from provider version 1.94.0. New field 'escalations_critical.comparison_operator' instead.

period int

Index query cycle, which must be consistent with that defined for metrics. Default to 300, in seconds.

silence_time int

Notification silence period in the alarm state, in seconds. Valid value range: [300, 86400]. Default to 86400

start_time int

It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.

Deprecated:

Field 'start_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.

statistics str

Critical level alarm statistics method. It must be consistent with that defined for metrics. Valid values: ["Average", "Minimum", "Maximum", "Value", "ErrorCodeMaximum", "Sum", "Count"]. Default to "Average".

Deprecated:

Field 'statistics' has been deprecated from provider version 1.94.0. New field 'escalations_critical.statistics' instead.

threshold str

Critical level alarm threshold value, which must be a numeric value currently.

Deprecated:

Field 'threshold' has been deprecated from provider version 1.94.0. New field 'escalations_critical.threshold' instead.

triggered_count int

It has been deprecated from provider version 1.94.0 and 'escalations_critical.times' instead.

Deprecated:

Field 'triggered_count' has been deprecated from provider version 1.94.0. New field 'escalations_critical.times' instead.

webhook str

The webhook that should be called when the alarm is triggered. Currently, only http protocol is supported. Default is empty string.

contactGroups List

List contact groups of the alarm rule, which must have been created on the console.

dimensions Map

Map of the resources associated with the alarm rule, such as "instanceId", "device" and "port". Each key's value is a string and it uses comma to split multiple items. For more information, see Metrics Reference.

metric String

Name of the monitoring metrics corresponding to a project, such as "CPUUtilization" and "networkin_rate". For more information, see Metrics Reference.

project String

Monitor project name, such as "acs_ecs_dashboard" and "acs_rds_dashboard". For more information, see Metrics Reference.

effectiveInterval String

The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default to "00:00-23:59".

enabled Boolean

Whether to enable alarm rule. Default to true.

endTime Number

It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.

Deprecated:

Field 'end_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.

escalationsCritical Property Map

A configuration of critical alarm (documented below).

escalationsInfo Property Map

A configuration of critical info (documented below).

escalationsWarn Property Map

A configuration of critical warn (documented below).

name String

The alarm rule name.

operator String

It has been deprecated from provider version 1.94.0 and 'escalations_critical.comparison_operator' instead.

Deprecated:

Field 'operator' has been deprecated from provider version 1.94.0. New field 'escalations_critical.comparison_operator' instead.

period Number

Index query cycle, which must be consistent with that defined for metrics. Default to 300, in seconds.

silenceTime Number

Notification silence period in the alarm state, in seconds. Valid value range: [300, 86400]. Default to 86400

startTime Number

It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.

Deprecated:

Field 'start_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.

statistics String

Critical level alarm statistics method. It must be consistent with that defined for metrics. Valid values: ["Average", "Minimum", "Maximum", "Value", "ErrorCodeMaximum", "Sum", "Count"]. Default to "Average".

Deprecated:

Field 'statistics' has been deprecated from provider version 1.94.0. New field 'escalations_critical.statistics' instead.

threshold String

Critical level alarm threshold value, which must be a numeric value currently.

Deprecated:

Field 'threshold' has been deprecated from provider version 1.94.0. New field 'escalations_critical.threshold' instead.

triggeredCount Number

It has been deprecated from provider version 1.94.0 and 'escalations_critical.times' instead.

Deprecated:

Field 'triggered_count' has been deprecated from provider version 1.94.0. New field 'escalations_critical.times' instead.

webhook String

The webhook that should be called when the alarm is triggered. Currently, only http protocol is supported. Default is empty string.

Outputs

All input properties are implicitly available as output properties. Additionally, the Alarm resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Status string

The current alarm rule status.

Id string

The provider-assigned unique ID for this managed resource.

Status string

The current alarm rule status.

id String

The provider-assigned unique ID for this managed resource.

status String

The current alarm rule status.

id string

The provider-assigned unique ID for this managed resource.

status string

The current alarm rule status.

id str

The provider-assigned unique ID for this managed resource.

status str

The current alarm rule status.

id String

The provider-assigned unique ID for this managed resource.

status String

The current alarm rule status.

Look up an Existing Alarm Resource

Get an existing Alarm resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AlarmState, opts?: CustomResourceOptions): Alarm
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        contact_groups: Optional[Sequence[str]] = None,
        dimensions: Optional[Mapping[str, Any]] = None,
        effective_interval: Optional[str] = None,
        enabled: Optional[bool] = None,
        end_time: Optional[int] = None,
        escalations_critical: Optional[AlarmEscalationsCriticalArgs] = None,
        escalations_info: Optional[AlarmEscalationsInfoArgs] = None,
        escalations_warn: Optional[AlarmEscalationsWarnArgs] = None,
        metric: Optional[str] = None,
        name: Optional[str] = None,
        operator: Optional[str] = None,
        period: Optional[int] = None,
        project: Optional[str] = None,
        silence_time: Optional[int] = None,
        start_time: Optional[int] = None,
        statistics: Optional[str] = None,
        status: Optional[str] = None,
        threshold: Optional[str] = None,
        triggered_count: Optional[int] = None,
        webhook: Optional[str] = None) -> Alarm
func GetAlarm(ctx *Context, name string, id IDInput, state *AlarmState, opts ...ResourceOption) (*Alarm, error)
public static Alarm Get(string name, Input<string> id, AlarmState? state, CustomResourceOptions? opts = null)
public static Alarm get(String name, Output<String> id, AlarmState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
ContactGroups List<string>

List contact groups of the alarm rule, which must have been created on the console.

Dimensions Dictionary<string, object>

Map of the resources associated with the alarm rule, such as "instanceId", "device" and "port". Each key's value is a string and it uses comma to split multiple items. For more information, see Metrics Reference.

EffectiveInterval string

The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default to "00:00-23:59".

Enabled bool

Whether to enable alarm rule. Default to true.

EndTime int

It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.

Deprecated:

Field 'end_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.

EscalationsCritical Pulumi.AliCloud.Cms.Inputs.AlarmEscalationsCriticalArgs

A configuration of critical alarm (documented below).

EscalationsInfo Pulumi.AliCloud.Cms.Inputs.AlarmEscalationsInfoArgs

A configuration of critical info (documented below).

EscalationsWarn Pulumi.AliCloud.Cms.Inputs.AlarmEscalationsWarnArgs

A configuration of critical warn (documented below).

Metric string

Name of the monitoring metrics corresponding to a project, such as "CPUUtilization" and "networkin_rate". For more information, see Metrics Reference.

Name string

The alarm rule name.

Operator string

It has been deprecated from provider version 1.94.0 and 'escalations_critical.comparison_operator' instead.

Deprecated:

Field 'operator' has been deprecated from provider version 1.94.0. New field 'escalations_critical.comparison_operator' instead.

Period int

Index query cycle, which must be consistent with that defined for metrics. Default to 300, in seconds.

Project string

Monitor project name, such as "acs_ecs_dashboard" and "acs_rds_dashboard". For more information, see Metrics Reference.

SilenceTime int

Notification silence period in the alarm state, in seconds. Valid value range: [300, 86400]. Default to 86400

StartTime int

It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.

Deprecated:

Field 'start_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.

Statistics string

Critical level alarm statistics method. It must be consistent with that defined for metrics. Valid values: ["Average", "Minimum", "Maximum", "Value", "ErrorCodeMaximum", "Sum", "Count"]. Default to "Average".

Deprecated:

Field 'statistics' has been deprecated from provider version 1.94.0. New field 'escalations_critical.statistics' instead.

Status string

The current alarm rule status.

Threshold string

Critical level alarm threshold value, which must be a numeric value currently.

Deprecated:

Field 'threshold' has been deprecated from provider version 1.94.0. New field 'escalations_critical.threshold' instead.

TriggeredCount int

It has been deprecated from provider version 1.94.0 and 'escalations_critical.times' instead.

Deprecated:

Field 'triggered_count' has been deprecated from provider version 1.94.0. New field 'escalations_critical.times' instead.

Webhook string

The webhook that should be called when the alarm is triggered. Currently, only http protocol is supported. Default is empty string.

ContactGroups []string

List contact groups of the alarm rule, which must have been created on the console.

Dimensions map[string]interface{}

Map of the resources associated with the alarm rule, such as "instanceId", "device" and "port". Each key's value is a string and it uses comma to split multiple items. For more information, see Metrics Reference.

EffectiveInterval string

The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default to "00:00-23:59".

Enabled bool

Whether to enable alarm rule. Default to true.

EndTime int

It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.

Deprecated:

Field 'end_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.

EscalationsCritical AlarmEscalationsCriticalArgs

A configuration of critical alarm (documented below).

EscalationsInfo AlarmEscalationsInfoArgs

A configuration of critical info (documented below).

EscalationsWarn AlarmEscalationsWarnArgs

A configuration of critical warn (documented below).

Metric string

Name of the monitoring metrics corresponding to a project, such as "CPUUtilization" and "networkin_rate". For more information, see Metrics Reference.

Name string

The alarm rule name.

Operator string

It has been deprecated from provider version 1.94.0 and 'escalations_critical.comparison_operator' instead.

Deprecated:

Field 'operator' has been deprecated from provider version 1.94.0. New field 'escalations_critical.comparison_operator' instead.

Period int

Index query cycle, which must be consistent with that defined for metrics. Default to 300, in seconds.

Project string

Monitor project name, such as "acs_ecs_dashboard" and "acs_rds_dashboard". For more information, see Metrics Reference.

SilenceTime int

Notification silence period in the alarm state, in seconds. Valid value range: [300, 86400]. Default to 86400

StartTime int

It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.

Deprecated:

Field 'start_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.

Statistics string

Critical level alarm statistics method. It must be consistent with that defined for metrics. Valid values: ["Average", "Minimum", "Maximum", "Value", "ErrorCodeMaximum", "Sum", "Count"]. Default to "Average".

Deprecated:

Field 'statistics' has been deprecated from provider version 1.94.0. New field 'escalations_critical.statistics' instead.

Status string

The current alarm rule status.

Threshold string

Critical level alarm threshold value, which must be a numeric value currently.

Deprecated:

Field 'threshold' has been deprecated from provider version 1.94.0. New field 'escalations_critical.threshold' instead.

TriggeredCount int

It has been deprecated from provider version 1.94.0 and 'escalations_critical.times' instead.

Deprecated:

Field 'triggered_count' has been deprecated from provider version 1.94.0. New field 'escalations_critical.times' instead.

Webhook string

The webhook that should be called when the alarm is triggered. Currently, only http protocol is supported. Default is empty string.

contactGroups List

List contact groups of the alarm rule, which must have been created on the console.

dimensions Map

Map of the resources associated with the alarm rule, such as "instanceId", "device" and "port". Each key's value is a string and it uses comma to split multiple items. For more information, see Metrics Reference.

effectiveInterval String

The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default to "00:00-23:59".

enabled Boolean

Whether to enable alarm rule. Default to true.

endTime Integer

It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.

Deprecated:

Field 'end_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.

escalationsCritical AlarmEscalationsCriticalArgs

A configuration of critical alarm (documented below).

escalationsInfo AlarmEscalationsInfoArgs

A configuration of critical info (documented below).

escalationsWarn AlarmEscalationsWarnArgs

A configuration of critical warn (documented below).

metric String

Name of the monitoring metrics corresponding to a project, such as "CPUUtilization" and "networkin_rate". For more information, see Metrics Reference.

name String

The alarm rule name.

operator String

It has been deprecated from provider version 1.94.0 and 'escalations_critical.comparison_operator' instead.

Deprecated:

Field 'operator' has been deprecated from provider version 1.94.0. New field 'escalations_critical.comparison_operator' instead.

period Integer

Index query cycle, which must be consistent with that defined for metrics. Default to 300, in seconds.

project String

Monitor project name, such as "acs_ecs_dashboard" and "acs_rds_dashboard". For more information, see Metrics Reference.

silenceTime Integer

Notification silence period in the alarm state, in seconds. Valid value range: [300, 86400]. Default to 86400

startTime Integer

It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.

Deprecated:

Field 'start_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.

statistics String

Critical level alarm statistics method. It must be consistent with that defined for metrics. Valid values: ["Average", "Minimum", "Maximum", "Value", "ErrorCodeMaximum", "Sum", "Count"]. Default to "Average".

Deprecated:

Field 'statistics' has been deprecated from provider version 1.94.0. New field 'escalations_critical.statistics' instead.

status String

The current alarm rule status.

threshold String

Critical level alarm threshold value, which must be a numeric value currently.

Deprecated:

Field 'threshold' has been deprecated from provider version 1.94.0. New field 'escalations_critical.threshold' instead.

triggeredCount Integer

It has been deprecated from provider version 1.94.0 and 'escalations_critical.times' instead.

Deprecated:

Field 'triggered_count' has been deprecated from provider version 1.94.0. New field 'escalations_critical.times' instead.

webhook String

The webhook that should be called when the alarm is triggered. Currently, only http protocol is supported. Default is empty string.

contactGroups string[]

List contact groups of the alarm rule, which must have been created on the console.

dimensions {[key: string]: any}

Map of the resources associated with the alarm rule, such as "instanceId", "device" and "port". Each key's value is a string and it uses comma to split multiple items. For more information, see Metrics Reference.

effectiveInterval string

The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default to "00:00-23:59".

enabled boolean

Whether to enable alarm rule. Default to true.

endTime number

It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.

Deprecated:

Field 'end_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.

escalationsCritical AlarmEscalationsCriticalArgs

A configuration of critical alarm (documented below).

escalationsInfo AlarmEscalationsInfoArgs

A configuration of critical info (documented below).

escalationsWarn AlarmEscalationsWarnArgs

A configuration of critical warn (documented below).

metric string

Name of the monitoring metrics corresponding to a project, such as "CPUUtilization" and "networkin_rate". For more information, see Metrics Reference.

name string

The alarm rule name.

operator string

It has been deprecated from provider version 1.94.0 and 'escalations_critical.comparison_operator' instead.

Deprecated:

Field 'operator' has been deprecated from provider version 1.94.0. New field 'escalations_critical.comparison_operator' instead.

period number

Index query cycle, which must be consistent with that defined for metrics. Default to 300, in seconds.

project string

Monitor project name, such as "acs_ecs_dashboard" and "acs_rds_dashboard". For more information, see Metrics Reference.

silenceTime number

Notification silence period in the alarm state, in seconds. Valid value range: [300, 86400]. Default to 86400

startTime number

It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.

Deprecated:

Field 'start_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.

statistics string

Critical level alarm statistics method. It must be consistent with that defined for metrics. Valid values: ["Average", "Minimum", "Maximum", "Value", "ErrorCodeMaximum", "Sum", "Count"]. Default to "Average".

Deprecated:

Field 'statistics' has been deprecated from provider version 1.94.0. New field 'escalations_critical.statistics' instead.

status string

The current alarm rule status.

threshold string

Critical level alarm threshold value, which must be a numeric value currently.

Deprecated:

Field 'threshold' has been deprecated from provider version 1.94.0. New field 'escalations_critical.threshold' instead.

triggeredCount number

It has been deprecated from provider version 1.94.0 and 'escalations_critical.times' instead.

Deprecated:

Field 'triggered_count' has been deprecated from provider version 1.94.0. New field 'escalations_critical.times' instead.

webhook string

The webhook that should be called when the alarm is triggered. Currently, only http protocol is supported. Default is empty string.

contact_groups Sequence[str]

List contact groups of the alarm rule, which must have been created on the console.

dimensions Mapping[str, Any]

Map of the resources associated with the alarm rule, such as "instanceId", "device" and "port". Each key's value is a string and it uses comma to split multiple items. For more information, see Metrics Reference.

effective_interval str

The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default to "00:00-23:59".

enabled bool

Whether to enable alarm rule. Default to true.

end_time int

It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.

Deprecated:

Field 'end_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.

escalations_critical AlarmEscalationsCriticalArgs

A configuration of critical alarm (documented below).

escalations_info AlarmEscalationsInfoArgs

A configuration of critical info (documented below).

escalations_warn AlarmEscalationsWarnArgs

A configuration of critical warn (documented below).

metric str

Name of the monitoring metrics corresponding to a project, such as "CPUUtilization" and "networkin_rate". For more information, see Metrics Reference.

name str

The alarm rule name.

operator str

It has been deprecated from provider version 1.94.0 and 'escalations_critical.comparison_operator' instead.

Deprecated:

Field 'operator' has been deprecated from provider version 1.94.0. New field 'escalations_critical.comparison_operator' instead.

period int

Index query cycle, which must be consistent with that defined for metrics. Default to 300, in seconds.

project str

Monitor project name, such as "acs_ecs_dashboard" and "acs_rds_dashboard". For more information, see Metrics Reference.

silence_time int

Notification silence period in the alarm state, in seconds. Valid value range: [300, 86400]. Default to 86400

start_time int

It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.

Deprecated:

Field 'start_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.

statistics str

Critical level alarm statistics method. It must be consistent with that defined for metrics. Valid values: ["Average", "Minimum", "Maximum", "Value", "ErrorCodeMaximum", "Sum", "Count"]. Default to "Average".

Deprecated:

Field 'statistics' has been deprecated from provider version 1.94.0. New field 'escalations_critical.statistics' instead.

status str

The current alarm rule status.

threshold str

Critical level alarm threshold value, which must be a numeric value currently.

Deprecated:

Field 'threshold' has been deprecated from provider version 1.94.0. New field 'escalations_critical.threshold' instead.

triggered_count int

It has been deprecated from provider version 1.94.0 and 'escalations_critical.times' instead.

Deprecated:

Field 'triggered_count' has been deprecated from provider version 1.94.0. New field 'escalations_critical.times' instead.

webhook str

The webhook that should be called when the alarm is triggered. Currently, only http protocol is supported. Default is empty string.

contactGroups List

List contact groups of the alarm rule, which must have been created on the console.

dimensions Map

Map of the resources associated with the alarm rule, such as "instanceId", "device" and "port". Each key's value is a string and it uses comma to split multiple items. For more information, see Metrics Reference.

effectiveInterval String

The interval of effecting alarm rule. It format as "hh:mm-hh:mm", like "0:00-4:00". Default to "00:00-23:59".

enabled Boolean

Whether to enable alarm rule. Default to true.

endTime Number

It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.

Deprecated:

Field 'end_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.

escalationsCritical Property Map

A configuration of critical alarm (documented below).

escalationsInfo Property Map

A configuration of critical info (documented below).

escalationsWarn Property Map

A configuration of critical warn (documented below).

metric String

Name of the monitoring metrics corresponding to a project, such as "CPUUtilization" and "networkin_rate". For more information, see Metrics Reference.

name String

The alarm rule name.

operator String

It has been deprecated from provider version 1.94.0 and 'escalations_critical.comparison_operator' instead.

Deprecated:

Field 'operator' has been deprecated from provider version 1.94.0. New field 'escalations_critical.comparison_operator' instead.

period Number

Index query cycle, which must be consistent with that defined for metrics. Default to 300, in seconds.

project String

Monitor project name, such as "acs_ecs_dashboard" and "acs_rds_dashboard". For more information, see Metrics Reference.

silenceTime Number

Notification silence period in the alarm state, in seconds. Valid value range: [300, 86400]. Default to 86400

startTime Number

It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.

Deprecated:

Field 'start_time' has been deprecated from provider version 1.50.0. New field 'effective_interval' instead.

statistics String

Critical level alarm statistics method. It must be consistent with that defined for metrics. Valid values: ["Average", "Minimum", "Maximum", "Value", "ErrorCodeMaximum", "Sum", "Count"]. Default to "Average".

Deprecated:

Field 'statistics' has been deprecated from provider version 1.94.0. New field 'escalations_critical.statistics' instead.

status String

The current alarm rule status.

threshold String

Critical level alarm threshold value, which must be a numeric value currently.

Deprecated:

Field 'threshold' has been deprecated from provider version 1.94.0. New field 'escalations_critical.threshold' instead.

triggeredCount Number

It has been deprecated from provider version 1.94.0 and 'escalations_critical.times' instead.

Deprecated:

Field 'triggered_count' has been deprecated from provider version 1.94.0. New field 'escalations_critical.times' instead.

webhook String

The webhook that should be called when the alarm is triggered. Currently, only http protocol is supported. Default is empty string.

Supporting Types

AlarmEscalationsCritical

ComparisonOperator string

Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".

Statistics string

Critical level alarm statistics method. It must be consistent with that defined for metrics. Valid values: ["Average", "Minimum", "Maximum", "Value", "ErrorCodeMaximum", "Sum", "Count"]. Default to "Average".

Threshold string

Critical level alarm threshold value, which must be a numeric value currently.

Times int

Critical level alarm retry times. Default to 3.

ComparisonOperator string

Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".

Statistics string

Critical level alarm statistics method. It must be consistent with that defined for metrics. Valid values: ["Average", "Minimum", "Maximum", "Value", "ErrorCodeMaximum", "Sum", "Count"]. Default to "Average".

Threshold string

Critical level alarm threshold value, which must be a numeric value currently.

Times int

Critical level alarm retry times. Default to 3.

comparisonOperator String

Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".

statistics String

Critical level alarm statistics method. It must be consistent with that defined for metrics. Valid values: ["Average", "Minimum", "Maximum", "Value", "ErrorCodeMaximum", "Sum", "Count"]. Default to "Average".

threshold String

Critical level alarm threshold value, which must be a numeric value currently.

times Integer

Critical level alarm retry times. Default to 3.

comparisonOperator string

Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".

statistics string

Critical level alarm statistics method. It must be consistent with that defined for metrics. Valid values: ["Average", "Minimum", "Maximum", "Value", "ErrorCodeMaximum", "Sum", "Count"]. Default to "Average".

threshold string

Critical level alarm threshold value, which must be a numeric value currently.

times number

Critical level alarm retry times. Default to 3.

comparison_operator str

Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".

statistics str

Critical level alarm statistics method. It must be consistent with that defined for metrics. Valid values: ["Average", "Minimum", "Maximum", "Value", "ErrorCodeMaximum", "Sum", "Count"]. Default to "Average".

threshold str

Critical level alarm threshold value, which must be a numeric value currently.

times int

Critical level alarm retry times. Default to 3.

comparisonOperator String

Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".

statistics String

Critical level alarm statistics method. It must be consistent with that defined for metrics. Valid values: ["Average", "Minimum", "Maximum", "Value", "ErrorCodeMaximum", "Sum", "Count"]. Default to "Average".

threshold String

Critical level alarm threshold value, which must be a numeric value currently.

times Number

Critical level alarm retry times. Default to 3.

AlarmEscalationsInfo

ComparisonOperator string

Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".

Statistics string

Critical level alarm statistics method. It must be consistent with that defined for metrics. Valid values: ["Average", "Minimum", "Maximum", "Value", "ErrorCodeMaximum", "Sum", "Count"]. Default to "Average".

Threshold string

Critical level alarm threshold value, which must be a numeric value currently.

Times int

Critical level alarm retry times. Default to 3.

ComparisonOperator string

Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".

Statistics string

Critical level alarm statistics method. It must be consistent with that defined for metrics. Valid values: ["Average", "Minimum", "Maximum", "Value", "ErrorCodeMaximum", "Sum", "Count"]. Default to "Average".

Threshold string

Critical level alarm threshold value, which must be a numeric value currently.

Times int

Critical level alarm retry times. Default to 3.

comparisonOperator String

Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".

statistics String

Critical level alarm statistics method. It must be consistent with that defined for metrics. Valid values: ["Average", "Minimum", "Maximum", "Value", "ErrorCodeMaximum", "Sum", "Count"]. Default to "Average".

threshold String

Critical level alarm threshold value, which must be a numeric value currently.

times Integer

Critical level alarm retry times. Default to 3.

comparisonOperator string

Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".

statistics string

Critical level alarm statistics method. It must be consistent with that defined for metrics. Valid values: ["Average", "Minimum", "Maximum", "Value", "ErrorCodeMaximum", "Sum", "Count"]. Default to "Average".

threshold string

Critical level alarm threshold value, which must be a numeric value currently.

times number

Critical level alarm retry times. Default to 3.

comparison_operator str

Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".

statistics str

Critical level alarm statistics method. It must be consistent with that defined for metrics. Valid values: ["Average", "Minimum", "Maximum", "Value", "ErrorCodeMaximum", "Sum", "Count"]. Default to "Average".

threshold str

Critical level alarm threshold value, which must be a numeric value currently.

times int

Critical level alarm retry times. Default to 3.

comparisonOperator String

Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".

statistics String

Critical level alarm statistics method. It must be consistent with that defined for metrics. Valid values: ["Average", "Minimum", "Maximum", "Value", "ErrorCodeMaximum", "Sum", "Count"]. Default to "Average".

threshold String

Critical level alarm threshold value, which must be a numeric value currently.

times Number

Critical level alarm retry times. Default to 3.

AlarmEscalationsWarn

ComparisonOperator string

Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".

Statistics string

Critical level alarm statistics method. It must be consistent with that defined for metrics. Valid values: ["Average", "Minimum", "Maximum", "Value", "ErrorCodeMaximum", "Sum", "Count"]. Default to "Average".

Threshold string

Critical level alarm threshold value, which must be a numeric value currently.

Times int

Critical level alarm retry times. Default to 3.

ComparisonOperator string

Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".

Statistics string

Critical level alarm statistics method. It must be consistent with that defined for metrics. Valid values: ["Average", "Minimum", "Maximum", "Value", "ErrorCodeMaximum", "Sum", "Count"]. Default to "Average".

Threshold string

Critical level alarm threshold value, which must be a numeric value currently.

Times int

Critical level alarm retry times. Default to 3.

comparisonOperator String

Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".

statistics String

Critical level alarm statistics method. It must be consistent with that defined for metrics. Valid values: ["Average", "Minimum", "Maximum", "Value", "ErrorCodeMaximum", "Sum", "Count"]. Default to "Average".

threshold String

Critical level alarm threshold value, which must be a numeric value currently.

times Integer

Critical level alarm retry times. Default to 3.

comparisonOperator string

Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".

statistics string

Critical level alarm statistics method. It must be consistent with that defined for metrics. Valid values: ["Average", "Minimum", "Maximum", "Value", "ErrorCodeMaximum", "Sum", "Count"]. Default to "Average".

threshold string

Critical level alarm threshold value, which must be a numeric value currently.

times number

Critical level alarm retry times. Default to 3.

comparison_operator str

Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".

statistics str

Critical level alarm statistics method. It must be consistent with that defined for metrics. Valid values: ["Average", "Minimum", "Maximum", "Value", "ErrorCodeMaximum", "Sum", "Count"]. Default to "Average".

threshold str

Critical level alarm threshold value, which must be a numeric value currently.

times int

Critical level alarm retry times. Default to 3.

comparisonOperator String

Critical level alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".

statistics String

Critical level alarm statistics method. It must be consistent with that defined for metrics. Valid values: ["Average", "Minimum", "Maximum", "Value", "ErrorCodeMaximum", "Sum", "Count"]. Default to "Average".

threshold String

Critical level alarm threshold value, which must be a numeric value currently.

times Number

Critical level alarm retry times. Default to 3.

Import

Alarm rule can be imported using the id, e.g.

 $ pulumi import alicloud:cms/alarm:Alarm alarm abc12345

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.