mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-09 06:25:07 +00:00
Change to support name change of email alert action.
Original commit: elastic/x-pack-elasticsearch@d8bba3194b
This commit is contained in:
parent
d4f8bf0d2c
commit
d8b751f6ed
@ -7,7 +7,7 @@ package org.elasticsearch.alerts;
|
||||
|
||||
import org.elasticsearch.action.search.SearchRequest;
|
||||
import org.elasticsearch.alerts.actions.AlertAction;
|
||||
import org.elasticsearch.alerts.actions.SntpAlertAction;
|
||||
import org.elasticsearch.alerts.actions.SmtpAlertAction;
|
||||
import org.elasticsearch.alerts.triggers.ScriptedTrigger;
|
||||
import org.elasticsearch.common.joda.time.DateTime;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
@ -34,7 +34,7 @@ public class AlertSerializationTest extends AbstractAlertingTests {
|
||||
SearchRequest payloadRequest = createTriggerSearchRequest("my-payload-index").source(searchSource().query(matchAllQuery()));
|
||||
|
||||
List<AlertAction> actions = new ArrayList<>();
|
||||
actions.add(new SntpAlertAction("message", "foo@bar.com"));
|
||||
actions.add(new SmtpAlertAction("message", "foo@bar.com"));
|
||||
Alert alert = new Alert("test-serialization",
|
||||
triggerRequest,
|
||||
new ScriptedTrigger("return true", ScriptService.ScriptType.INLINE, "groovy"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user