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