Scope

public struct Scope : Encodable

Scope used to limit service-based data retrieval to specified services and a specified time ranges

  • Limits data retrieval to specified services or service groups and optionally to specified time range. If both service groups and time ranges are specified, then response will be limited to data matching both limits

    Declaration

    Swift

    public init(serviceGroups: [ServiceGroupScope], timeRanges: [TimeRange]? = nil)

    Parameters

    serviceGroups

    Service groups (and associated services) to limit data request to

    timeRanges

    Optional time range to limit data retrieval to

  • Limits data retrieval to specified time range.

    Declaration

    Swift

    public init(timeRanges: [TimeRange])

    Parameters

    timeRanges

    Time ranges to limit data retrieval to