Skip to main content
Version: v3.0.0 (current)

NodeCPUStats

Since 3.0.0. The CPU use as the node sends it, in the cpu of a raw StatsMessage: Lavalink gives lavalinkLoad, NodeLink nodelinkLoad instead. node.stats and rest.getStats() give a CPUStats with lavalinkLoad always filled.

Definition​

export interface NodeCPUStats {
/** The core amount the host machine has. */
cores: number;
/** The system load, from 0 to 1. */
systemLoad: number;
/** The load of the Lavalink process, from 0 to 1 of all the cores, on Lavalink only. */
lavalinkLoad?: number;
/** The load of the NodeLink process, from 0 to 1 of all the cores, on NodeLink only. */
nodelinkLoad?: number;
}