Closed dugauthier closed 11 years ago
Ok, this is implemented by ad930479c7482d2b066df8a59e125bb8b56626c4
You must get/set the attribute statisticsEnabled.
Not working... I reopen the ticket.
I tried to implement (around line 204 in plugins/roq-controler/main.js):
obj.getQueues = function(){
// add infos on queue statistics
for(var queue in clusterConfig.queues)
clusterConfig.queues[queue].statisticsEnabled = this.hasQueueStats(queue);
return clusterConfig.queues;
}
This keeps all statisticsEnabled values to false, regardless of the fact it might be active.
However, enabling the stats works.
I'd like to have the information returned as an attribute when doing GET on /queues/.
I'd like to update the information by sending a modified value (only modified attributes are transmitted) of the attribute using PUT on /queues/queueName/ .
Full statistics should be transmitted when doing a GET on /queues/queueName/ .