Example #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;
 }
Example #2
0
 public AsyncMetricsLog(IMetricsSdkApiClient metricsSdkApiClient,
                        IMetricsCache metricsCache,
                        int maxCountCalls       = -1,
                        int maxTimeBetweenCalls = -1)
 {
     _metricsSdkApiClient = metricsSdkApiClient;
     _metricsCache        = metricsCache;
     _maxCountCalls       = maxCountCalls;
     _maxTimeBetweenCalls = maxTimeBetweenCalls;
 }
Example #3
0
 public AsyncMetricsLog(IMetricsSdkApiClient apiClient, IMetricsCache metricsCache, int maxCountCalls = -1, int maxTimeBetweenCalls = -1)
 {
     worker = new InMemoryMetricsLog(apiClient, metricsCache, maxCountCalls, maxTimeBetweenCalls);
 }
Example #4
0
 public RedisMetricsLog(IMetricsCache metricsCache)
 {
     this.metricsCache = metricsCache;
 }