mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-22 19:22:19 +00:00
26 lines
747 B
PHP
26 lines
747 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<\App\Models\Metric>
|
|
*/
|
|
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),
|
|
];
|
|
}
|
|
}
|