Пример #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) };
 }