mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:01:24 +00:00
32 lines
1.0 KiB
PHP
32 lines
1.0 KiB
PHP
@php
|
|
$impactValue = $incident->impact->value;
|
|
$headline = $resolved ? 'Incident Resolved' : 'Incident Detected';
|
|
@endphp
|
|
{{ $headline }} — {{ $services }}
|
|
{{ str_repeat('=', max(strlen($headline) + strlen($services) + 3, 30)) }}
|
|
|
|
@if ($resolved)
|
|
✓ Resolved — The following incident has been automatically resolved.
|
|
@else
|
|
⚠ {{ ucfirst($impactValue) }} impact — An automated health check has detected a service issue.
|
|
@endif
|
|
|
|
Incident: {{ $incident->title }}
|
|
Affected services: {{ $services }}
|
|
Impact: {{ ucfirst($impactValue) }}
|
|
Status: {{ ucfirst($incident->status->value) }}
|
|
Started: {{ $incident->started_at->format('M j, Y g:i A T') }}
|
|
@if ($resolved && $incident->resolved_at)
|
|
Resolved: {{ $incident->resolved_at->format('M j, Y g:i A T') }}
|
|
Duration: {{ $incident->started_at->diffForHumans($incident->resolved_at, true) }}
|
|
@endif
|
|
|
|
@if ($incident->description)
|
|
Details:
|
|
{{ $incident->description }}
|
|
|
|
@endif
|
|
View status dashboard: {{ $statusUrl }}
|
|
|
|
— {{ $site }} Monitoring
|