[TEST] Change the serialization order back to keep tests happy

Original commit: elastic/x-pack-elasticsearch@2b83697395
This commit is contained in:
Dimitrios Athanasiou 2017-04-19 13:27:48 +01:00
parent 9865d5b955
commit 02d1350778
1 changed files with 1 additions and 1 deletions

View File

@ -100,13 +100,13 @@ public class DetectionRule extends ToXContentToBytes implements Writeable {
builder.startObject();
builder.field(RULE_ACTION_FIELD.getPreferredName(), ruleAction);
builder.field(CONDITIONS_CONNECTIVE_FIELD.getPreferredName(), conditionsConnective);
builder.field(RULE_CONDITIONS_FIELD.getPreferredName(), ruleConditions);
if (targetFieldName != null) {
builder.field(TARGET_FIELD_NAME_FIELD.getPreferredName(), targetFieldName);
}
if (targetFieldValue != null) {
builder.field(TARGET_FIELD_VALUE_FIELD.getPreferredName(), targetFieldValue);
}
builder.field(RULE_CONDITIONS_FIELD.getPreferredName(), ruleConditions);
builder.endObject();
return builder;
}