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

int

MaxPlayers

The player cap.

public int MaxPlayers { get; set; }

Property Value

int

Name

The server's name; may be empty.

public string Name { get; set; }

Property Value

string

PasswordProtected

True when players need a password.

public bool PasswordProtected { get; set; }

Property Value

bool

Players

Players connected now.

public int Players { get; set; }

Property Value

int

Port

The game port.

public int Port { get; set; }

Property Value

int

Status

Where the server is in its life.

public HealthStatus Status { get; set; }

Property Value

HealthStatus

Transport

The transport.

public TransportKind Transport { get; set; }

Property Value

TransportKind

UptimeSeconds

Seconds since the server process started.

public double UptimeSeconds { get; set; }

Property Value

double

Version

The game version.

public string Version { get; set; }

Property Value

string

Methods

ToJson()

The report as one JSON object.

public string ToJson()

Returns

string