mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-29 07:21: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:
|
class PrometheusQueries:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _send_request(endpoint="/api/v1/query_range", params=None) -> PrometheusInfo:
|
def _send_request(endpoint="/api/v1/query", params=None) -> PrometheusInfo:
|
||||||
try:
|
try:
|
||||||
response = requests.get(f"{PROMETHEUS_URL}{endpoint}", params=params)
|
response = requests.get(f"{PROMETHEUS_URL}{endpoint}", params=params)
|
||||||
return PrometheusInfo(
|
return PrometheusInfo(
|
||||||
|
|
Loading…
Reference in a new issue