mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-21 10:51:36 +00:00
23 lines
699 B
PHP
23 lines
699 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class MetricFactory extends Factory
|
|
{
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'server_id' => 1,
|
|
'load' => $this->faker->randomFloat(2, 0, 100),
|
|
'memory_total' => $this->faker->randomFloat(0, 0, 100),
|
|
'memory_used' => $this->faker->randomFloat(0, 0, 100),
|
|
'memory_free' => $this->faker->randomFloat(0, 0, 100),
|
|
'disk_total' => $this->faker->randomFloat(0, 0, 100),
|
|
'disk_used' => $this->faker->randomFloat(0, 0, 100),
|
|
'disk_free' => $this->faker->randomFloat(0, 0, 100),
|
|
];
|
|
}
|
|
}
|