예제 #1
0
 public SlowResponseAlerter(int samplePeriodMilliseconds, IAlertStrategy alertStrategy, string serviceName, TimeSpan slowResponseThreshold)
     : base(samplePeriodMilliseconds, alertStrategy)
 {
     _serviceName           = serviceName;
     _slowResponseThreshold = slowResponseThreshold;
 }
예제 #2
0
 public Non200ResponseAlerter(int samplePeriodMilliseconds, IAlertStrategy alertStrategy, string serviceName)
     : base(samplePeriodMilliseconds, alertStrategy)
 {
     _serviceName = serviceName;
 }
 protected SamplingAlerter(int samplePeriodMilliseconds, IAlertStrategy alertStrategy) : base(samplePeriodMilliseconds)
 {
     _alertStrategy = alertStrategy;
 }
예제 #4
0
 public void SetStrategy(IAlertStrategy strategy)
 {
     _strategy = strategy;
 }