/
DATKAI
/
ITCUP
Обзор
Документация
Войти
/
DATKAI
/
ITCUP
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
app/Models/MonitoredHostPing.php
30 строк
619 B
ITCUP Admin
feat(monitoring): модуль пинг-мониторинга любых хостов
21 апр 2026, 20:25
21 апр 2026, 20:25
721b0e5
Код
Авторство
О чём код?
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; class MonitoredHostPing extends Model { public $timestamps = false; protected $fillable = [ 'monitored_host_id', 'is_reachable', 'response_ms', 'error', 'created_at', ]; protected $casts = [ 'is_reachable' => 'boolean', 'response_ms' => 'integer', 'created_at' => 'datetime', ]; public function host(): BelongsTo { return $this->belongsTo(MonitoredHost::class, 'monitored_host_id'); } }