Ejemplo n.º 1
0
 public InMemoryMetricsLog(IMetricsSdkApiClient apiClient, IMetricsCache metricsCache, int maxCountCalls = 1000, int maxTimeBetweenCalls = 60)
 {
     this.apiClient           = apiClient;
     this.metricsCache        = metricsCache;
     this.maxCountCalls       = maxCountCalls;
     this.maxTimeBetweenCalls = maxTimeBetweenCalls * 1000;
     this.countLastCall       = utcNowTimestamp;
     this.timeLastCall        = utcNowTimestamp;
     this.gaugeLastCall       = utcNowTimestamp;
 }
Ejemplo n.º 2
0
 public AsyncMetricsLog(IMetricsSdkApiClient metricsSdkApiClient,
                        IMetricsCache metricsCache,
                        int maxCountCalls       = -1,
                        int maxTimeBetweenCalls = -1)
 {
     _metricsSdkApiClient = metricsSdkApiClient;
     _metricsCache        = metricsCache;
     _maxCountCalls       = maxCountCalls;
     _maxTimeBetweenCalls = maxTimeBetweenCalls;
 }
Ejemplo n.º 3
0
 public AsyncMetricsLog(IMetricsSdkApiClient apiClient, IMetricsCache metricsCache, int maxCountCalls = -1, int maxTimeBetweenCalls = -1)
 {
     worker = new InMemoryMetricsLog(apiClient, metricsCache, maxCountCalls, maxTimeBetweenCalls);
 }
Ejemplo n.º 4
0
 public RedisMetricsLog(IMetricsCache metricsCache)
 {
     this.metricsCache = metricsCache;
 }