public Metric(string name, MetricValue value) { this.Name = name; this.Value = value; }
public static void Send(this IStatsClient stats, string name, MetricValue value) => stats.Send(new Metric(name, value));
public static void GaugeDelta(this IStatsClient stats, string name, int value) => stats.Send(new Metric(name, MetricValue.Delta(value)));
public static void Timer(this IStatsClient stats, string name, ulong value) => stats.Send(new Metric(name, MetricValue.Time(value)));
public static void Counter(this IStatsClient stats, string name, int count) => stats.Send(new Metric(name, MetricValue.Counter(count)));