SessionStats

public struct SessionStats

Statistics for this or all sessions.

  • Bytes received this period.

    Declaration

    Swift

    public var bytesReceived: Int64
  • Bytes sent this period.

    Declaration

    Swift

    public var bytesSent: Int64
  • encrypted bytes received this period @since 9.5

    Declaration

    Swift

    public var encryptedBytesReceived: Int64
  • encrypted bytes sent this period @since 9.5

    Declaration

    Swift

    public var encryptedBytesSent: Int64
  • maximum download speed this period, megabits per second @since 9.5

    Declaration

    Swift

    public var maxDownloadSpeed: Double
  • maximum upload speed this period, megabits per second @since 9.5

    Declaration

    Swift

    public var maxUploadSpeed: Double
  • Days since first connection.

    Declaration

    Swift

    public var daysSinceFirst: Int
  • Extra download bandwidth achieved.

    Declaration

    Swift

    public var mbpsDownBenefit: Int64
  • Extra upload bandwidth achieved.

    Declaration

    Swift

    public var mbpsUpBenefit: Int64
  • Connection failovers this period.

    Declaration

    Swift

    public var numFailovers: Int64
  • Total number of sessions this period.

    Declaration

    Swift

    public var numSessions: Int64
  • Bytes retransmitted this period.

    Declaration

    Swift

    public var retransBytes: Int64
  • start time of this period, in seconds since epoch @since 9.5

    Declaration

    Swift

    public var periodStartTime: Int64
  • Minutes connected this period.

    Declaration

    Swift

    public var totalConnectedMinutes: Int64
  • \brief Contains stats regarding the TUN this period.

    • @since 8.0

    Declaration

    Swift

    public var tunStats: TunStats
  • \brief Contains stats regarding the packet handler this period, only available on PERIOD_CURRENT

    • @since 8.0

    Declaration

    Swift

    public var handlerStats: HandlerStats
  • Contains stats regarding captive portals this period @since 9.5

    Declaration

    Swift

    public var captivePortalStats: CaptivePortalStats
  • Contains stats regarding streaming mode this period @since 10.0

    Declaration

    Swift

    public var streamingStats: StreamingSessionStats