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;
      }
      • Optionalcpu?: number
      • Optionalhdd_total?: number
      • Optionalhdd_used?: number
      • host: string
      • Optionalload?: number
      • location: string
      • Optionalmemory_total?: number
      • Optionalmemory_used?: number
      • name: string
      • Optionalnetwork_rx?: number
      • Optionalnetwork_tx?: number
      • online4: boolean
      • online6: boolean
      • Optionalpackets_rx?: number
      • Optionalpackets_tx?: number
      • Optionalswap_total?: number
      • Optionalswap_used?: number
      • type: string
      • Optionaluptime?: 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