File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ type IncidentDetail struct {
2424}
2525
2626type AlertFields struct {
27+ Timestamp string `json:"@timestamp"`
2728 Status int `json:"status"`
2829 StatusLabel string `json:"statusLabel"`
2930 StatusObservation string `json:"statusObservation"`
@@ -316,6 +317,7 @@ func newAlert(alert *plugins.Alert, parentId *string) error {
316317 }
317318
318319 a := AlertFields {
320+ Timestamp : alert .Timestamp ,
319321 Status : 1 ,
320322 StatusLabel : "Automatic review" ,
321323 Severity : severityN ,
@@ -332,7 +334,6 @@ func newAlert(alert *plugins.Alert, parentId *string) error {
332334 GroupedBy : alert .GroupBy ,
333335 }
334336
335- a .Timestamp = alert .Timestamp
336337 a .Id = alert .Id
337338 a .ParentId = alert .ParentId
338339 a .Name = alert .Name
You can’t perform that action at this time.
0 commit comments