Core: move errorMessage field to error_message field
Closes elastic/elasticsearch#25 Original commit: elastic/x-pack-elasticsearch@186f812919
This commit is contained in:
parent
5c34d8b59a
commit
f6e28c96ca
|
@ -216,7 +216,7 @@ public class AlertActionEntry implements ToXContent{
|
||||||
historyEntry.field(AlertActionState.FIELD_NAME, entryState.toString());
|
historyEntry.field(AlertActionState.FIELD_NAME, entryState.toString());
|
||||||
|
|
||||||
if (errorMsg != null) {
|
if (errorMsg != null) {
|
||||||
historyEntry.field("errorMsg", errorMsg);
|
historyEntry.field("error_msg", errorMsg);
|
||||||
}
|
}
|
||||||
historyEntry.endObject();
|
historyEntry.endObject();
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ public class AlertActionManager extends AbstractComponent {
|
||||||
public static final String TRIGGERED_FIELD = "triggered";
|
public static final String TRIGGERED_FIELD = "triggered";
|
||||||
public static final String FIRE_TIME_FIELD = "fire_time";
|
public static final String FIRE_TIME_FIELD = "fire_time";
|
||||||
public static final String SCHEDULED_FIRE_TIME_FIELD = "scheduled_fire_time";
|
public static final String SCHEDULED_FIRE_TIME_FIELD = "scheduled_fire_time";
|
||||||
public static final String ERROR_MESSAGE = "errorMsg";
|
public static final String ERROR_MESSAGE = "error_msg";
|
||||||
public static final String TRIGGER_FIELD = "trigger";
|
public static final String TRIGGER_FIELD = "trigger";
|
||||||
public static final String REQUEST = "request";
|
public static final String REQUEST = "request";
|
||||||
public static final String RESPONSE = "response_binary";
|
public static final String RESPONSE = "response_binary";
|
||||||
|
|
Loading…
Reference in New Issue