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

System.Object
  Amazon.ElasticMapReduce.Model.CloudWatchAlarmDefinition

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

Syntax

C#
public class CloudWatchAlarmDefinition

The CloudWatchAlarmDefinition type exposes the following members

Constructors

NameDescription
Public Method CloudWatchAlarmDefinition()

Properties

NameTypeDescription
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, in five-minute increments, 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. CloudWatch metrics for Amazon EMR are emitted every five minutes (300 seconds), so if you specify a CloudWatch metric, 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 Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

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