LOGGER.warn("Unable to report to InfluxDB. Discarding data.", e);
}
}
private void reportTimer(String name, Timer timer, long timestamp) {
final Snapshot snapshot = timer.getSnapshot();
Object[] p = pointsTimer[0];
p[0] = timestamp;
p[1] = snapshot.size();
p[2] = convertDuration(snapshot.getMin());
p[3] = convertDuration(snapshot.getMax());
p[4] = convertDuration(snapshot.getMean());
p[5] = convertDuration(snapshot.getStdDev());
p[6] = convertDuration(snapshot.getMedian());
p[7] = convertDuration(snapshot.get75thPercentile());
p[8] = convertDuration(snapshot.get95thPercentile());
p[9] = convertDuration(snapshot.get99thPercentile());
p[10] = convertDuration(snapshot.get999thPercentile());
p[11] = convertRate(timer.getOneMinuteRate());
p[12] = convertRate(timer.getFiveMinuteRate());
p[13] = convertRate(timer.getFifteenMinuteRate());
p[14] = convertRate(timer.getMeanRate());
assert (p.length == COLUMNS_TIMER.length);