Improved Latency graph (#15940)

* Improved Latency graph
Store loss+jitter info in rrd instead of database
New graph icmp_perf (legacy ping_perf still valid referencing part of the newer data)
Delete device_perf table

* Change loss to an area so it is more visible

* Style fixes

* Cleanups from phpstan & tests

* exit_code fix

* Remove alert usage of device_perf

* Don't use magic __get

* Add test for bulkPing
Add host to previous tests

* style fixes

* Fix issue fping error responses
This commit is contained in:
Tony Murray
2024-04-18 09:57:01 -05:00
committed by GitHub
parent 4cce4f082e
commit 49f8269262
38 changed files with 466 additions and 495 deletions

View File

@@ -839,11 +839,6 @@ class Device extends BaseModel
return $this->belongsToMany(self::class, 'device_relationships', 'child_device_id', 'parent_device_id');
}
public function perf(): HasMany
{
return $this->hasMany(\App\Models\DevicePerf::class, 'device_id');
}
public function ports(): HasMany
{
return $this->hasMany(\App\Models\Port::class, 'device_id', 'device_id');