com.yammer.metrics.core.Timer.fifteenMinuteRate()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(127)

本文整理了Java中com.yammer.metrics.core.Timer.fifteenMinuteRate()方法的一些代码示例,展示了Timer.fifteenMinuteRate()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Timer.fifteenMinuteRate()方法的具体详情如下:
包路径:com.yammer.metrics.core.Timer
类名称:Timer
方法名:fifteenMinuteRate

Timer.fifteenMinuteRate介绍

暂无

代码示例

代码示例来源:origin: urbanairship/statshtable

@Override
public double fifteenMinuteRate() {
  return t.fifteenMinuteRate();
}

代码示例来源:origin: org.rhq/rhq-enterprise-server

@Override
public double getFifteenMinuteAvgRate() {
  return driverMetrics.getRequestsTimer().fifteenMinuteRate();
}

代码示例来源:origin: amient/kafka-metrics

@Override
public void processTimer(MetricName name, Timer timer, Long timestamp) {
  Map<String, Double> fields = new HashMap<String, Double>();
  fields.put("Count", Double.valueOf(timer.count()));
  fields.put("MeanRate", timer.meanRate());
  fields.put("FifteenMinuteRate", timer.fifteenMinuteRate());
  fields.put("FiveMinuteRate", timer.fiveMinuteRate());
  fields.put("OneMinuteRate", timer.oneMinuteRate());
  fields.put("Max", timer.max());
  fields.put("Mean", timer.mean());
  fields.put("Min", timer.min());
  fields.put("StdDev", timer.stdDev());
  fields.put("Sum", timer.sum());
  publish(createMeasurement(name, timestamp, fixedTags, fields));
}

代码示例来源:origin: addthis/hydra

when(timer.oneMinuteRate()).thenReturn(3.0);
when(timer.fiveMinuteRate()).thenReturn(4.0);
when(timer.fifteenMinuteRate()).thenReturn(5.0);
when(timer.max()).thenReturn(2.0);
when(timer.mean()).thenReturn(3.0);

相关文章