| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function toArray($request) |
||
| 24 | { |
||
| 25 | return [ |
||
| 26 | 'id' => $this->id, |
||
|
|
|||
| 27 | 'user_id' => $this->user_id, |
||
| 28 | 'name' => $this->name, |
||
| 29 | 'hostname' => $this->hostname, |
||
| 30 | 'username' => $this->username, |
||
| 31 | 'os' => $this->os, |
||
| 32 | 'hash' => $this->hash, |
||
| 33 | 'active' => $this->active, |
||
| 34 | 'ip_address' => $this->ip_address, |
||
| 35 | 'mac_address' => $this->mac_address, |
||
| 36 | 'memory_usage' => $this->memory_usage, |
||
| 37 | 'memory_available' => $this->memory_available, |
||
| 38 | 'cpu_usage' => $this->cpu_usage, |
||
| 39 | 'cpu_clock' => 5, |
||
| 40 | 'online' => true, |
||
| 41 | 'last_heartbeat' => Carbon::now()->toDateTimeString(), |
||
| 42 | 'created_at' => Carbon::now()->toDateTimeString(), |
||
| 43 | 'updated_at' => Carbon::now()->toDateTimeString(), |
||
| 44 | ]; |
||
| 47 |