SwiftenumToolKit
IndexingTelemetry
enum ToolKit.IndexingTelemetry
Members 27
- func
static awaitPowerLogDelivery() async -> () - func
static counts(forBundle: String) -> ToolKit.IndexingTelemetry.BundleCounts - func
static drain() async -> () - func
static flush(stage: ToolKit.IndexingTelemetry.Stage, perBundle: [String : ToolKit.IndexingTelemetry.BundleStageData], reasonFor: (String) -> ToolKit.IndexingTelemetry.Reason) -> () - func
static flushRunBuffer(reasonFor: (String) -> ToolKit.IndexingTelemetry.Reason) -> () - func
static keepAliveRemaining(lastSend: Double?, now: Double) -> Double - func
static prewarm() -> () - func
static reason(isLanguageChange: Bool, changeset: VoiceShortcutClient.ToolKitIndexingReason.Changeset) -> (String) -> ToolKit.IndexingTelemetry.Reason - func
static recordBundle(_: String, counts: ToolKit.IndexingTelemetry.BundleCounts, startDate: Foundation.Date, endDate: Foundation.Date) -> () - func
static recordIndexedEntity(bundleID: String) -> () - func
static recordIndexedEnum(bundleID: String) -> () - func
static recordIndexedTool(bundleID: String) -> () - func
static resetAccrual() -> () - func
static resetForTesting() -> () - func
static stageData(for: ToolKit.IndexingTelemetry.Stage, fallbackStart: Foundation.Date, fallbackEnd: Foundation.Date) -> [String : ToolKit.IndexingTelemetry.BundleStageData] - func
static threshold(for: ToolKit.IndexingTelemetry.Stage) -> Int - var
static var backstopDropCount: Int { get } - var
static var clock: () -> Double { get set } - var
static var combinedThreshold: Int { get } - var
static var emissionEnabledOverride: Bool? { get set } - var
static var initialIndexingType: Int { get } - var
static var maxEventsPerFlush: Int { get } - var
static var powerLogBatchFlushWindow: Double { get } - var
static var powerLogFlushMargin: Double { get } - var
static var rateLimitEventCount: Int { get } - var
static var rateLimitWindow: Double { get } - var
static var sink: ToolKit.IndexingTelemetrySink { get set }
Header
enum IndexingTelemetry { struct BundleCounts { var intents: Swift.Int var entities: Swift.Int var enums: Swift.Int init(intents: Swift.Int, entities: Swift.Int, enums: Swift.Int) var total: Swift.Int { get } } enum Stage { case types case tools case container } struct BundleStageData { let counts: ToolKit.IndexingTelemetry.BundleCounts let startDate: Foundation.Date let endDate: Foundation.Date init(counts: ToolKit.IndexingTelemetry.BundleCounts, startDate: Foundation.Date, endDate: Foundation.Date) } enum Reason { case unknown case osUpgrade case languageChange case appInstall case appUninstall } enum PayloadKey { static var bundleID: Swift.String { get } static var endDate: Swift.String { get } static var entityCount: Swift.String { get } static var enumCount: Swift.String { get } static var intentCount: Swift.String { get } static var processName: Swift.String { get } static var reason: Swift.String { get } static var startDate: Swift.String { get } static var timeSensitiveEntryDate: Swift.String { get } static var totalItemCount: Swift.String { get } static var type: Swift.String { get } } struct PendingBundleEvent { let bundleID: Swift.String let counts: ToolKit.IndexingTelemetry.BundleCounts let startDate: Foundation.Date let endDate: Foundation.Date } struct BundleAccrual { var counts: ToolKit.IndexingTelemetry.BundleCounts var typesStart: Foundation.Date? var typesEnd: Foundation.Date? var toolsStart: Foundation.Date? var toolsEnd: Foundation.Date? } static var backstopDropCount: Swift.Int { get } static var clock: () -> Swift.Double { get set } static var combinedThreshold: Swift.Int { get } static var emissionEnabledOverride: Swift.Bool? { get set } static var initialIndexingType: Swift.Int { get } static var maxEventsPerFlush: Swift.Int { get } static var powerLogBatchFlushWindow: Swift.Double { get } static var powerLogFlushMargin: Swift.Double { get } static var rateLimitEventCount: Swift.Int { get } static var rateLimitWindow: Swift.Double { get } static var sink: any ToolKit.IndexingTelemetrySink { get set } static func recordIndexedTool(bundleID: Swift.String) static func recordBundle(_: Swift.String, counts: ToolKit.IndexingTelemetry.BundleCounts, startDate: Foundation.Date, endDate: Foundation.Date) static func resetAccrual() static func flushRunBuffer(reasonFor: (_: Swift.String) -> ToolKit.IndexingTelemetry.Reason) static func resetForTesting() static func recordIndexedEnum(bundleID: Swift.String) static func keepAliveRemaining(lastSend: Swift.Double?, now: Swift.Double) -> Swift.Double static func recordIndexedEntity(bundleID: Swift.String) static func awaitPowerLogDelivery() async static func drain() async static func flush(stage: ToolKit.IndexingTelemetry.Stage, perBundle: [Swift.String : ToolKit.IndexingTelemetry.BundleStageData], reasonFor: (_: Swift.String) -> ToolKit.IndexingTelemetry.Reason) static func counts(forBundle: Swift.String) -> ToolKit.IndexingTelemetry.BundleCounts static func reason(isLanguageChange: Swift.Bool, changeset: VoiceShortcutClient.ToolKitIndexingReason.Changeset) -> (_: Swift.String) -> ToolKit.IndexingTelemetry.Reason static func prewarm() static func stageData(for: ToolKit.IndexingTelemetry.Stage, fallbackStart: Foundation.Date, fallbackEnd: Foundation.Date) -> [Swift.String : ToolKit.IndexingTelemetry.BundleStageData] static func threshold(for: ToolKit.IndexingTelemetry.Stage) -> Swift.Int }