namespace NATS.Server.Monitoring;

public sealed class LeafzHandler
{
    private readonly NatsServer _server;

    public LeafzHandler(NatsServer server)
    {
        _server = server;
    }

    public object Build()
    {
        var leafs = _server.Stats.Leafs;
        return new
        {
            leafs,
            num_leafs = leafs,
        };
    }
}
