bug: fix threshold notification (#2702)

This commit is contained in:
Sven van Ginkel
2026-02-10 22:51:14 +01:00
committed by GitHub
parent 5d391b66f6
commit 9b0b53be60
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ class ProcessUnhealthySpeedtest
if ($benchmark['passed'] === false) { if ($benchmark['passed'] === false) {
$failed[] = [ $failed[] = [
'name' => ucfirst($metric), 'name' => ucfirst($metric),
'threshold' => $benchmark['value'].' '.$benchmark['unit'], 'threshold' => $benchmark['benchmark_value'].' '.$benchmark['unit'],
'value' => $this->formatMetricValue($metric, $result), 'value' => $this->formatMetricValue($metric, $result),
]; ];
} }
+1 -1
View File
@@ -62,7 +62,7 @@ class UnhealthySpeedtestMail extends Mailable implements ShouldQueue
{ {
$metricName = str($metric)->title(); $metricName = str($metric)->title();
$type = str($benchmark['type'])->title(); $type = str($benchmark['type'])->title();
$thresholdValue = $benchmark['value'].' '.str($benchmark['unit'])->title(); $thresholdValue = $benchmark['benchmark_value'].' '.str($benchmark['unit'])->title();
// Get the actual result value // Get the actual result value
$resultValue = match ($metric) { $resultValue = match ($metric) {