コード例 #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));
 }
コード例 #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));
 }
コード例 #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));
 }
コード例 #4
0
 /// <inheritdoc />
 public ICounter Counter(string name, string unitName, List <KeyValuePair <string, string> > tags = null)
 {
     return(MetricsStatic.Counter(_context, name, unitName, tags));
 }
コード例 #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);
 }
コード例 #6
0
 /// <inheritdoc />
 public IMetricsContext Context(string contextName)
 {
     return(MetricsStatic.Build(contextName));
 }
コード例 #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));
 }