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