예제 #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;
 }