Module Values.CustomizedScalingMetricSpecificationSource

Represents a CloudWatch metric of your choosing that can be used for dynamic scaling as part of a target tracking scaling policy. To create your customized scaling metric specification: Add values for each required parameter from CloudWatch. You can use an existing metric, or a new metric that you create. To use your own metric, you must first publish the metric to CloudWatch. For more information, see Publish Custom Metrics in the Amazon CloudWatch User Guide. Choose a metric that changes proportionally with capacity. The value of the metric should increase or decrease in inverse proportion to the number of capacity units. That is, the value of the metric should decrease when capacity increases. For information about terminology, available metrics, or how to publish new metrics, see Amazon CloudWatch Concepts in the Amazon CloudWatch User Guide.

Sourcetype nonrec t = {
  1. metricName : MetricName.t;
    (*

    The name of the metric.

    *)
  2. namespace : MetricNamespace.t;
    (*

    The namespace of the metric.

    *)
  3. dimensions : MetricDimensions.t option;
    (*

    The dimensions of the metric. Conditional: If you published your metric with dimensions, you must specify the same dimensions in your customized scaling metric specification.

    *)
  4. statistic : MetricStatistic.t;
    (*

    The statistic of the metric.

    *)
  5. unit : MetricUnit.t option;
    (*

    The unit of the metric.

    *)
}
Sourceval context_ : string
Sourceval make : ?dimensions:??? -> ?unit:??? -> metricName:MetricName.t -> namespace:MetricNamespace.t -> statistic:MetricStatistic.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `String of MetricDimensionName.t ]) list ] list | `String of MetricName.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