diff --git a/doc/Alerting/Templates.md b/doc/Alerting/Templates.md index 2b5654a7fb..465107da79 100644 --- a/doc/Alerting/Templates.md +++ b/doc/Alerting/Templates.md @@ -116,7 +116,7 @@ Unique-ID: {{ $alert->uid }} Rule: @if ($alert->name) {{ $alert->name }} @else {{ $alert->rule }} @endif @if ($alert->faults) Faults: @foreach ($alert->faults as $key => $value) - #{{ $key }}: {{ $value['string'] }} + {{ $key }}: {{ $value['string'] }} @endforeach @endif Alert sent to: @@ -133,11 +133,11 @@ Severity: {{ $alert->severity }} Timestamp: {{ $alert->timestamp }} Rule: @if ($alert->name) {{ $alert->name }} @else {{ $alert->rule }} @endif @foreach ($alert->faults as $key => $value) -Physical Interface: $value['ifDescr'] -Interface Description: $value['ifAlias'] -Interface Speed: @php echo ($value['ifSpeed']/1000000000); @endphp Gbs -Inbound Utilization: @php echo (($value['ifInOctets_rate']*8)/$value['ifSpeed'])*100; @endphp% -Outbound Utilization: @php echo (($value['ifOutOctets_rate']*8)/$value['ifSpeed'])*100; @endphp% +Physical Interface: {{ $value['ifDescr'] }} +Interface Description: {{ $value['ifAlias'] }} +Interface Speed: {{ ($value['ifSpeed']/1000000000) }} Gbs +Inbound Utilization: {{ (($value['ifInOctets_rate']*8)/$value['ifSpeed'])*100 }} +Outbound Utilization: {{ (($value['ifOutOctets_rate']*8)/$value['ifSpeed'])*100 }} @endforeach ``` @@ -281,7 +281,7 @@ Alert-ID: {{ $alert->id }}
Rule: @if ($alert->name) {{ $alert->name }} @else {{ $alert->rule }} @endif
@if ($alert->faults) Faults: @foreach ($alert->faults as $key => $value) -#{{ $key }}: {{ $value['string'] }}
+{{ $key }}: {{ $value['string'] }}
@endforeach @if ($alert->faults) Faults:
@foreach ($alert->faults as $key => $value)