'integer', 'load' => 'float', 'memory_total' => 'float', 'memory_used' => 'float', 'memory_free' => 'float', 'disk_total' => 'float', 'disk_used' => 'float', 'disk_free' => 'float', ]; public function server(): BelongsTo { return $this->belongsTo(Server::class); } public function getMemoryTotalInBytesAttribute(): float|int { return $this->memory_total * 1024; } public function getMemoryUsedInBytesAttribute(): float|int { return $this->memory_used * 1024; } public function getMemoryFreeInBytesAttribute(): float|int { return $this->memory_free * 1024; } public function getDiskTotalInBytesAttribute(): float|int { return $this->disk_total * (1024 * 1024); } public function getDiskUsedInBytesAttribute(): float|int { return $this->disk_used * (1024 * 1024); } public function getDiskFreeInBytesAttribute(): float|int { return $this->disk_free * (1024 * 1024); } }