Node Stats#

This is obtained via Node.stats.

class mafic.NodeStats(data)#

Bases: object

Represents stats for a node.

player_count#

The amount of players connected to the node.

Type:

int

playing_player_count#

The amount of players playing on the node.

Type:

int

uptime#

The uptime of the node.

Type:

datetime.timedelta

memory#

The memory stats of the node.

Type:

MemoryStats

cpu#

The CPU stats of the node.

Type:

CPUStats

frame_stats#

The frame stats of the node.

Type:

Optional[FrameStats]

class mafic.CPUStats(payload)#

Bases: object

Represents CPU stats for a node.

cores#

The number of cores the node has.

Type:

int

system_load#

The load on the whole system lavalink is on..

Type:

int

The load Lavalink is using.

Type:

int

class mafic.MemoryStats(payload)#

Bases: object

Represents memory stats for a node.

free#

The amount of free memory.

Type:

int

used#

The amount of used memory.

Type:

int

allocated#

The amount of allocated memory.

Type:

int

reservable#

The amount of reservable memory for the node. Set by -Xmx for Java.

Type:

int

Attributes
class mafic.FrameStats(payload)#

Bases: object

Represents frame stats for a node.

sent#

The amount of frames sent.

Type:

int

nulled#

The amount of frames nulled.

Type:

int

deficit#

The amount of frames deficit.

Type:

int