rate method

Metric rate(
  1. String name,
  2. int value, {
  3. int interval = 1,
  4. List<String> tags = const <String>[],
})

????

Implementation

Metric rate(
  String name,
  int value, {
  int interval = 1,
  List<String> tags = const <String>[],
}) {
  final metric = Metric(
    name,
    MetricType.rate,
    [
      [currentTime, value]
    ],
    host: host,
    interval: interval,
    prefix: prefix,
    tags: mergeTags(tags),
  );

  send(metric);
  return metric;
}