   data
 
 exports.fetchData = fetchData
-exports.convertToRequiredFormat = convertToRequiredFormat
+exports.convertToRequiredFormat = convertToRequiredFormat

exports.transactionsPerChannelPerHour = `function *(period) {
  var path = "/render?target=summarize(stats.counters." + domain + ".channels.count,'1hour')&from=-1days&format=json";
  path = "/render?target=summarize(stats.counters.OpenHIM-core-js-preprod.Production.channels.count,'1hour')&from=-1days&format=json";
  var data = [];
  var raw = yield exports.fetchData(path);
  var i = 0;
  _.forEach(raw.data, function (item) {
    data.push({
      load: item[0],
      avgResp: raw.data1[i][0],
      timestamp: moment.unix(item[1])
    });
    i++;
  });
  this.body = data
}`



    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) {
