mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
Forgot to parse field
Original commit: elastic/x-pack-elasticsearch@23512bce74
This commit is contained in:
parent
3625b5bc91
commit
1e7fc84f06
@ -243,6 +243,8 @@ public class AlertsStore extends AbstractComponent {
|
||||
alert.timePeriod(TimeValue.parseTimeValue(parser.textOrNull(), defaultTimePeriod));
|
||||
} else if (LAST_ACTION_FIRE.match(currentFieldName)) {
|
||||
alert.lastActionFire(DateTime.parse(parser.textOrNull()));
|
||||
} else if (TIMESTAMP_FIELD.match(currentFieldName)) {
|
||||
alert.timestampString(parser.textOrNull());
|
||||
} else {
|
||||
throw new ElasticsearchIllegalArgumentException("Unexpected field [" + currentFieldName + "]");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user