Class AlarmArgs
Inherited Members
Namespace: Pulumi.AliCloud.Cms
Assembly: Pulumi.AliCloud.dll
Syntax
public sealed class AlarmArgs : ResourceArgs
Constructors
View SourceAlarmArgs()
Declaration
public AlarmArgs()
Properties
View SourceContactGroups
List contact groups of the alarm rule, which must have been created on the console.
Declaration
public InputList<string> ContactGroups { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
Dimensions
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.
Declaration
public InputMap<object> Dimensions { get; set; }
Property Value
| Type | Description |
|---|---|
| InputMap<System.Object> |
EffectiveInterval
The interval of effecting alarm rule. It foramt as "hh:mm-hh:mm", like "0:00-4:00". Default to "00:00-23:59".
Declaration
public Input<string> EffectiveInterval { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Enabled
Whether to enable alarm rule. Default to true.
Declaration
public Input<bool> Enabled { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
EndTime
It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.
Declaration
public Input<int> EndTime { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
Metric
Name of the monitoring metrics corresponding to a project, such as "CPUUtilization" and "networkin_rate". For more information, see Metrics Reference.
Declaration
public Input<string> Metric { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Name
The alarm rule name.
Declaration
public Input<string> Name { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Operator
Alarm comparison operator. Valid values: ["<=", "<", ">", ">=", "==", "!="]. Default to "==".
Declaration
public Input<string> Operator { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Period
Index query cycle, which must be consistent with that defined for metrics. Default to 300, in seconds.
Declaration
public Input<int> Period { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
Project
Monitor project name, such as "acs_ecs_dashboard" and "acs_rds_dashboard". For more information, see Metrics Reference.
Declaration
public Input<string> Project { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
SilenceTime
Notification silence period in the alarm state, in seconds. Valid value range: [300, 86400]. Default to 86400
Declaration
public Input<int> SilenceTime { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
StartTime
It has been deprecated from provider version 1.50.0 and 'effective_interval' instead.
Declaration
public Input<int> StartTime { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
Statistics
Statistical method. It must be consistent with that defined for metrics. Valid values: ["Average", "Minimum", "Maximum"]. Default to "Average".
Declaration
public Input<string> Statistics { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Threshold
Alarm threshold value, which must be a numeric value currently.
Declaration
public Input<string> Threshold { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
TriggeredCount
Number of consecutive times it has been detected that the values exceed the threshold. Default to 3.
Declaration
public Input<int> TriggeredCount { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
Webhook
The webhook that should be called when the alarm is triggered. Currently, only http protocol is supported. Default is empty string.
Declaration
public Input<string> Webhook { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |