private MetricEvent( DateTime collectionStarted, DateTime collectionCompleted, TimeSpan totalLatency, TimeSpan listJobsLatency, IDictionary<string, JobMetrics> jobStats) { this.collectionStarted = collectionStarted; this.collectionCompleted = collectionCompleted; this.totalLatency = totalLatency; this.listJobsLatency = listJobsLatency; this.jobMetrics = new Dictionary<string, JobMetrics>(jobStats); this.latency = new Latency(totalLatency, listJobsLatency, jobStats.ToDictionary(kvp => kvp.Key, kvp => kvp.Value.ListTasksLatency)); }
private MetricEvent( DateTime collectionStarted, DateTime collectionCompleted, TimeSpan totalLatency, TimeSpan listJobsLatency, IDictionary <string, JobMetrics> jobStats) { this.collectionStarted = collectionStarted; this.collectionCompleted = collectionCompleted; this.totalLatency = totalLatency; this.listJobsLatency = listJobsLatency; this.jobMetrics = new Dictionary <string, JobMetrics>(jobStats); this.latency = new Latency(totalLatency, listJobsLatency, jobStats.ToDictionary(kvp => kvp.Key, kvp => kvp.Value.ListTasksLatency)); }