Module Values_1.GetBucketsAggregationResponseSource

Aggregates on indexed data with search queries pertaining to particular fields. Requires permission to access the GetBucketsAggregation action.

Sourcetype nonrec t = {
  1. totalCount : Values_0.Count.t option;
    (*

    The total number of things that fit the query string criteria.

    *)
  2. buckets : Values_0.Buckets.t option;
    (*

    The main part of the response with a list of buckets. Each bucket contains a keyValue and a count. keyValue: The aggregation field value counted for the particular bucket. count: The number of documents that have that value.

    *)
}
Sourcetype nonrec error = [
  1. | `IndexNotReadyException of Values_0.IndexNotReadyException.t
  2. | `InternalFailureException of Values_0.InternalFailureException.t
  3. | `InvalidAggregationException of Values_0.InvalidAggregationException.t
  4. | `InvalidQueryException of Values_0.InvalidQueryException.t
  5. | `InvalidRequestException of Values_0.InvalidRequestException.t
  6. | `ResourceNotFoundException of Values_0.ResourceNotFoundException.t
  7. | `ServiceUnavailableException of Values_0.ServiceUnavailableException.t
  8. | `ThrottlingException of Values_0.ThrottlingException.t
  9. | `UnauthorizedException of Values_0.UnauthorizedException.t
  10. | `Unknown_operation_error of string * string option
]
Sourceval make : ?totalCount:??? -> ?buckets:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `IndexNotReadyException of Values_0.IndexNotReadyException.t | `InternalFailureException of Values_0.InternalFailureException.t | `InvalidAggregationException of Values_0.InvalidAggregationException.t | `InvalidQueryException of Values_0.InvalidQueryException.t | `InvalidRequestException of Values_0.InvalidRequestException.t | `ResourceNotFoundException of Values_0.ResourceNotFoundException.t | `ServiceUnavailableException of Values_0.ServiceUnavailableException.t | `ThrottlingException of Values_0.ThrottlingException.t | `UnauthorizedException of Values_0.UnauthorizedException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `IndexNotReadyException of Values_0.IndexNotReadyException.t | `InternalFailureException of Values_0.InternalFailureException.t | `InvalidAggregationException of Values_0.InvalidAggregationException.t | `InvalidQueryException of Values_0.InvalidQueryException.t | `InvalidRequestException of Values_0.InvalidRequestException.t | `ResourceNotFoundException of Values_0.ResourceNotFoundException.t | `ServiceUnavailableException of Values_0.ServiceUnavailableException.t | `ThrottlingException of Values_0.ThrottlingException.t | `UnauthorizedException of Values_0.UnauthorizedException.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Integer of Values_0.Count.t | `List of [> `Structure of (string * [> `Integer of int | `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