Esempio n. 1
0
 public RetryPolicyOnIgnoreMetrics(IInternalMetricsRegistry <NodeMetric> nodeMetricsRegistry, string context)
 {
     ReadTimeout  = nodeMetricsRegistry.Counter(context, NodeMetric.Counters.IgnoresOnReadTimeout);
     WriteTimeout = nodeMetricsRegistry.Counter(context, NodeMetric.Counters.IgnoresOnWriteTimeout);
     Unavailable  = nodeMetricsRegistry.Counter(context, NodeMetric.Counters.IgnoresOnUnavailable);
     Other        = nodeMetricsRegistry.Counter(context, NodeMetric.Counters.IgnoresOnOtherError);
     Total        = nodeMetricsRegistry.Counter(context, NodeMetric.Counters.Ignores);
 }
Esempio n. 2
0
 public RequestErrorMetrics(IInternalMetricsRegistry <NodeMetric> nodeMetricsRegistry, string context)
 {
     Aborted              = nodeMetricsRegistry.Counter(context, NodeMetric.Counters.AbortedRequests);
     ReadTimeout          = nodeMetricsRegistry.Counter(context, NodeMetric.Counters.ReadTimeouts);
     WriteTimeout         = nodeMetricsRegistry.Counter(context, NodeMetric.Counters.WriteTimeouts);
     Unavailable          = nodeMetricsRegistry.Counter(context, NodeMetric.Counters.UnavailableErrors);
     Other                = nodeMetricsRegistry.Counter(context, NodeMetric.Counters.OtherErrors);
     Unsent               = nodeMetricsRegistry.Counter(context, NodeMetric.Counters.UnsentRequests);
     ClientTimeout        = nodeMetricsRegistry.Counter(context, NodeMetric.Counters.ClientTimeouts);
     ConnectionInitErrors = nodeMetricsRegistry.Counter(context, NodeMetric.Counters.ConnectionInitErrors);
     AuthenticationErrors = nodeMetricsRegistry.Counter(context, NodeMetric.Counters.AuthenticationErrors);
 }