CloudWatchAlarmDefinition

public struct CloudWatchAlarmDefinition : AWSShape

Undocumented

  • Declaration

    Swift

    public static var _members: [AWSShapeMember]
  • Determines how the metric specified by MetricName is compared to the value specified by Threshold.

    Declaration

    Swift

    public let comparisonOperator: ComparisonOperator
  • A CloudWatch metric dimension.

    Declaration

    Swift

    public let dimensions: [MetricDimension]?
  • 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.

    Declaration

    Swift

    public let evaluationPeriods: Int?
  • The name of the CloudWatch metric that is watched to determine an alarm condition.

    Declaration

    Swift

    public let metricName: String
  • The namespace for the CloudWatch metric. The default is AWS/ElasticMapReduce.

    Declaration

    Swift

    public let namespace: String?
  • 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.

    Declaration

    Swift

    public let period: Int
  • The statistic to apply to the metric associated with the alarm. The default is AVERAGE.

    Declaration

    Swift

    public let statistic: Statistic?
  • The value against which the specified statistic is compared.

    Declaration

    Swift

    public let threshold: Double
  • 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.

    Declaration

    Swift

    public let unit: Unit?
  • Undocumented

    Declaration

    Swift

    public init(comparisonOperator: ComparisonOperator, dimensions: [MetricDimension]? = nil, evaluationPeriods: Int? = nil, metricName: String, namespace: String? = nil, period: Int, statistic: Statistic? = nil, threshold: Double, unit: Unit? = nil)
  • Declaration

    Swift

    public func validate(name: String) throws