Skip to content

Commit

Permalink
Fix alert constructor (#191)
Browse files Browse the repository at this point in the history
* Fix alert constructor

Signed-off-by: Tyler Ohlsen <[email protected]>

* Update alert mapping

Signed-off-by: Tyler Ohlsen <[email protected]>

* Change sample alert example

Signed-off-by: Tyler Ohlsen <[email protected]>

---------

Signed-off-by: Tyler Ohlsen <[email protected]>
  • Loading branch information
ohltyler authored Feb 7, 2024
1 parent e001987 commit e323660
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ public void testRunWithAlerts() throws Exception {
Collections.emptyList(),
null,
null,
Collections.emptyList()
Collections.emptyList(),
null
);
Alert alert2 = new Alert(
"alert-id-2",
Expand All @@ -135,7 +136,8 @@ public void testRunWithAlerts() throws Exception {
Collections.emptyList(),
null,
null,
Collections.emptyList()
Collections.emptyList(),
null
);
List<Alert> mockAlerts = List.of(alert1, alert2);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,14 @@
"type": "text"
}
}
},
"clusters": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
"start_time": 1234,
"last_notification_time": 1234,
"end_time": 1234,
"acknowledged_time": null
"acknowledged_time": null,
"clusters": []
}

0 comments on commit e323660

Please sign in to comment.