Container for the parameters to the PutMetricAlarm operation.
Creates or updates an alarm and associates it with the specified Amazon CloudWatch metric. Optionally, this operation can associate one or more Amazon Simple Notification Service resources with the alarm.
When this operation creates an alarm, the alarm state is immediately set to INSUFFICIENT_DATA . The alarm is evaluated and its StateValue is set appropriately. Any actions associated with the StateValue is then executed.
NOTE: When updating an existing alarm, its StateValue is left unchanged.

C# |
public class PutMetricAlarmRequest : AmazonWebServiceRequest

All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
![]() | PutMetricAlarmRequest()()()() | Initializes a new instance of the PutMetricAlarmRequest class |
![]() | ActionsEnabled |
Indicates whether or not actions should be executed during any changes to the alarm's state.
|
![]() | AlarmActions |
The list of actions to execute when this alarm transitions into an ALARM state from any other state. Each action is specified as an
Amazon Resource Number (ARN). Currently the only action supported is publishing to an Amazon SNS topic or an Amazon Auto Scaling policy.
Constraints: |
![]() | AlarmDescription |
The description for the alarm.
Constraints: |
![]() | AlarmName |
The descriptive name for the alarm. This name must be unique within the user's AWS account
Constraints: |
![]() | ComparisonOperator |
The arithmetic operation to use when comparing the specified Statistic and Threshold. The specified Statistic value is
used as the first operand.
Constraints: |
![]() | Dimensions |
The dimensions for the alarm's associated metric.
Constraints: |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | EvaluationPeriods |
The number of periods over which data is compared to the specified threshold.
Constraints: |
![]() | GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType()()()() | Gets the type of the current instance. (Inherited from Object.) |
![]() | InsufficientDataActions |
The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA state from any other state. Each action is
specified as an Amazon Resource Number (ARN). Currently the only action supported is publishing to an Amazon SNS topic or an Amazon Auto
Scaling policy.
Constraints: |
![]() | MetricName |
The name for the alarm's associated metric.
Constraints: |
![]() | Namespace |
The namespace for the alarm's associated metric.
Constraints: |
![]() | OKActions |
The list of actions to execute when this alarm transitions into an OK state from any other state. Each action is specified as an
Amazon Resource Number (ARN). Currently the only action supported is publishing to an Amazon SNS topic or an Amazon Auto Scaling policy.
Constraints: |
![]() | Period |
The period in seconds over which the specified statistic is applied.
Constraints: |
![]() | Statistic |
The statistic to apply to the alarm's associated metric.
Constraints: |
![]() | Threshold |
The value against which the specified statistic is compared.
|
![]() | ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) |
![]() | Unit |
The unit for the alarm's associated metric.
Constraints: |
![]() | WithActionsEnabled(Boolean) | Obsolete.
Sets the ActionsEnabled property
|
![]() | WithAlarmActions(array<String>[]()[][]) | Obsolete.
Adds elements to the AlarmActions collection
|
![]() | WithAlarmActions(IEnumerable<(Of <<'(String>)>>)) | Obsolete.
Adds elements to the AlarmActions collection
|
![]() | WithAlarmDescription(String) | Obsolete.
Sets the AlarmDescription property
|
![]() | WithAlarmName(String) | Obsolete.
Sets the AlarmName property
|
![]() | WithComparisonOperator(String) | Obsolete.
Sets the ComparisonOperator property
|
![]() | WithDimensions(array<Dimension>[]()[][]) | Obsolete.
Adds elements to the Dimensions collection
|
![]() | WithDimensions(IEnumerable<(Of <<'(Dimension>)>>)) | Obsolete.
Adds elements to the Dimensions collection
|
![]() | WithEvaluationPeriods(Int32) | Obsolete.
Sets the EvaluationPeriods property
|
![]() | WithInsufficientDataActions(array<String>[]()[][]) | Obsolete.
Adds elements to the InsufficientDataActions collection
|
![]() | WithInsufficientDataActions(IEnumerable<(Of <<'(String>)>>)) | Obsolete.
Adds elements to the InsufficientDataActions collection
|
![]() | WithMetricName(String) | Obsolete.
Sets the MetricName property
|
![]() | WithNamespace(String) | Obsolete.
Sets the Namespace property
|
![]() | WithOKActions(array<String>[]()[][]) | Obsolete.
Adds elements to the OKActions collection
|
![]() | WithOKActions(IEnumerable<(Of <<'(String>)>>)) | Obsolete.
Adds elements to the OKActions collection
|
![]() | WithPeriod(Int32) | Obsolete.
Sets the Period property
|
![]() | WithStatistic(String) | Obsolete.
Sets the Statistic property
|
![]() | WithThreshold(Double) | Obsolete.
Sets the Threshold property
|
![]() | WithUnit(String) | Obsolete.
Sets the Unit property
|

Object | ||
![]() | AmazonWebServiceRequest | |
![]() | PutMetricAlarmRequest |