Пример #1
0
 public void Send(Metric metric)
 {
     if(metric != null)
     {
         lock (_metrics)
             _metrics.Add(metric);
     }
 }
Пример #2
0
 public void Send(Metric metric)
 {
     try
     {
         var data = string.Join("\n", metric.Command);
         Debug.WriteLine(string.Format("MockSender::{0}", data));
     }
     catch(System.Exception ex)
     {
         Trace.TraceError("StatsdClient::MockSender - Error: {0}", ex.ToString());
     }
 }
 public void Send(Metric metric)
 {
     try
     {
         var data = string.Join("\n", metric.Command);
         if(StatsdUDP != null)
             StatsdUDP.Send(data);
     }
     catch(System.Exception ex)
     {
         Trace.TraceError("StatsdClient::ImmediateSender - Error: {0}", ex.ToString());
     }
 }
 public void Send(Metric metric)
 {
     _queue.TryAdd(metric);
 }
Пример #5
0
 public override void Aggregate(Metric otherMetric)
 {
     this.ValueAsDouble = otherMetric.ValueAsDouble;
 }
Пример #6
0
 public virtual void Aggregate(Metric otherMetric)
 {
     throw new NotImplementedException();
 }
Пример #7
0
 public override void Aggregate(Metric otherMetric)
 {
     this.ValueAsInt += otherMetric.ValueAsInt;
 }
Пример #8
0
 public override void Aggregate(Metric otherMetric)
 {
     this.ValueAsDouble = otherMetric.ValueAsDouble;
 }