public void Threshold_is_set_as_label() { timer = OkanshiMonitor.SlaTimer("name", TimeSpan.FromSeconds(2)); var thresholdTag = timer.Config.Tags.Single(x => x.Key == SlaTimer.ThresholdKey).Value; thresholdTag.Should().Be("2000"); }
public void Can_get_timer_from_okanshimonitor() { timer = OkanshiMonitor.SlaTimer("name", TimeSpan.FromSeconds(2)); timer.Should().NotBeNull(); }
public SlaTimerTest() { DefaultMonitorRegistry.Instance.Clear(); timer = new SlaTimer(MonitorConfig.Build("Test"), () => stopwatch, TimeSpan.FromSeconds(3)); }