Class AlarmState
Inherited Members
Namespace: Pulumi.AliCloud.Ess
Assembly: Pulumi.AliCloud.dll
Syntax
public sealed class AlarmState : ResourceArgs
Constructors
View SourceAlarmState()
Declaration
public AlarmState()
Properties
View SourceAlarmActions
The list of actions to execute when this alarm transition into an ALARM state. Each action is specified as ess scaling rule ari.
Declaration
public InputList<string> AlarmActions { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
CloudMonitorGroupId
Defines the application group id defined by CMS which is assigned when you upload custom metric to CMS, only available for custom metirc.
Declaration
public Input<int> CloudMonitorGroupId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
ComparisonOperator
The arithmetic operation to use when comparing the specified Statistic and Threshold. The specified Statistic value is used as the first operand. Supported value: >=, <=, >, <. Defaults to >=.
Declaration
public Input<string> ComparisonOperator { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Description
The description for the alarm.
Declaration
public Input<string> Description { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Dimensions
The dimension map for the alarm's associated metric (documented below). For all metrics, you can not set the dimension key as "scaling_group" or "userId", which is set by default, the second dimension for metric, such as "device" for "PackagesNetIn", need to be set by users.
Declaration
public InputMap<object> Dimensions { get; set; }
Property Value
| Type | Description |
|---|---|
| InputMap<System.Object> |
Enable
Whether to enable specific ess alarm. Default to true.
Declaration
public Input<bool> Enable { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
EvaluationCount
The number of times that needs to satisfies comparison condition before transition into ALARM state. Defaults to 3.
Declaration
public Input<int> EvaluationCount { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
MetricName
The name for the alarm's associated metric. See Block_metricNames_and_dimensions below for details.
Declaration
public Input<string> MetricName { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
MetricType
The type for the alarm's associated metric. Supported value: system, custom. "system" means the metric data is collected by Aliyun Cloud Monitor Service(CMS), "custom" means the metric data is upload to CMS by users. Defaults to system.
Declaration
public Input<string> MetricType { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Name
The name for ess alarm.
Declaration
public Input<string> Name { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Period
The period in seconds over which the specified statistic is applied. Supported value: 60, 120, 300, 900. Defaults to 300.
Declaration
public Input<int> Period { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
ScalingGroupId
The scaling group associated with this alarm, the 'ForceNew' attribute is available in 1.56.0+.
Declaration
public Input<string> ScalingGroupId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
State
The state of specified alarm.
Declaration
public Input<string> State { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Statistics
The statistic to apply to the alarm's associated metric. Supported value: Average, Minimum, Maximum. Defaults to Average.
Declaration
public Input<string> Statistics { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Threshold
The value against which the specified statistics is compared.
Declaration
public Input<string> Threshold { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |