mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 06:56:15 +00:00
* wip * wip * cleanup * notification channels * phpstan * services * remove server types * refactoring * refactoring
27 lines
758 B
PHP
27 lines
758 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Metric;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<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),
|
|
];
|
|
}
|
|
}
|