Module Values.CloudWatchAlarmDefinitionSource

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.

Sourcetype nonrec t = {
  1. comparisonOperator : ComparisonOperator.t;
    (*

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

    *)
  2. evaluationPeriods : Integer.t option;
    (*

    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.

    *)
  3. metricName : String_.t;
    (*

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

    *)
  4. namespace : String_.t option;
    (*

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

    *)
  5. period : Integer.t;
    (*

    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.

    *)
  6. statistic : Statistic.t option;
    (*

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

    *)
  7. threshold : NonNegativeDouble.t;
    (*

    The value against which the specified statistic is compared.

    *)
  8. unit : Unit.t option;
    (*

    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.

    *)
  9. dimensions : MetricDimensionList.t option;
    (*

    A CloudWatch metric dimension.

    *)
}
Sourceval context_ : string
Sourceval make : ?evaluationPeriods:??? -> ?namespace:??? -> ?statistic:??? -> ?unit:??? -> ?dimensions:??? -> comparisonOperator:ComparisonOperator.t -> metricName:String_.t -> period:Integer.t -> threshold:NonNegativeDouble.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Double of NonNegativeDouble.t | `Enum of string | `Integer of Integer.t | `List of [> `Structure of (string * [> `String of String_.t ]) list ] list | `String of String_.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t