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