Exemplo n.º 1
0
        public AresMetrics(string key, IIOperationProperties properties)
        {
            this.key = key;

            healthSnapshot = new Health(0, 0);
            this.counter = new RollingNumber(properties.MetricsRollingStatisticalWindowInMilliseconds, properties.MetricsRollingStatisticalWindowBuckets);
        }
Exemplo n.º 2
0
 public CircuitBreaker(IIOperationProperties properties, AresMetrics metrics)
 {
     this.properties = properties;
     this.metrics = metrics;
 }
Exemplo n.º 3
0
 public static AresMetrics Get(string name, IIOperationProperties properties)
 {
     return metrics.GetOrAdd(name, key => new AresMetrics(key, properties));
 }
Exemplo n.º 4
0
 public static CircuitBreaker Get(string name, IIOperationProperties properties)
 {
     return breakers.GetOrAdd(name, key => new CircuitBreaker(properties, AresMetricsFactory.Get(key, properties)));
 }