A sort rule. With type: alphabetical (the default), buckets are sorted by facet value and only order is allowed. With type: measure, buckets are sorted by a computed value: set aggregation, and set metric unless the aggregation is count.

Hierarchy

  • SpansAggregateSort

Constructors

Properties

additionalProperties?: {
    [key: string]: any;
}

A container for additional, undeclared properties. This is a holder for any undeclared properties as specified with the 'additionalProperties' keyword in the OAS document.

Type declaration

  • [key: string]: any

An aggregation function.

metric?: string

The metric to sort by (only used for type=measure).

The order to use, ascending or descending.

The type of sorting algorithm.

Generated using TypeDoc