Table of Contents

Class ServerBandwidthController

Namespace
FishMMO.ControlPanel.Controllers
Assembly
FishMMO-ControlPanel.dll

What every server process sent and received: the Bandwidth page's one read.

[ApiController]
[Route("api/servers/bandwidth")]
public sealed class ServerBandwidthController : ControllerBase
Inheritance
ServerBandwidthController
Inherited Members

Remarks

Every figure says how it was obtained. The application bytes and the UDP payload are MEASURED by each server's own transport (the managed WebTransport socket and msquic). The bytes on the wire are ESTIMATED — payload plus 28 bytes of IPv4 and UDP header per datagram — because no user-space counter sees an IP header; the estimate is computed as this reads, never stored, and is an upper bound because msquic over-counts the datagrams of a burst it sends in several batches. The field names carry Estimated so no client can present one as the other.

No data is null, never zero. A server with no rows in a window has no figure for it; the page prints "no data". A server that ran and moved nothing has zeros, which is a different fact.

At Operator, beside the server board it belongs with. A read, so the audit filter records it as view.serverbandwidth.get with its query string, except for the page's own timer, which marks itself as an automatic refresh.

Constructors

ServerBandwidthController(IServerBandwidthReportService, ILogger<ServerBandwidthController>)

public ServerBandwidthController(IServerBandwidthReportService reports, ILogger<ServerBandwidthController> log)

Parameters

reports IServerBandwidthReportService
log ILogger<ServerBandwidthController>

Methods

Get(string?, string?, string?)

The per-server and per-tier figures, and one chart.

[HttpGet]
[Authorize(Policy = "Operator")]
public Task<IActionResult> Get(string? range, string? kind, string? name)

Parameters

range string

hour (the default), day or month (30 days): the chart's span and the peak's.

kind string

Chart one tier — login, world or scene — or every server when empty.

name string

Chart one server of kind.

Returns

Task<IActionResult>