Class ServerStatus

Represents a DDNet server's status.

Constructors

  • Construct a new ServerStatus instance.

    Parameters

    • data: {
          cpu?: number;
          hdd_total?: number;
          hdd_used?: number;
          host: string;
          load?: number;
          location: string;
          memory_total?: number;
          memory_used?: number;
          name: string;
          network_rx?: number;
          network_tx?: number;
          online4: boolean;
          online6: boolean;
          packets_rx?: number;
          packets_tx?: number;
          swap_total?: number;
          swap_used?: number;
          type: string;
          uptime?: string;
      }

    Returns ServerStatus

Properties

cpu: null | number
domain: string
hdd_total: null | number
hdd_used: null | number
host: string
load: null | number
location: string
memory_total: null | number
memory_used: null | number
name: string
network_rx: null | number
network_tx: null | number
online4: boolean
online6: boolean
packets_rx: null | number
packets_tx: null | number
swap_total: null | number
swap_used: null | number
uptime: null | string