Models
airvpn.web.services.sessions.models
Session
An active VPN connection session for one of the user's devices.
Constructed from the session entries returned when listing a device's live connections.
Attributes:
| Name | Type | Description |
|---|---|---|
index |
int | None
|
Index of the session in the response list. |
session_id |
str | None
|
Unique identifier of the session. |
device_id |
str | None
|
Identifier of the connected device. |
device_name |
str | None
|
Name of the connected device. |
device_description |
str | None
|
Description of the connected device, if set. |
server_html |
str | None
|
HTML snippet describing the connected server (e.g. name/flag markup), as returned by the server. |
connected_since |
datetime
|
UTC timestamp of when the session started, converted from the response's Unix timestamp. |
bytes_write |
int | None
|
Total bytes sent during the session. |
bytes_read |
int | None
|
Total bytes received during the session. |
speed_write |
int | None
|
Current upload speed, in bytes per second. |
speed_read |
int | None
|
Current download speed, in bytes per second. |
software_name |
str | None
|
Name of the client software used to connect. |
software_img |
str | None
|
URL or path of an icon representing the client software. |
last_handshake |
datetime
|
UTC timestamp of the most recent handshake, converted from the response's Unix timestamp string. |
exit_ipv4 |
str | None
|
IPv4 address the session exits the VPN through. |
exit_ipv6 |
str | None
|
IPv6 address the session exits the VPN through. |
vpn_ipv4 |
str | None
|
IPv4 address assigned to the device within the VPN. |
vpn_ipv6 |
str | None
|
IPv6 address assigned to the device within the VPN. |
entry_layer |
str | None
|
IP layer used to connect to the entry server. |
dns_filter |
str | None
|
Name of the DNS filtering profile applied to the session. |
disconnect |
int | None
|
Flag/timestamp indicating whether and when the session was (or will be) disconnected. |