Interface CfnInstanceGroupConfig.ICloudWatchAlarmDefinitionProperty
CloudWatchAlarmDefinition
is a subproperty of the ScalingTrigger
property, which determines when to trigger an automatic scaling activity.
Namespace: Amazon.CDK.AWS.EMR
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICloudWatchAlarmDefinitionProperty
Syntax (vb)
Public Interface ICloudWatchAlarmDefinitionProperty
Remarks
Scaling activity begins when you satisfy the defined alarm conditions.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EMR;
var cloudWatchAlarmDefinitionProperty = new CloudWatchAlarmDefinitionProperty {
ComparisonOperator = "comparisonOperator",
MetricName = "metricName",
Period = 123,
Threshold = 123,
// the properties below are optional
Dimensions = new [] { new MetricDimensionProperty {
Key = "key",
Value = "value"
} },
EvaluationPeriods = 123,
Namespace = "namespace",
Statistic = "statistic",
Unit = "unit"
};
Synopsis
Properties
ComparisonOperator | Determines how the metric specified by |
Dimensions | A CloudWatch metric dimension. |
EvaluationPeriods | The number of periods, in five-minute increments, during which the alarm condition must exist before the alarm triggers automatic scaling activity. |
MetricName | The name of the CloudWatch metric that is watched to determine an alarm condition. |
Namespace | The namespace for the CloudWatch metric. |
Period | The period, in seconds, over which the statistic is applied. |
Statistic | The statistic to apply to the metric associated with the alarm. |
Threshold | The value against which the specified statistic is compared. |
Unit | The unit of measure associated with the CloudWatch metric being watched. |
Properties
ComparisonOperator
Determines how the metric specified by MetricName
is compared to the value specified by Threshold
.
string ComparisonOperator { get; }
Property Value
System.String
Remarks
Dimensions
A CloudWatch metric dimension.
virtual object Dimensions { get; }
Property Value
System.Object
Remarks
EvaluationPeriods
The number of periods, in five-minute increments, during which the alarm condition must exist before the alarm triggers automatic scaling activity.
virtual Nullable<double> EvaluationPeriods { get; }
Property Value
System.Nullable<System.Double>
Remarks
MetricName
The name of the CloudWatch metric that is watched to determine an alarm condition.
string MetricName { get; }
Property Value
System.String
Remarks
Namespace
The namespace for the CloudWatch metric.
virtual string Namespace { get; }
Property Value
System.String
Remarks
Period
The period, in seconds, over which the statistic is applied.
double Period { get; }
Property Value
System.Double
Remarks
CloudWatch metrics for Amazon EMR are emitted every five minutes (300 seconds), so if you specify a CloudWatch metric, specify 300
.
Statistic
The statistic to apply to the metric associated with the alarm.
virtual string Statistic { get; }
Property Value
System.String
Remarks
Threshold
The value against which the specified statistic is compared.
double Threshold { get; }
Property Value
System.Double
Remarks
Unit
The unit of measure associated with the CloudWatch metric being watched.
virtual string Unit { get; }
Property Value
System.String
Remarks
The value specified for Unit
must correspond to the units specified in the CloudWatch metric.