Module Values_1.CreateFleetMetricRequestSource

Creates a fleet metric. Requires permission to access the CreateFleetMetric action.

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

    The name of the fleet metric to create.

    *)
  2. queryString : Values_0.QueryString.t;
    (*

    The search query string.

    *)
  3. aggregationType : Values_0.AggregationType.t;
    (*

    The type of the aggregation query.

    *)
  4. period : Values_0.FleetMetricPeriod.t;
    (*

    The time in seconds between fleet metric emissions. Range [60(1 min), 86400(1 day)] and must be multiple of 60.

    *)
  5. aggregationField : Values_0.AggregationField.t;
    (*

    The field to aggregate.

    *)
  6. description : Values_0.FleetMetricDescription.t option;
    (*

    The fleet metric description.

    *)
  7. queryVersion : Values_0.QueryVersion.t option;
    (*

    The query version.

    *)
  8. indexName : Values_0.IndexName.t option;
    (*

    The name of the index to search.

    *)
  9. unit : Values_0.FleetMetricUnit.t option;
    (*

    Used to support unit transformation such as milliseconds to seconds. The unit must be supported by CW metric. Default to null.

    *)
  10. tags : Values_0.TagList.t option;
    (*

    Metadata, which can be used to manage the fleet metric.

    *)
}
Sourceval context_ : string
Sourceval make : ?description:??? -> ?queryVersion:??? -> ?indexName:??? -> ?unit:??? -> ?tags:??? -> metricName:Values_0.FleetMetricName.t -> queryString:Values_0.QueryString.t -> aggregationType:Values_0.AggregationType.t -> period:Values_0.FleetMetricPeriod.t -> aggregationField:Values_0.AggregationField.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Integer of Values_0.FleetMetricPeriod.t | `List of [> `Structure of (string * [> `String of string ]) list ] list | `String of Values_0.FleetMetricName.t | `Structure of (string * [> `Enum of string | `List of [> `String of string ] list ]) list ]) 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