From Sexy Pudu, 2 Years ago, written in HTML5.
This paste is a reply to Re: Re: Alert Template from Unique Moth - go back
Embed
{{ $alert->title }}
}}
Device Name: {{ $alert->hostname }}
}}
Severity: {{ $alert->severity }}
}}
@if ($alert->state == 0) Time elapsed: {{ $alert->elapsed }} @endif
@endif
Timestamp: {{ $alert->timestamp }}
}}
Rule: @if ($alert->name) {{ $alert->name }} @else {{ $alert->rule }} @endif
@endif
@foreach ($alert->faults as $key => $value)
$value)
Physical Interface: $value['ifDescr']
$value['ifDescr']
Interface Description: $value['ifAlias']
$value['ifAlias']
Interface Speed: @php echo ($value['ifSpeed']/1000000000); @endphp Gbs
Gbs
Inbound Utilization: @php echo (($value['ifInOctets_rate']*8)/$value['ifSpeed'])*100; @endphp%
@endphp%
Outbound Utilization: @php echo (($value['ifOutOctets_rate']*8)/$value['ifSpeed'])*100; @endphp%
@endphp%
@endforeach