Esempio n. 1
0
 private void Init()
 {
     foreach (var metricsInstance in HystrixCommandMetrics.GetInstances())
     {
         metricsInstance.ResetStream();
     }
 }
Esempio n. 2
0
 private HystrixDashboardStream(int delayInMs)
 {
     this.delayInMs    = delayInMs;
     this.singleSource = Observable.Interval(TimeSpan.FromMilliseconds(delayInMs))
                         .Map((timestamp) => { return(new DashboardData(HystrixCommandMetrics.GetInstances(), HystrixThreadPoolMetrics.GetInstances(), HystrixCollapserMetrics.GetInstances())); })
                         .OnSubscribe(() => { isSourceCurrentlySubscribed.Value = true; })
                         .OnDispose(() => { isSourceCurrentlySubscribed.Value = false; })
                         .Publish().RefCount();
 }
        private void Init()
        {
            foreach (HystrixCommandMetrics metricsInstance in HystrixCommandMetrics.GetInstances())
            {
                metricsInstance.ResetStream();
            }

            // HystrixCommandMetrics.Reset();
            //HystrixCircuitBreakerFactory.Reset();
            //Hystrix.Reset();
        }