ConnectionPoolMetrics

public struct ConnectionPoolMetrics : CustomStringConvertible

Performance metrics for a ConnectionPool.

  • The start of the time period described by this ConnectionPoolMetrics instance.

    Declaration

    Swift

    public let periodBeginning: Date
  • The end of the time period described by this ConnectionPoolMetrics instance.

    Declaration

    Swift

    public let periodEnding: Date
  • The ConnectionPoolConfiguration at the end of the period.

    Declaration

    Swift

    public let connectionPoolConfiguration: ConnectionPoolConfiguration
  • The number of requests for connections for which connections were successfully allocated.

    Declaration

    Swift

    public let successfulRequests: Int
  • The number of requests for connections that failed because the request backlog was too large.

    Declaration

    Swift

    public let unsuccessfulRequestsTooBusy: Int
  • The number of requests for connections that failed because connections were not allocated before the requests timed out.

    Declaration

    Swift

    public let unsuccessfulRequestsTimedOut: Int
  • The number of requests for connections that failed because errors occurred.

    Declaration

    Swift

    public let unsuccessfulRequestsError: Int
  • The average time, in seconds, that requests for connections waited before connections were successfully allocated.

    Declaration

    Swift

    public let averageTimeToAcquireConnection: TimeInterval
  • The minimum size of the backlog of requests for connections.

    Declaration

    Swift

    public let minimumPendingRequests: Int
  • The maximum size of the backlog of requests for connections.

    Declaration

    Swift

    public let maximumPendingRequests: Int
  • The number of connections in the connection pool at the start of the period.

    Declaration

    Swift

    public let connectionsAtStartOfPeriod: Int
  • The number of connections in the connection pool at the end of the period.

    Declaration

    Swift

    public let connectionsAtEndOfPeriod: Int
  • The number of new connections added to the connection pool.

    Declaration

    Swift

    public let connectionsCreated: Int
  • The number of connections that, having been allocated to requests, were closed by the requestors before being released, causing them to be discarded from the connection pool.

    Declaration

    Swift

    public let allocatedConnectionsClosedByRequestor: Int
  • The number of connections that, having been allocated to requests, were not released by the requestors before they timed out, causing them to be closed and discarded from the connection pool.

    Declaration

    Swift

    public let allocatedConnectionsTimedOut: Int
  • A formatted string representation of this ConnectionPoolMetrics instance.

    Declaration

    Swift

    public var description: String { get }