StatsEvent

interface StatsEvent

Event received regularly from nodes to update node stats.

Types

Link copied to clipboard
@Serializable
data class Cpu(val cores: Int, val systemLoad: Double, val lavalinkLoad: Double)

Cpu statistics of a node.

Link copied to clipboard
@Serializable
data class FrameStats(val sent: Int, val nulled: Int, val deficit: Int)

Statistics for frames of node for the last 60 seconds.

Link copied to clipboard
@Serializable
data class Memory(val free: Long, val used: Long, val allocated: Long, val reservable: Long)

Memory statistics of a node.

Properties

Link copied to clipboard
abstract val cpu: StatsEvent.Cpu

the Cpu statistics of this node

Link copied to clipboard

the FrameStats statistics of this node (only present if players 0)

Link copied to clipboard

the Memory statistics of this node

Link copied to clipboard
abstract val players: Int

amount of players on this node

Link copied to clipboard
abstract val playingPlayers: Int

amount of playing players on this node

Link copied to clipboard
abstract val uptime: Long

the amount of milliseconds the node was running