Example #1
0
 public Metric(string name, MetricValue value)
 {
     this.Name = name;
     this.Value = value;
 }
Example #2
0
		public static void Send(this IStatsClient stats, string name, MetricValue value) => stats.Send(new Metric(name, value));
Example #3
0
 public static void GaugeDelta(this IStatsClient stats, string name, int value) => stats.Send(new Metric(name, MetricValue.Delta(value)));
Example #4
0
 public static void Timer(this IStatsClient stats, string name, ulong value) =>
 stats.Send(new Metric(name, MetricValue.Time(value)));
Example #5
0
 public static void Counter(this IStatsClient stats, string name, int count) =>
 stats.Send(new Metric(name, MetricValue.Counter(count)));
Example #6
0
 public static void Send(this IStatsClient stats, string name, MetricValue value) => stats.Send(new Metric(name, value));