mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-25 05:21:28 +00:00
chore: Fix spelling
This commit is contained in:
parent
2d07505b4d
commit
7c620d0056
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue