From 7c620d0056ef800626e57b1c6d905aa3812a477a Mon Sep 17 00:00:00 2001 From: Inex Code Date: Mon, 29 Jul 2024 14:19:52 +0300 Subject: [PATCH] chore: Fix spelling --- selfprivacy_api/utils/monitoring.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/selfprivacy_api/utils/monitoring.py b/selfprivacy_api/utils/monitoring.py index b1a3fcb..01f1b3f 100644 --- a/selfprivacy_api/utils/monitoring.py +++ b/selfprivacy_api/utils/monitoring.py @@ -78,8 +78,8 @@ class MonitoringQueries: return MonitoringValue(timestamp=datetime.fromtimestamp(x[0]), value=x[1]) @staticmethod - def _prometheus_respone_to_monitoring_metrics( - responese: dict, id_key: str + def _prometheus_response_to_monitoring_metrics( + response: dict, id_key: str ) -> List[MonitoringMetric]: return list( map( @@ -92,7 +92,7 @@ class MonitoringQueries: ) ), ), - responese["result"], + response["result"], ) ) @@ -215,7 +215,7 @@ class MonitoringQueries: if isinstance(data, MonitoringQueryError): return data - return MonitoringQueries._prometheus_respone_to_monitoring_metrics( + return MonitoringQueries._prometheus_response_to_monitoring_metrics( data, "device" ) @@ -259,6 +259,6 @@ class MonitoringQueries: if isinstance(data, MonitoringQueryError): return data - return MonitoringQueries._prometheus_respone_to_monitoring_metrics( + return MonitoringQueries._prometheus_response_to_monitoring_metrics( data, "device" )