StatsData

@Serializable
data class StatsData(val frameStats: FrameStats? = null, val players: Int, val playingPlayers: Int, val uptime: Long, val memory: Memory, val cpu: Cpu) : Stats

Default implementation of Stats.

Constructors

Link copied to clipboard
constructor(frameStats: FrameStats? = null, players: Int, playingPlayers: Int, uptime: Long, memory: Memory, cpu: Cpu)

Properties

Link copied to clipboard
open override val cpu: Cpu

the cpu stats of the node

Link copied to clipboard
open override val frameStats: FrameStats? = null

the frame stats of the node. null if the node has no players or when retrieved via /v4/stats

Link copied to clipboard
open override val memory: Memory

the memory stats of the node

Link copied to clipboard
open override val players: Int

the amount of players connected to the node

Link copied to clipboard
open override val playingPlayers: Int

the amount of players playing a track

Link copied to clipboard
open override val uptime: Long

the uptime of the node in milliseconds