[Sense] add hot threads api to KB

This commit is contained in:
Boaz Leskes 2014-03-24 13:50:20 +01:00
parent 6f3cdaa2ab
commit 40bbd501ac
3 changed files with 20 additions and 0 deletions

View file

@ -10,6 +10,7 @@ define([
'./api_0_90/indices',
'./api_0_90/mappings',
'./api_0_90/misc',
'./api_0_90/nodes',
'./api_0_90/query',
'./api_0_90/search',
'./api_0_90/settings',

View file

@ -0,0 +1,12 @@
define(function () {
'use strict';
return function init(api) {
api.addEndpointDescription('_nodes/hot_threads', {
methods: ['GET'],
patterns: [
"_nodes/hot_threads",
"_nodes/{nodes}/hot_threads"
]
});
};
});

View file

@ -1,6 +1,13 @@
define(function () {
'use strict';
return function init(api) {
api.addEndpointDescription('_nodes/hot_threads', {
methods: ['GET'],
patterns: [
"_nodes/hot_threads",
"_nodes/{nodes}/hot_threads"
]
});
api.addEndpointDescription('_nodes/info', {
patterns: [
"_nodes",