Skip to content

Commit 134daea

Browse files
jhoxhaalippserd
authored andcommitted
Change id to uuid
1 parent 217c6b1 commit 134daea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/Kubernetes/Common/Metrics.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public function getNodesMetrics(DateTimeInterface $startDataTime, string ...$met
136136
);
137137

138138
foreach ($rs as $row) {
139-
$id = $row['id'];
139+
$id = $row['uuid'];
140140
$ts = $row['timestamp'];
141141
$data[$id]['name'] = $row['name'];
142142
$data[$id][$category][$ts] = $row['value'];
@@ -242,7 +242,7 @@ public function getPodsMetricsCurrent(string ...$metricCategories): array
242242
);
243243

244244
foreach ($rs as $row) {
245-
$id = $row['id'];
245+
$id = $row['uuid'];
246246
$data[$id]['name'] = $row['name'];
247247
$data[$id][$category] = $row['value'];
248248
}
@@ -301,7 +301,7 @@ public function getPodsMetrics(DateTimeInterface $startDateTime, string ...$metr
301301
);
302302

303303
foreach ($rs as $row) {
304-
$id = $row['id'];
304+
$id = $row['uuid'];
305305
$ts = $row['timestamp'];
306306

307307
$data[$id]['name'] = $row['name'];

0 commit comments

Comments
 (0)