Class MetricsManager<T, P>

Type Parameters

Constructors

Properties

Methods

Constructors

Properties

propertyName: P

Methods

  • Define the metrics to be returned for a BOOL or BOOL_ARRAY property when aggregating over a collection.

    If none of the arguments are provided then all metrics will be returned.

    Parameters

    • Optional metrics: ("count" | "percentageFalse" | "percentageTrue" | "totalFalse" | "totalTrue")[]

      The metrics to return.

    Returns MetricsBoolean<P>

    The metrics for the property.

  • Define the metrics to be returned for a DATE or DATE_ARRAY property when aggregating over a collection.

    If none of the arguments are provided then all metrics will be returned.

    Parameters

    • Optional metrics: ("mode" | "count" | "minimum" | "maximum" | "median")[]

      The metrics to return.

    Returns MetricsDate<P>

    The metrics for the property.

  • Define the metrics to be returned for an INT or INT_ARRAY property when aggregating over a collection.

    If none of the arguments are provided then all metrics will be returned.

    Parameters

    • Optional metrics: ("mode" | "count" | "mean" | "sum" | "minimum" | "maximum" | "median")[]

      The metrics to return.

    Returns MetricsInteger<P>

    The metrics for the property.

  • Define the metrics to be returned for a NUMBER or NUMBER_ARRAY property when aggregating over a collection.

    If none of the arguments are provided then all metrics will be returned.

    Parameters

    • Optional metrics: ("mode" | "count" | "mean" | "sum" | "minimum" | "maximum" | "median")[]

      The metrics to return.

    Returns MetricsNumber<P>

    The metrics for the property.

  • Define the metrics to be returned for a TEXT or TEXT_ARRAY property when aggregating over a collection.

    If none of the arguments are provided then all metrics will be returned.

    Parameters

    • Optional metrics: ("count" | "topOccurrencesOccurs" | "topOccurrencesValue")[]

      The metrics to return.

    • Optional minOccurrences: number

      The how many top occurrences to return.

    Returns MetricsText<P>

    The metrics for the property.