Skip to content

Commit cdd6544

Browse files
committed
add method getSensorMetricNames
Signed-off-by: hwassman <[email protected]>
1 parent 6be1f6a commit cdd6544

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

source/queryHandler/Topo.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,12 @@ def getSensorForMetric(self, searchMetric):
205205
return sensor
206206
return None
207207

208+
def getSensorMetricNames(self, searchSensor: str) -> list:
209+
metrics = self.__metricsDef.get(searchSensor, None)
210+
if metrics:
211+
return metrics.values()
212+
return []
213+
208214
def getSensorsForMeasurementMetrics(self, searchMetrics):
209215
sensorsList = []
210216
for metric in searchMetrics:

0 commit comments

Comments
 (0)