chore: Fix spelling

This commit is contained in:
Inex Code 2024-07-29 14:19:52 +03:00
parent 2d07505b4d
commit 7c620d0056

View file

@ -78,8 +78,8 @@ class MonitoringQueries:
return MonitoringValue(timestamp=datetime.fromtimestamp(x[0]), value=x[1]) return MonitoringValue(timestamp=datetime.fromtimestamp(x[0]), value=x[1])
@staticmethod @staticmethod
def _prometheus_respone_to_monitoring_metrics( def _prometheus_response_to_monitoring_metrics(
responese: dict, id_key: str response: dict, id_key: str
) -> List[MonitoringMetric]: ) -> List[MonitoringMetric]:
return list( return list(
map( map(
@ -92,7 +92,7 @@ class MonitoringQueries:
) )
), ),
), ),
responese["result"], response["result"],
) )
) )
@ -215,7 +215,7 @@ class MonitoringQueries:
if isinstance(data, MonitoringQueryError): if isinstance(data, MonitoringQueryError):
return data return data
return MonitoringQueries._prometheus_respone_to_monitoring_metrics( return MonitoringQueries._prometheus_response_to_monitoring_metrics(
data, "device" data, "device"
) )
@ -259,6 +259,6 @@ class MonitoringQueries:
if isinstance(data, MonitoringQueryError): if isinstance(data, MonitoringQueryError):
return data return data
return MonitoringQueries._prometheus_respone_to_monitoring_metrics( return MonitoringQueries._prometheus_response_to_monitoring_metrics(
data, "device" data, "device"
) )