AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

The definition of a CloudWatch metric alarm, which determines when an automatic scaling activity is triggered. When the defined alarm conditions are satisfied, scaling activity begins.

Inheritance Hierarchy


Namespace: Amazon.ElasticMapReduce.Model
Assembly: AWSSDK.ElasticMapReduce.dll
Version: 3.x.y.z


public class CloudWatchAlarmDefinition

The CloudWatchAlarmDefinition type exposes the following members


Public Method CloudWatchAlarmDefinition()


Public Property ComparisonOperator Amazon.ElasticMapReduce.ComparisonOperator

Gets and sets the property ComparisonOperator.

Determines how the metric specified by MetricName is compared to the value specified by Threshold.

Public Property Dimensions System.Collections.Generic.List<Amazon.ElasticMapReduce.Model.MetricDimension>

Gets and sets the property Dimensions.

A CloudWatch metric dimension.

Public Property EvaluationPeriods System.Int32

Gets and sets the property EvaluationPeriods.

The number of periods, expressed in seconds using Period, during which the alarm condition must exist before the alarm triggers automatic scaling activity. The default value is 1.

Public Property MetricName System.String

Gets and sets the property MetricName.

The name of the CloudWatch metric that is watched to determine an alarm condition.

Public Property Namespace System.String

Gets and sets the property Namespace.

The namespace for the CloudWatch metric. The default is AWS/ElasticMapReduce.

Public Property Period System.Int32

Gets and sets the property Period.

The period, in seconds, over which the statistic is applied. EMR CloudWatch metrics are emitted every five minutes (300 seconds), so if an EMR CloudWatch metric is specified, specify 300.

Public Property Statistic Amazon.ElasticMapReduce.Statistic

Gets and sets the property Statistic.

The statistic to apply to the metric associated with the alarm. The default is AVERAGE.

Public Property Threshold System.Double

Gets and sets the property Threshold.

The value against which the specified statistic is compared.

Public Property Unit Amazon.ElasticMapReduce.Unit

Gets and sets the property Unit.

The unit of measure associated with the CloudWatch metric being watched. The value specified for Unit must correspond to the units specified in the CloudWatch metric.

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms