diff --git a/netdata/__init__.py b/netdata/__init__.py index e8a3e96..4ba3904 100644 --- a/netdata/__init__.py +++ b/netdata/__init__.py @@ -22,7 +22,7 @@ class Netdata(object): """A class for handling connections with a Netdata instance.""" - def __init__(self, host, loop, session, port=19999, path=None): + def __init__(self, host, loop, session, scheme="http", port=19999, path=None): """Initialize the connection to the Netdata instance.""" self._loop = loop self._session = session @@ -30,9 +30,9 @@ def __init__(self, host, loop, session, port=19999, path=None): self.port = port self.values = self.alarms = self.metrics = None if path is None: - self.base_url = URL.build(scheme="http", host=host, port=port, path=f"/api/v{API_VERSION}/") + self.base_url = URL.build(scheme, host=host, port=port, path=f"/api/v{API_VERSION}/") else: - self.base_url = URL.build(scheme="http", host=host, port=port, path=path) + self.base_url = URL.build(scheme, host=host, port=port, path=path) async def get_data(self, resource): pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy