Table of Contents

Class MemoryStats

Namespace
Nyra.Entities
Assembly
Nyra.dll

Memory statistics of an audio node, in bytes.

public sealed record MemoryStats : IEquatable<MemoryStats>
Inheritance
MemoryStats
Implements
Inherited Members

Remarks

Lavalink reports the JVM process (runtime free, total, max), NodeLink reports host-level free and total for Free and Reservable and the process heap for Used and Allocated, the members are not comparable across the two servers.

Properties

Allocated

The memory allocated by the server.

[JsonPropertyName("allocated")]
[JsonInclude]
[JsonConverter(typeof(RoundedInt64Converter))]
public long Allocated { get; }

Property Value

long

Free

The free memory of the server.

[JsonPropertyName("free")]
[JsonInclude]
[JsonConverter(typeof(RoundedInt64Converter))]
public long Free { get; }

Property Value

long

Reservable

The memory ceiling the server process may still grow to.

[JsonPropertyName("reservable")]
[JsonInclude]
[JsonConverter(typeof(RoundedInt64Converter))]
public long Reservable { get; }

Property Value

long

Used

The used memory of the server.

[JsonPropertyName("used")]
[JsonInclude]
[JsonConverter(typeof(RoundedInt64Converter))]
public long Used { get; }

Property Value

long