Пример #1
0
 /// <summary> A MetricsObserver sending metrics to splunk </summary>
 public SplunkObserver(IHttpPoster poster, Func <Metric, Dictionary <string, object> > metricConverter, Func <object, string> jsonSerializer)
 {
     _poster          = poster ?? throw new ArgumentNullException(nameof(poster));
     _jsonSerializer  = jsonSerializer ?? throw new ArgumentNullException(nameof(jsonSerializer));
     _metricConverter = metricConverter ?? throw new ArgumentNullException(nameof(metricConverter));
 }
Пример #2
0
 /// <summary> A MetricsObserver sending metrics to splunk </summary>
 public SplunkObserver(IHttpPoster poster, Func <object, string> jsonSerializer) : this(poster, MeasurementToDictionary, jsonSerializer)
 {
 }