@using EntKube.Web.Data @using EntKube.Web.Services @inject IncidentService IncidentService @inject AuthenticationStateProvider AuthStateProvider @if (stats is not null) {
| Severity | Alert | Cluster | Started | Duration | Status | Actions |
|---|---|---|---|---|---|---|
| @SeverityBadge(incident.Severity) | @incident.AlertName | @incident.Cluster?.Name | @incident.StartsAt.ToLocalTime().ToString("MMM d HH:mm") | @FormatDuration(incident) | @StatusBadge(incident.Status) | @if (incident.Status == IncidentStatus.Active) { } @if (incident.Status != IncidentStatus.Resolved) { } |
|
@if (!string.IsNullOrEmpty(incident.Summary))
{
Summary: @incident.Summary } @if (!string.IsNullOrEmpty(incident.Description)) {@incident.Description } @if (incident.AcknowledgedBy is not null) {Acknowledged by @incident.AcknowledgedBy at @incident.AcknowledgedAt?.ToLocalTime().ToString("MMM d HH:mm") } @if (incident.Notes.Count > 0) {
Notes
@foreach (IncidentNote note in incident.Notes)
{
}
@note.Author · @note.CreatedAt.ToLocalTime().ToString("MMM d HH:mm")
@note.Content
|
||||||