Forgot to parse field

Original commit: elastic/x-pack-elasticsearch@23512bce74
This commit is contained in:
Martijn van Groningen 2014-10-29 09:46:39 +01:00
parent 3625b5bc91
commit 1e7fc84f06
1 changed files with 2 additions and 0 deletions

View File

@ -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 + "]");
}