RetrieveStatisticsParameters

public class RetrieveStatisticsParameters : Codable

The RetrieveStatisticsParameters class represents the

  • Indicates how the statistics should be grouped.

    Declaration

    Swift

    public let aggregatedBy: Statistic.Aggregation?
  • The starting date of the statistics to retrieve.

    Declaration

    Swift

    public let startDate: Date
  • The end date of the statistics to retrieve.

    Declaration

    Swift

    public let endDate: Date?
  • The categories to retrieve stats for.

    Declaration

    Swift

    public let categories: [String]?
  • The subusers to retrieve stats for.

    Declaration

    Swift

    public let subusers: [String]?
  • Initializes the request with a start date, as well as an end date and/or aggregation method.

    Declaration

    Swift

    public init(startDate: Date, endDate: Date? = nil, aggregatedBy: Statistic.Aggregation? = nil, categories: [String]? = nil, subusers: [String]? = nil)

    Parameters

    startDate

    The starting date of the statistics to retrieve.

    endDate

    The end date of the statistics to retrieve.

    aggregatedBy

    Indicates how the statistics should be grouped.