Exemplo n.º 1
0
 public static DataMeter DataMeter(this MetricSpace metricSpace, string key)
 {
     return(new DataMeter(metricSpace.Meter(key)));
 }
Exemplo n.º 2
0
 public static bool IsEnabled(this MetricSpace space)
 {
     return(space.Options.ReportingState.IsEnabled());
 }
Exemplo n.º 3
0
 public static void Suspend(this MetricSpace space, TimeSpan untill)
 {
     space.Options.ReportingState.Suspend(untill);
 }
Exemplo n.º 4
0
 public static void Enable(this MetricSpace space)
 {
     space.Options.ReportingState.Enable();
 }
Exemplo n.º 5
0
 public static MetricSpace AddReporters(this MetricSpace target, IEnumerable <IMetricReporter> reporters)
 {
     target.Options.Reporters.AddReporters(reporters);
     return(target);
 }
Exemplo n.º 6
0
 public static MetricSpace AddReporter(this MetricSpace target, IMetricReporter reporter)
 {
     target.Options.Reporters.AddReporter(reporter);
     return(target);
 }