Module Values_0.AggregationFunctionSource

An aggregation function aggregates values from a dimension or measure. This is a union type structure. For this structure to be valid, only one of the attributes can be defined.

Sourcetype nonrec t = {
  1. numericalAggregationFunction : NumericalAggregationFunction.t option;
    (*

    Aggregation for numerical values.

    *)
  2. categoricalAggregationFunction : CategoricalAggregationFunction.t option;
    (*

    Aggregation for categorical values. COUNT: Aggregate by the total number of values, including duplicates. DISTINCT_COUNT: Aggregate by the total number of distinct values.

    *)
  3. dateAggregationFunction : DateAggregationFunction.t option;
    (*

    Aggregation for date values. COUNT: Aggregate by the total number of values, including duplicates. DISTINCT_COUNT: Aggregate by the total number of distinct values. MIN: Select the smallest date value. MAX: Select the largest date value.

    *)
  4. attributeAggregationFunction : AttributeAggregationFunction.t option;
    (*

    Aggregation for attributes.

    *)
}
Sourceval make : ?numericalAggregationFunction:??? -> ?categoricalAggregationFunction:??? -> ?dateAggregationFunction:??? -> ?attributeAggregationFunction:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Structure of (string * [> `Enum of string | `String of String_.t | `Structure of (string * [> `Double of PercentileValue.t ]) 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