2013-03-06 13:38:40 -05:00
|
|
|
// requires tableHelper
|
|
|
|
|
|
|
|
var oTable = [];
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
2013-09-26 20:44:21 -04:00
|
|
|
$.get('/druid/indexer/v1/runningTasks', function(data) {
|
2013-03-06 13:38:40 -05:00
|
|
|
$('.running_loading').hide();
|
|
|
|
buildTable(data, $('#runningTable'), ["segments"]);
|
|
|
|
});
|
|
|
|
|
2013-09-26 20:44:21 -04:00
|
|
|
$.get('/druid/indexer/v1/pendingTasks', function(data) {
|
2013-03-06 13:38:40 -05:00
|
|
|
$('.pending_loading').hide();
|
|
|
|
buildTable(data, $('#pendingTable'), ["segments"]);
|
|
|
|
});
|
|
|
|
|
2013-09-26 20:44:21 -04:00
|
|
|
$.get('/druid/indexer/v1/workers', function(data) {
|
2013-03-06 13:38:40 -05:00
|
|
|
$('.workers_loading').hide();
|
|
|
|
buildTable(data, $('#workerTable'));
|
|
|
|
});
|
|
|
|
|
2013-09-26 20:44:21 -04:00
|
|
|
$.get('/druid/indexer/v1/scaling', function(data) {
|
2013-03-06 13:38:40 -05:00
|
|
|
$('.events_loading').hide();
|
|
|
|
buildTable(data, $('#eventTable'));
|
|
|
|
});
|
|
|
|
});
|