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