         load: item[0]
         timestamp: moment.unix item[1]
 
-    when "transactionsPerChannelPerHour" then _.forEach raw.data, (item) ->
+    when "retrieveChannelMetrics", "transactionsPerChannelPerHour" then _.forEach raw.data, (item) ->
       data.push
         load: item[0]
         avgResp: raw.data1[i][0]

  data

exports.fetchData = fetchData
exports.convertToRequiredFormat = convertToRequiredFormat

    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);
    this.body = exports.convertToRequiredFormat(raw, 'retrieveChannelMetrics');
  }
}`

exports.retrieveSumOfTransactionsPerPeriod = `function *(period) {
