Use snake case for nodes stats/info metric names (#53446) (#53535)

* Use snake case for nodes stats/info metric names (#53446)

The REST API uses "thread_pool" as the name of the thread pool metric.
If we use this name internally when we serialize nodes stats and info
requests, we won't need to do any fancy logic to check for and switch
out "threadPool", which was the previous internal name.
This commit is contained in:
William Brafford 2020-03-13 07:49:14 -04:00 committed by GitHub
parent 1e31031b73
commit 5b718d2565
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -286,7 +286,7 @@ public class NodesInfoRequest extends BaseNodesRequest<NodesInfoRequest> {
OS("os"),
PROCESS("process"),
JVM("jvm"),
THREAD_POOL("threadPool"),
THREAD_POOL("thread_pool"),
TRANSPORT("transport"),
HTTP("http"),
PLUGINS("plugins"),

View File

@ -323,7 +323,7 @@ public class NodesStatsRequest extends BaseNodesRequest<NodesStatsRequest> {
OS("os"),
PROCESS("process"),
JVM("jvm"),
THREAD_POOL("threadPool"),
THREAD_POOL("thread_pool"),
FS("fs"),
TRANSPORT("transport"),
HTTP("http"),