Alert Detail Ping Latency (#11140)

* Alert Detail Ping Latency

* link to ping graph
This commit is contained in:
SourceDoctor
2020-02-13 10:18:00 +01:00
committed by GitHub
parent a9bf92057f
commit 082a1ee079

View File

@@ -981,6 +981,17 @@ function alert_details($details)
$fallback = false;
}
if ($tmp_alerts['last_ping_timetaken']) {
$fault_detail .= "Latency: <a href='" . generate_url(array('page' => 'graphs',
'from' => '-24hour',
'to' => 'now',
'type' => 'device_ping_perf',
'device' => $tmp_alerts['device_id'])) . "'>";
$fault_detail .= $tmp_alerts['last_ping_timetaken']. 'ms';
$fault_detail .= "</a>";
$fallback = false;
}
if ($tmp_alerts['type'] && $tmp_alerts['label']) {
if ($tmp_alerts['error'] == "") {
$fault_detail .= ' ' . $tmp_alerts['type'] . ' - ' . $tmp_alerts['label'] . ';&nbsp;';