Class HealthReport
- Namespace
- Unity.Multiplayer.Core
A snapshot of a server's health, served as JSON by HealthEndpoint.
public sealed class HealthReport
- Inheritance
-
HealthReport
- Inherited Members
Properties
HttpStatus
The HTTP status code: 200 while Running, otherwise 503.
public int HttpStatus { get; }
Property Value
MaxPlayers
The player cap.
public int MaxPlayers { get; set; }
Property Value
Name
The server's name; may be empty.
public string Name { get; set; }
Property Value
PasswordProtected
True when players need a password.
public bool PasswordProtected { get; set; }
Property Value
Players
Players connected now.
public int Players { get; set; }
Property Value
Port
The game port.
public int Port { get; set; }
Property Value
Status
Where the server is in its life.
public HealthStatus Status { get; set; }
Property Value
Transport
The transport.
public TransportKind Transport { get; set; }
Property Value
UptimeSeconds
Seconds since the server process started.
public double UptimeSeconds { get; set; }
Property Value
Version
The game version.
public string Version { get; set; }
Property Value
Methods
ToJson()
The report as one JSON object.
public string ToJson()