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));
|
alert.timePeriod(TimeValue.parseTimeValue(parser.textOrNull(), defaultTimePeriod));
|
||||||
} else if (LAST_ACTION_FIRE.match(currentFieldName)) {
|
} else if (LAST_ACTION_FIRE.match(currentFieldName)) {
|
||||||
alert.lastActionFire(DateTime.parse(parser.textOrNull()));
|
alert.lastActionFire(DateTime.parse(parser.textOrNull()));
|
||||||
|
} else if (TIMESTAMP_FIELD.match(currentFieldName)) {
|
||||||
|
alert.timestampString(parser.textOrNull());
|
||||||
} else {
|
} else {
|
||||||
throw new ElasticsearchIllegalArgumentException("Unexpected field [" + currentFieldName + "]");
|
throw new ElasticsearchIllegalArgumentException("Unexpected field [" + currentFieldName + "]");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue