Put Metric Alarm

GET {{aws_cloudwatch_base_url}}/?Action=PutMetricAlarm&ActionsEnabled=&AlarmActions.member.N=&AlarmDescription=&AlarmName=&ComparisonOperator=&DatapointsToAlarm=&Dimensions.member.N=&EvaluateLowSampleCountPercentile=&EvaluationPeriods=&ExtendedStatistic=&InsufficientDataActions.member.N=&MetricName=&Metrics.member.N=&Namespace=&OKActions.member.N=&Period=&Statistic=&Tags.member.N=&Threshold=&ThresholdMetricId=&TreatMissingData=&Unit=&Version=2010-08-01

Request Params

KeyDatatypeRequiredDescription
Actionstring
ActionsEnablednullIndicates whether actions should be executed during any changes to the alarm state. The default is TRUE.
AlarmActions.member.NnullThe actions to execute when this alarm transitions to the ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).
AlarmDescriptionnullThe description for the alarm.
AlarmNamenullThe name for the alarm. This name must be unique within your AWS account.
ComparisonOperatornullThe arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.
DatapointsToAlarmnullThe number of data points that must be breaching to trigger the alarm. This is used only if you are setting an M out of N alarm. In that case, this value is the M. For more information, see Evaluating an Alarm in the Amazon CloudWatch User Guide.
Dimensions.member.NnullThe dimensions for the metric specified in MetricName.
EvaluateLowSampleCountPercentilenullUsed only for alarms based on percentiles. If you specify ignore, the alarm state does not change during periods with too few data points to be statistically significant. If you specify evaluate or omit this parameter, the alarm is always evaluated and possibly changes state no matter how many data points are available. For more information, see Percentile-Based CloudWatch Alarms and Low Data Samples.
EvaluationPeriodsnullThe number of periods over which data is compared to the specified threshold. If you are setting an alarm that requires that a number of consecutive data points be breaching to trigger the alarm, this value specifies that number. If you are setting an M out of N alarm, this value is the N.
ExtendedStatisticnullThe percentile statistic for the metric specified in MetricName. Specify a value between p0.0 and p100. When you call PutMetricAlarm and specify a MetricName, you must specify either Statistic or ExtendedStatistic, but not both.
InsufficientDataActions.member.NnullThe actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).
MetricNamenullThe name for the metric associated with the alarm. For each PutMetricAlarm operation, you must specify either MetricName or a Metrics array.
Metrics.member.NnullAn array of MetricDataQuery structures that enable you to create an alarm based on the result of a metric math expression. For each PutMetricAlarm operation, you must specify either MetricName or a Metrics array.
NamespacenullThe namespace for the metric associated specified in MetricName.
OKActions.member.NnullThe actions to execute when this alarm transitions to an OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).
PeriodnullThe length, in seconds, used each time the metric specified in MetricName is evaluated. Valid values are 10, 30, and any multiple of 60.
StatisticnullThe statistic for the metric specified in MetricName, other than percentile. For percentile statistics, use ExtendedStatistic. When you call PutMetricAlarm and specify a MetricName, you must specify either Statistic or ExtendedStatistic, but not both.
Tags.member.NnullA list of key-value pairs to associate with the alarm. You can associate as many as 50 tags with an alarm.
ThresholdnullThe value against which the specified statistic is compared.
ThresholdMetricIdnullIf this is an alarm based on an anomaly detection model, make this value match the ID of the ANOMALY_DETECTION_BAND function.
TreatMissingDatanullSets how this alarm is to handle missing data points. If TreatMissingData is omitted, the default behavior of missing is used. For more information, see Configuring How CloudWatch Alarms Treats Missing Data.
UnitnullThe unit of measure for the statistic. For example, the units for the Amazon EC2 NetworkIn metric are Bytes because NetworkIn tracks the number of bytes that an instance receives on all network interfaces. You can also specify a unit when you create a custom metric. Units help provide conceptual meaning to your data. Metric data points that specify a unit of measure, such as Percent, are aggregated separately.
Versionstring