mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-25 21:41:27 +00:00
fix: query_range to query
This commit is contained in:
parent
f96c9c2aea
commit
6357fb436c
|
@ -19,7 +19,7 @@ class PrometheusInfo:
|
|||
|
||||
class PrometheusQueries:
|
||||
@staticmethod
|
||||
def _send_request(endpoint="/api/v1/query_range", params=None) -> PrometheusInfo:
|
||||
def _send_request(endpoint="/api/v1/query", params=None) -> PrometheusInfo:
|
||||
try:
|
||||
response = requests.get(f"{PROMETHEUS_URL}{endpoint}", params=params)
|
||||
return PrometheusInfo(
|
||||
|
|
Loading…
Reference in a new issue