QueryTimesliceAggregation

public struct QueryTimesliceAggregation : Codable, Equatable

A specialized histogram aggregation that uses dates to create interval segments.

Enums with an associated value of QueryTimesliceAggregation: QueryAggregation

  • The type of aggregation command used. Options include: term, histogram, timeslice, nested, filter, min, max, sum, average, unique_count, and top_hits.

    Declaration

    Swift

    public var type: String
  • The date field name used to create the timeslice.

    Declaration

    Swift

    public var field: String
  • The date interval value. Valid values are seconds, minutes, hours, days, weeks, and years.

    Declaration

    Swift

    public var interval: String
  • Identifier specified in the query request of this aggregation.

    Declaration

    Swift

    public var name: String?
  • Array of aggregation results.

    Declaration

    Swift

    public var results: [QueryTimesliceAggregationResult]?