public static void GaugeAbsoluteValue(this IStatsClient stats, string name, int value) { if (value < 0) { stats.Send( new Metric(name, MetricValue.Gauge(0)), new Metric(name, MetricValue.Delta(value))); } else { stats.Send(new Metric(name, MetricValue.Gauge((uint)value))); } }
public static void GaugeDelta(this IStatsClient stats, string name, int value) => stats.Send(new Metric(name, MetricValue.Delta(value)));