public object Get(StatisticRequest r) { StatisticResponseHeartbit h = new StatisticResponseHeartbit(); h.Channels = new List <ItemCounter>(); StatisticContainer statCont = QueueService.ModProducer.broker.GetChannelsStatistic(); foreach (MetaStatRange mrange in statCont.FlushedMinRanges) { StatRange range = mrange.range; h.Channels.Add(new ItemCounter() { Name = mrange.Name, Count = r.GetThroughput ? (int)range.PerMinute : (int)range.Counter, Left = range.Left.ToString() }); } return(h); }
public object Get(StatisticRequest r) { StatisticResponseHeartbit h = new StatisticResponseHeartbit(); h.Channels = new List<ItemCounter>(); StatisticContainer statCont = QueueService.ModProducer.broker.GetChannelsStatistic(); foreach (MetaStatRange mrange in statCont.FlushedMinRanges) { StatRange range = mrange.range; h.Channels.Add(new ItemCounter() { Name = mrange.Name, Count = r.GetThroughput ? (int)range.PerMinute : (int)range.Counter, Left = range.Left.ToString() }); } return h; }