示例#1
0
 public DogMetric(string metric, double value)
 {
     Metric = metric;
     Points = new DogMetricPoint[] { new DogMetricPoint(DateTimeOffset.Now, value) };
 }
示例#2
0
 public DogMetric(string metric, DateTimeOffset timestamp, double value) : this(metric, new DogMetricPoint[] { new DogMetricPoint(timestamp, value) })
 {
     Metric = metric;
     Points = new DogMetricPoint[] { new DogMetricPoint(timestamp, value) };
 }