Beispiel #1
0
 /// <inheritdoc />
 public IHistogram Histogram(string name, Units unit, SamplingTypes samplingType = SamplingTypes.FavorRecent, List <KeyValuePair <string, string> > tags = null)
 {
     return(MetricsStatic.Histogram(_context, name, unit, samplingType));
 }
Beispiel #2
0
 /// <inheritdoc />
 public ITimer Timer(string name, Units unit, SamplingTypes samplingType = SamplingTypes.FavorRecent, TimeUnits rateUnit = TimeUnits.Seconds, TimeUnits durationUnit = TimeUnits.Milliseconds, List <KeyValuePair <string, string> > tags = null)
 {
     return(MetricsStatic.Timer(_context, name, unit, samplingType, rateUnit, durationUnit, tags));
 }
Beispiel #3
0
 /// <inheritdoc />
 public IMeter Meter(string name, string unitName, TimeUnits rateUnit, List <KeyValuePair <string, string> > tags = null)
 {
     return(MetricsStatic.Meter(_context, name, unitName, rateUnit, tags));
 }
Beispiel #4
0
 /// <inheritdoc />
 public ICounter Counter(string name, string unitName, List <KeyValuePair <string, string> > tags = null)
 {
     return(MetricsStatic.Counter(_context, name, unitName, tags));
 }
Beispiel #5
0
 /// <inheritdoc />
 public void Gauge(string name, Func <double> valueProvider, Units unit,
                   List <KeyValuePair <string, string> > tags = null)
 {
     MetricsStatic.Gauge(_context, name, valueProvider, unit, tags);
 }
Beispiel #6
0
 /// <inheritdoc />
 public IMetricsContext Context(string contextName)
 {
     return(MetricsStatic.Build(contextName));
 }
Beispiel #7
0
 /// <inheritdoc />
 public ITimer Timer(string name, Units unit, SamplingTypes samplingType, TimeUnits rateUnit, TimeUnits durationUnit, List <KeyValuePair <string, string> > tags = null)
 {
     return(MetricsStatic.Timer(_context, name, unit, samplingType, rateUnit, durationUnit, tags));
 }