Skip to content

Commit

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



* Update alert mapping



* Change sample alert example



---------


(cherry picked from commit e323660)

Signed-off-by: Tyler Ohlsen <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent b8e1802 commit 3f446c6
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 3f446c6

Please sign in to comment.