SwiftstructHomeKitEvents
struct HomeKitEvents.EventQuery
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolHMFoundation.HMF.Logging
- protocolHomeKitEvents.Logging
Members 16
- func
static fetchOldestDate(database: HomeKitEvents.DatabaseConfiguration, homeIdentifier: Foundation.UUID, targetCloudKitZone: HomeKitEvents.Configuration.TargetCloudKitZone, queryIdentifier: Foundation.UUID, qualityOfService: NSQualityOfService) async throws -> Foundation.Date? - var
static var logCategory: String { get } - field
let configuration: HomeKitEvents.EventQuery.Configuration - func
start() -> AsyncThrowingStream<HomeKitEvents.SomeEvent, Error> - init
init(features: HomeKitEvents.FeaturesDataSource, homeIdentifier: Foundation.UUID, dateInterval: Foundation.DateInterval, categories: Set<HomeKitEvents.EventCategory>?, accessoryIdentifier: Foundation.UUID?, resultsLimit: Int?, maxRecordsPerQuery: Int?, dateIntervalStartOpen: Bool, dateIntervalEndOpen: Bool, scope: HomeKitEvents.QueryScope, targetCloudKitZone: HomeKitEvents.Configuration.TargetCloudKitZone, qualityOfService: NSQualityOfService, operationGroup: CKOperationGroup?, retainEncodedEvent: Bool) -> HomeKitEvents.EventQuery - init
init(features: HomeKitEvents.FeaturesDataSource, homeIdentifier: Foundation.UUID, dateInterval: Foundation.DateInterval, categories: Set<HomeKitEvents.EventCategory>?, accessoryIdentifier: Foundation.UUID?, resultsLimit: Int?, batchLimit: Int?, firstBatchLimit: Int?, dateIntervalStartOpen: Bool, dateIntervalEndOpen: Bool, scope: HomeKitEvents.QueryScope, targetCloudKitZone: HomeKitEvents.Configuration.TargetCloudKitZone, qualityOfService: NSQualityOfService, operationGroup: CKOperationGroup?, retainEncodedEvent: Bool) -> HomeKitEvents.EventQuery - init
init(features: HomeKitEvents.FeaturesDataSource, database: HomeKitEvents.DatabaseConfiguration, homeIdentifier: Foundation.UUID, dateInterval: Foundation.DateInterval, categories: Set<HomeKitEvents.EventCategory>?, accessoryIdentifier: Foundation.UUID?, resultsLimit: Int?, batchLimit: Int?, firstBatchLimit: Int?, dateIntervalStartOpen: Bool, dateIntervalEndOpen: Bool, scope: HomeKitEvents.QueryScope, targetCloudKitZone: HomeKitEvents.Configuration.TargetCloudKitZone, qualityOfService: NSQualityOfService, retainEncodedEvent: Bool) -> HomeKitEvents.EventQuery - var
var accessoryIdentifier: Foundation.UUID? { get } - var
var categories: Set<HomeKitEvents.EventCategory>? { get } - var
var dateInterval: Foundation.DateInterval { get } - var
var dateIntervalEndOpen: Bool { get } - var
var dateIntervalStartOpen: Bool { get } - var
var homeIdentifier: Foundation.UUID { get } - var
var queryIdentifier: Foundation.UUID { get } - var
var resultsLimit: Int? { get } - var
var scope: HomeKitEvents.QueryScope { get }
Header
struct EventQuery { struct Configuration { let features: any HomeKitEvents.FeaturesDataSource let database: HomeKitEvents.DatabaseConfiguration let queryIdentifier: Foundation.UUID let homeIdentifier: Foundation.UUID let dateInterval: Foundation.DateInterval let categories: Swift.Set<HomeKitEvents.EventCategory>? let categoriesToMatchAgainstEvents: Swift.Set<HomeKitEvents.EventCategory>? let accessoryIdentifier: Foundation.UUID? let resultsLimit: Swift.Int? let batchLimit: Swift.Int? let firstBatchLimit: Swift.Int? let dateIntervalStartOpen: Swift.Bool let dateIntervalEndOpen: Swift.Bool let qualityOfService: __C.NSQualityOfService? let metricsSubmitter: any __C.HMMLogEventSubmitting let maxTagsPerQuery: Swift.Int let encryptionKeyCache: any HomeKitEvents.AsyncCache let maxFakeRecordsPerHour: Swift.Int let retainEncodedEvent: Swift.Bool let targetCloudKitZone: HomeKitEvents.Configuration.TargetCloudKitZone } struct FetchedRecordInfo { let name: Foundation.UUID let event: HomeKitEvents.SomeEvent } struct TagPartition { let dateInterval: Foundation.DateInterval let partitionDateInterval: Foundation.DateInterval let tags: [Foundation.Data] } let configuration: HomeKitEvents.EventQuery.Configuration init(features: any HomeKitEvents.FeaturesDataSource, homeIdentifier: Foundation.UUID, dateInterval: Foundation.DateInterval, categories: Swift.Set<HomeKitEvents.EventCategory>?, accessoryIdentifier: Foundation.UUID?, resultsLimit: Swift.Int?, maxRecordsPerQuery: Swift.Int?, dateIntervalStartOpen: Swift.Bool, dateIntervalEndOpen: Swift.Bool, scope: HomeKitEvents.QueryScope, targetCloudKitZone: HomeKitEvents.Configuration.TargetCloudKitZone, qualityOfService: __C.NSQualityOfService, operationGroup: __C.CKOperationGroup?, retainEncodedEvent: Swift.Bool) init(features: any HomeKitEvents.FeaturesDataSource, homeIdentifier: Foundation.UUID, dateInterval: Foundation.DateInterval, categories: Swift.Set<HomeKitEvents.EventCategory>?, accessoryIdentifier: Foundation.UUID?, resultsLimit: Swift.Int?, batchLimit: Swift.Int?, firstBatchLimit: Swift.Int?, dateIntervalStartOpen: Swift.Bool, dateIntervalEndOpen: Swift.Bool, scope: HomeKitEvents.QueryScope, targetCloudKitZone: HomeKitEvents.Configuration.TargetCloudKitZone, qualityOfService: __C.NSQualityOfService, operationGroup: __C.CKOperationGroup?, retainEncodedEvent: Swift.Bool) init(features: any HomeKitEvents.FeaturesDataSource, database: HomeKitEvents.DatabaseConfiguration, homeIdentifier: Foundation.UUID, dateInterval: Foundation.DateInterval, categories: Swift.Set<HomeKitEvents.EventCategory>?, accessoryIdentifier: Foundation.UUID?, resultsLimit: Swift.Int?, batchLimit: Swift.Int?, firstBatchLimit: Swift.Int?, dateIntervalStartOpen: Swift.Bool, dateIntervalEndOpen: Swift.Bool, scope: HomeKitEvents.QueryScope, targetCloudKitZone: HomeKitEvents.Configuration.TargetCloudKitZone, qualityOfService: __C.NSQualityOfService, retainEncodedEvent: Swift.Bool) var accessoryIdentifier: Foundation.UUID? { get } var categories: Swift.Set<HomeKitEvents.EventCategory>? { get } var dateInterval: Foundation.DateInterval { get } var dateIntervalEndOpen: Swift.Bool { get } var dateIntervalStartOpen: Swift.Bool { get } var homeIdentifier: Foundation.UUID { get } var queryIdentifier: Foundation.UUID { get } var resultsLimit: Swift.Int? { get } var scope: HomeKitEvents.QueryScope { get } func start() -> Swift.AsyncThrowingStream<HomeKitEvents.SomeEvent, any Swift.Error> static var logCategory: Swift.String { get } static func fetchOldestDate(database: HomeKitEvents.DatabaseConfiguration, homeIdentifier: Foundation.UUID, targetCloudKitZone: HomeKitEvents.Configuration.TargetCloudKitZone, queryIdentifier: Foundation.UUID, qualityOfService: __C.NSQualityOfService) async throws -> Foundation.Date? }