From c3084a332b6d2f34fa069d969932d53aacf1e5f7 Mon Sep 17 00:00:00 2001 From: Igor Motov Date: Fri, 15 Jun 2018 19:07:47 -0400 Subject: [PATCH] SQL: Fix rest endpoint names in node stats (#31371) Fixes wrong name for the sql translate endpoint and makes rest endpoint names in stats more consistent. --- .../xpack/sql/plugin/RestSqlClearCursorAction.java | 2 +- .../org/elasticsearch/xpack/sql/plugin/RestSqlQueryAction.java | 2 +- .../elasticsearch/xpack/sql/plugin/RestSqlTranslateAction.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/plugin/RestSqlClearCursorAction.java b/x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/plugin/RestSqlClearCursorAction.java index 534d0459180..175b78d4f66 100644 --- a/x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/plugin/RestSqlClearCursorAction.java +++ b/x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/plugin/RestSqlClearCursorAction.java @@ -37,6 +37,6 @@ public class RestSqlClearCursorAction extends BaseRestHandler { @Override public String getName() { - return "sql_translate_action"; + return "xpack_sql_clear_cursor_action"; } } diff --git a/x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/plugin/RestSqlQueryAction.java b/x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/plugin/RestSqlQueryAction.java index 9e34a3fb2e0..a8daa1136d3 100644 --- a/x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/plugin/RestSqlQueryAction.java +++ b/x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/plugin/RestSqlQueryAction.java @@ -114,6 +114,6 @@ public class RestSqlQueryAction extends BaseRestHandler { @Override public String getName() { - return "xpack_sql_action"; + return "xpack_sql_query_action"; } } diff --git a/x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/plugin/RestSqlTranslateAction.java b/x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/plugin/RestSqlTranslateAction.java index 503ee843148..74d94e48006 100644 --- a/x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/plugin/RestSqlTranslateAction.java +++ b/x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/plugin/RestSqlTranslateAction.java @@ -40,7 +40,7 @@ public class RestSqlTranslateAction extends BaseRestHandler { @Override public String getName() { - return "sql_translate_action"; + return "xpack_sql_translate_action"; } }