|
|
|
@ -61,7 +61,8 @@ public class MetricCollectingService { |
|
|
|
|
public void receiveData(Map<Long, Map<String, MetricDataDto>> collectedMetricData) { |
|
|
|
|
List<MetricRecordEntity> batchSaveEntityList = new ArrayList<>(DEFAULT_DB_BATCH_SIZE); |
|
|
|
|
int turn = 0; |
|
|
|
|
for (Long timestamp : collectedMetricData.keySet()) { |
|
|
|
|
List<Long> sortedTime = collectedMetricData.keySet().stream().sorted().toList(); |
|
|
|
|
for (Long timestamp : sortedTime) { |
|
|
|
|
Map<String, MetricDataDto> instanceMetricData = collectedMetricData.get(timestamp); |
|
|
|
|
for (String instanceId : instanceMetricData.keySet()) { |
|
|
|
|
MetricDataDto metricDataDto = instanceMetricData.get(instanceId); |
|
|
|
|