We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Timestamp
AlertFields
1 parent d27805e commit bf64621Copy full SHA for bf64621
1 file changed
plugins/alerts/main.go
@@ -24,6 +24,7 @@ type IncidentDetail struct {
24
}
25
26
type AlertFields struct {
27
+ Timestamp string `json:"@timestamp"`
28
Status int `json:"status"`
29
StatusLabel string `json:"statusLabel"`
30
StatusObservation string `json:"statusObservation"`
@@ -316,6 +317,7 @@ func newAlert(alert *plugins.Alert, parentId *string) error {
316
317
318
319
a := AlertFields{
320
+ Timestamp: alert.Timestamp,
321
Status: 1,
322
StatusLabel: "Automatic review",
323
Severity: severityN,
@@ -332,7 +334,6 @@ func newAlert(alert *plugins.Alert, parentId *string) error {
332
334
GroupedBy: alert.GroupBy,
333
335
336
- a.Timestamp = alert.Timestamp
337
a.Id = alert.Id
338
a.ParentId = alert.ParentId
339
a.Name = alert.Name
0 commit comments