From 8d5c8b24d676f059c8ac51b3930630a0acbae962 Mon Sep 17 00:00:00 2001 From: David Kyle Date: Thu, 15 Dec 2016 15:42:38 +0000 Subject: [PATCH] Make ModelDebugOutput fields snake case (elastic/elasticsearch#555) * snake_case model debug output fields * Rename CategorizerState and BucketInfluencer types to snake_case Original commit: elastic/x-pack-elasticsearch@da94dc7ec1bf60e33dea218f0bf724a273da9d86 --- .../org/elasticsearch/xpack/prelert/job/CategorizerState.java | 2 +- .../xpack/prelert/job/results/BucketInfluencer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/elasticsearch/src/main/java/org/elasticsearch/xpack/prelert/job/CategorizerState.java b/elasticsearch/src/main/java/org/elasticsearch/xpack/prelert/job/CategorizerState.java index b5353c0bbbb..61cbeb7df91 100644 --- a/elasticsearch/src/main/java/org/elasticsearch/xpack/prelert/job/CategorizerState.java +++ b/elasticsearch/src/main/java/org/elasticsearch/xpack/prelert/job/CategorizerState.java @@ -16,7 +16,7 @@ public class CategorizerState { /** * The type of this class used when persisting the data */ - public static final String TYPE = "categorizerState"; + public static final String TYPE = "categorizer_state"; private CategorizerState() { } diff --git a/elasticsearch/src/main/java/org/elasticsearch/xpack/prelert/job/results/BucketInfluencer.java b/elasticsearch/src/main/java/org/elasticsearch/xpack/prelert/job/results/BucketInfluencer.java index 04196ecc2c0..300fe02efaf 100644 --- a/elasticsearch/src/main/java/org/elasticsearch/xpack/prelert/job/results/BucketInfluencer.java +++ b/elasticsearch/src/main/java/org/elasticsearch/xpack/prelert/job/results/BucketInfluencer.java @@ -27,7 +27,7 @@ public class BucketInfluencer extends ToXContentToBytes implements Writeable { /** * Result type */ - public static final String RESULT_TYPE_VALUE = "bucketInfluencer"; + public static final String RESULT_TYPE_VALUE = "bucket_influencer"; public static final ParseField RESULT_TYPE_FIELD = new ParseField(RESULT_TYPE_VALUE); /**