struct

QBittorrent::Model::ServerState

Inherits JSON::Serializable::Unmapped < JSON::Serializable < Struct < Value < Object

The global server-state object nested under server_state in sync/maindata (see ext/api-map.md ยง3). It carries the same speed/data/rate-limit/connection counters as transfer/info plus the richer disk-cache, queueing and all-time statistics the sync payload adds.

This mirrors TransferInfo's field layout rather than reusing it, because sync is delta-based: on an incremental response only the fields that changed since the last response id are present. Every field is therefore nilable so any subset decodes without raising, and JSON::Serializable::Unmapped preserves keys not modelled here (forward drift on newer builds).

Byte and speed counters are Int64 (they routinely exceed Int32); ratio/percentage-like values the API sends as strings are kept as String? verbatim rather than coerced.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

alltime_dl

All-time downloaded data, bytes.

Source
alltime_ul

All-time uploaded data, bytes.

Source
average_time_queue

Average time a job spends queued, milliseconds.

Source
connection_status

Connection status. Decoded tolerantly: an unknown/null wire value becomes nil rather than raising (see ConnectionStatusConverter).

Source
dht_nodes

Number of DHT nodes currently connected.

Source
dl_info_data

Data downloaded this session, bytes.

Source
dl_info_speed

Current global download speed, bytes/s.

Source
dl_rate_limit

Global download rate limit, bytes/s (0 = unlimited).

Source
free_space_on_disk

Free space on the default save-path disk, bytes.

Source
global_ratio

All-time (global) share ratio, sent as a string by the API.

Source
last_external_address_v4

Last detected external IPv4 address (qB 5.x; e.g. "0.0.0.0").

Source
last_external_address_v6

Last detected external IPv6 address (qB 5.x; empty when none).

Source
queued_io_jobs

Number of queued disk I/O jobs.

Source
queueing

Whether torrent queueing is enabled.

Source
read_cache_hits

Read cache hit ratio (percentage), sent as a string.

Source
read_cache_overload

Read cache overload (percentage), sent as a string.

Source
refresh_interval

WebUI refresh interval, milliseconds.

Source
total_buffers_size

Total buffer size, bytes.

Source
total_peer_connections

Total peer connections.

Source
total_queued_size

Total size of queued I/O, bytes.

Source
total_wasted_session

Data wasted this session (hashfail etc.), bytes.

Source
up_info_data

Data uploaded this session, bytes.

Source
up_info_speed

Current global upload speed, bytes/s.

Source
up_rate_limit

Global upload rate limit, bytes/s (0 = unlimited).

Source
use_alt_speed_limits

Whether the alternative speed limits are currently active.

Source
use_subcategories

Whether subcategories are enabled (qB 5.x).

Source
write_cache_overload

Write cache overload (percentage), sent as a string.

Source