public void Send(Metric metric)
 {
     if(metric != null)
     {
         lock (_metrics)
             _metrics.Add(metric);
     }
 }
 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);
 }
Esempio n. 5
0
 public override void Aggregate(Metric otherMetric)
 {
     this.ValueAsDouble = otherMetric.ValueAsDouble;
 }
Esempio n. 6
0
 public virtual void Aggregate(Metric otherMetric)
 {
     throw new NotImplementedException();
 }
Esempio n. 7
0
 public override void Aggregate(Metric otherMetric)
 {
     this.ValueAsInt += otherMetric.ValueAsInt;
 }
 public override void Aggregate(Metric otherMetric)
 {
     this.ValueAsDouble = otherMetric.ValueAsDouble;
 }