2424class InfluxDBClient (_BaseClient ):
2525 """InfluxDBClient is client for InfluxDB v2."""
2626
27- def __init__ (self , url , token , debug = None , timeout = 10_000 , enable_gzip = False , org : str = None ,
27+ def __init__ (self , url , token : str = None , debug = None , timeout = 10_000 , enable_gzip = False , org : str = None ,
2828 default_tags : dict = None , ** kwargs ) -> None :
2929 """
3030 Initialize defaults.
3131
3232 :param url: InfluxDB server API url (ex. http://localhost:8086).
33- :param token: auth token
33+ :param token: `` token`` to authenticate to the InfluxDB API
3434 :param debug: enable verbose logging of http requests
3535 :param timeout: HTTP client timeout setting for a request specified in milliseconds.
3636 If one number provided, it will be total request timeout.
@@ -50,6 +50,8 @@ def __init__(self, url, token, debug=None, timeout=10_000, enable_gzip=False, or
5050 :key bool auth_basic: Set this to true to enable basic authentication when talking to a InfluxDB 1.8.x that
5151 does not use auth-enabled but is protected by a reverse proxy with basic authentication.
5252 (defaults to false, don't set to true when talking to InfluxDB 2)
53+ :key str username: ``username`` to authenticate via username and password credentials to the InfluxDB 2.x
54+ :key str password: ``password`` to authenticate via username and password credentials to the InfluxDB 2.x
5355 :key list[str] profilers: list of enabled Flux profilers
5456 """
5557 super ().__init__ (url = url , token = token , debug = debug , timeout = timeout , enable_gzip = enable_gzip , org = org ,
0 commit comments