Instance Property

transactionMetrics

An array of metrics for each individual request-response transaction made during the execution of the task.

Declaration

var transactionMetrics: [URLSessionTaskTransactionMetrics] { get }

See Also

Accessing Task Metrics

class URLSessionTaskTransactionMetrics

An object encapsulating the performance metrics collected during the execution of a session task.

var taskInterval: DateInterval

The time interval between when a task is instantiated and when the task is completed.

var redirectCount: Int

The number of redirects that occurred during the execution of the task.