Module Values_1.GetPercentilesRequestSource

Groups the aggregated values that match the query into percentile groupings. The default percentile groupings are: 1,5,25,50,75,95,99, although you can specify your own when you call GetPercentiles. This function returns a value for each percentile group specified (or the default percentile groupings). The percentile group "1" contains the aggregated field value that occurs in approximately one percent of the values that match the query. The percentile group "5" contains the aggregated field value that occurs in approximately five percent of the values that match the query, and so on. The result is an approximation, the more values that match the query, the more accurate the percentile values. Requires permission to access the GetPercentiles action.

Sourcetype nonrec t = {
  1. indexName : Values_0.IndexName.t option;
    (*

    The name of the index to search.

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

    The search query string.

    *)
  3. aggregationField : Values_0.AggregationField.t option;
    (*

    The field to aggregate.

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

    The query version.

    *)
  5. percents : Values_0.PercentList.t option;
    (*

    The percentile groups returned.

    *)
}
Sourceval context_ : string
Sourceval make : ?indexName:??? -> ?aggregationField:??? -> ?queryVersion:??? -> ?percents:??? -> queryString:Values_0.QueryString.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Double of float ] list | `String of Values_0.IndexName.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