LavalinkStats class

A collection of statistics about a Lavalink server.

Annotations
  • @JsonSerializable()

Constructors

LavalinkStats({required int players, required int playingPlayers, required Duration uptime, required MemoryStats memory, required CpuStats cpu, required FrameStats? frames})
Create a new LavalinkStats.
LavalinkStats.fromJson(Map<String, Object?> json)
factory

Properties

cpu CpuStats
Statistics about the server's CPU usage.
final
frames FrameStats?
Statistics about audio frames sent by the server.
final
hashCode int
The hash code for this object.
no setterinherited
memory MemoryStats
Statistics about the server's memory usage.
final
players int
The current number of players.
final
playingPlayers int
The current number of players playing audio.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uptime Duration
The server's uptime.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited