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); }
public override void Aggregate(Metric otherMetric) { this.ValueAsDouble = otherMetric.ValueAsDouble; }
public virtual void Aggregate(Metric otherMetric) { throw new NotImplementedException(); }
public override void Aggregate(Metric otherMetric) { this.ValueAsInt += otherMetric.ValueAsInt; }