chore: necessary updates given the changes in the alert controller
This commit is contained in:
@@ -227,6 +227,13 @@ public class EsIndexerService : BackgroundService
|
||||
AlertType = evt.AlertType,
|
||||
Severity = evt.Severity,
|
||||
Status = "Open",
|
||||
Details = root.TryGetProperty("details", out var detailsElem)
|
||||
? detailsElem.GetString() ?? string.Empty
|
||||
: string.Empty,
|
||||
NarrativeSummary = root.TryGetProperty("explanation", out var explanationElem)
|
||||
&& explanationElem.TryGetProperty("narrativeSummary", out var narrativeElem)
|
||||
? narrativeElem.GetString()
|
||||
: null,
|
||||
TriggeredAt = evt.TriggeredAt
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user