SwiftclassAppIntentsServices

class AppIntentsServices.Instrumentation.Activity

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 38

  1. deinitdeinit
  2. fieldlet _segments: Synchronization.Mutex<[AppIntentsServices.Instrumentation.Segment]>
  3. fieldlet basePrefix: String?+0x10
  4. fieldlet completed: Synchronization.Mutex<Bool>
  5. fieldlet completionHandlers: Synchronization.Mutex<[@Sendable () -> ()]>
  6. fieldlet emitTailspinThreshold: Duration?
  7. fieldlet logPrefix: String
  8. fieldlet logUponEntering: (@Sendable () -> String)?
  9. fieldlet logUponLeaving: (@Sendable (A) -> String)?
  10. fieldlet logUponThrowing: (@Sendable (Error) -> String)?
  11. fieldlet logger: os.Logger
  12. fieldlet name: StaticString
  13. fieldlet nwActivity: AppIntentsServices.NWActivityProtocol?
  14. fieldlet powerLogId: Int?
  15. fieldlet requestMetadata: AppIntentsServices.RequestMetadata
  16. fieldlet signpostID: os.OSSignpostID
  17. fieldvar signpostInterval: os.OSSignpostIntervalState?
  18. fieldlet signposter: os.OSSignposter
  19. fieldvar startedAt: ContinuousClock.Instant?
  20. fieldvar telemetry: [String : Any]
  21. fieldlet timeout: Duration?
  22. funcaddCompletionHandler(@Sendable () -> ()) -> ()
  23. funcaddDeviceDiscoveryMetrics(devicePredicate: AppIntentsServices.IntentsServices.DevicePredicate) -> ()
  24. funcaddFetchAppDescriptionMetrics(app: AppIntentsServices.AppIdentifier) -> ()
  25. funcaddFetchFileChunkMetrics(chunkSize: UInt) -> ()
  26. funcaddFetchOptionsForActionMetrics(intent: AppIntentsServices.AppIntentSpecification, parameterIdentifier: String, hasSearchTerm: Bool) -> ()
  27. funcaddFetchValueForDeferredPropertyMetrics(specification: AppIntentsServices.DeferredEntityPropertySpecification) -> ()
  28. funcaddPerformAppIntentMetrics(specification: AppIntentsServices.AppIntentSpecification) -> ()
  29. funcaddPerformQueryMetrics(app: AppIntentsServices.AppIdentifier, specification: AppIntentsServices.QuerySpecification, resultCount: Int) -> ()
  30. funcaddSegment(AppIntentsServices.Instrumentation.Segment) -> ()
  31. funcappendTelemetry([String : Sendable]) -> ()
  32. funcbeginSegment(StaticString) -> AppIntentsServices.Instrumentation.Segment.Handle
  33. funccancelled<A where A1: Error>(error: A1) -> ()
  34. funcrecordSegment(name: String, machTimeStart: UInt64, signpostInterval: os.OSSignpostIntervalState, signpostName: StaticString) -> ()
  35. typealiastypealias ID = Swift.String
  36. varfinal var id: String { get }
  37. varfinal var leafActivity: Network.NWActivity? { get }
  38. varfinal var segments: [AppIntentsServices.Instrumentation.Segment] { get }
class AppIntentsServices.Instrumentation.Activity<A> {
    let basePrefix: Swift.String?
    let completed: Synchronization.Mutex<Swift.Bool>
    let completionHandlers: Synchronization.Mutex<[@Sendable () -> ()]>
    let emitTailspinThreshold: Swift.Duration?
    let logger: os.Logger
    let logUponEntering: (@Sendable () -> Swift.String)?
    let logUponLeaving: (@Sendable (_: A) -> Swift.String)?
    let logUponThrowing: (@Sendable (_: any Swift.Error) -> Swift.String)?
    let name: Swift.StaticString
    let nwActivity: (any AppIntentsServices.NWActivityProtocol)?
    let powerLogId: Swift.Int?
    let _segments: Synchronization.Mutex<[AppIntentsServices.Instrumentation.Segment]>
    var signpostInterval: os.OSSignpostIntervalState?
    final var startedAt: Swift.ContinuousClock.Instant?
    var telemetry: [Swift.String : Any]
    let timeout: Swift.Duration?
    let logPrefix: Swift.String
    let requestMetadata: AppIntentsServices.RequestMetadata
    let signposter: os.OSSignposter
    let signpostID: os.OSSignpostID

    final var id: Swift.String {
        get
    }
    final var leafActivity: Network.NWActivity? {
        get
    }
    final var segments: [AppIntentsServices.Instrumentation.Segment] {
        get
    }

    final func addPerformAppIntentMetrics(specification: AppIntentsServices.AppIntentSpecification)
    final func addFetchAppDescriptionMetrics(app: AppIntentsServices.AppIdentifier)
    final func addSegment(_: AppIntentsServices.Instrumentation.Segment)
    final func beginSegment(_: Swift.StaticString) -> AppIntentsServices.Instrumentation.Segment.Handle
    final func recordSegment(name: Swift.String, machTimeStart: Swift.UInt64, signpostInterval: os.OSSignpostIntervalState, signpostName: Swift.StaticString)
    final func appendTelemetry(_: [Swift.String : any Swift.Sendable])
    final func addCompletionHandler(_: @escaping @Sendable () -> ())
    final func addPerformQueryMetrics(app: AppIntentsServices.AppIdentifier, specification: AppIntentsServices.QuerySpecification, resultCount: Swift.Int)
    final func addFetchFileChunkMetrics(chunkSize: Swift.UInt)
    final func addDeviceDiscoveryMetrics(devicePredicate: AppIntentsServices.IntentsServices.DevicePredicate)
    final func addFetchOptionsForActionMetrics(intent: AppIntentsServices.AppIntentSpecification, parameterIdentifier: Swift.String, hasSearchTerm: Swift.Bool)
    final func addFetchValueForDeferredPropertyMetrics(specification: AppIntentsServices.DeferredEntityPropertySpecification)
    final func cancelled<A1>(error: A1) where A1: Swift.Error

    deinit
}