 
 
     data.push({
-      _id : {"channelID": channelId },
+      _id: {"channelID": channelId},
       failed: failed,
       successful: successful,
-      processing:processing,
-      completed:completed,
-      completedWErrors:completedWErrors
+      processing: processing,
+      completed: completed,
+      completedWErrors: completedWErrors
     });
 
 
   } else {
 
-        path = render_url + ".count,'1day'))&from=-7days&format=json";
-        path += "&target=transformNull(summarize(stats.timers." + domain + ".channels." + channelId + ".sum,'1day','avg'))";
+    path = render_url + ".count,'1day'))&from=-7days&format=json";
+    path += "&target=transformNull(summarize(stats.timers." + domain + ".channels." + channelId + ".sum,'1day','avg'))";
     var raw = yield exports.fetchData(path);
     var i = 0;
     _.forEach(raw.data, function (item) {



fetchData = `function* fetchData(path) {
    var data = {};
    var options = {
      url: 'http://' + statsd_server.host + path
    };
    var response = yield request(options);

    var info = JSON.parse(response.body);
    if (info.length) {

    var i = 0;
    _.forEach(info, function (item) {

  var results = {}, path = ''
  var render_url = "/render?target=transformNull(summarize(stats.counters." + domain + ".channels." + channelId

  if (type == 'status') {
    for (i = 0; i < status_array.length; i++) {
      path = render_url + ".statuses." + status_array[i] + ".count,'1week'))&from=-1weeks&format=json";
      results[status_array[i]] = yield exports.fetchData(path);
    }
    ;

    var failed = 'data' in results.Failed ? results.Failed.data[0][0] + results.Failed.data[1][0] : 0,
      processing = 'data'  in results.Processing ? results.Processing.data[0][0] + results.Processing.data[1][0] : 0,
