asphalt.influxdb.component
¶
-
class
asphalt.influxdb.component.
InfluxDBComponent
(clients: typing.Dict[str, typing.Dict[str, typing.Any]] = None, **default_client_args)¶ Bases:
asphalt.core.component.Component
Creates one or more
InfluxDBClient
resources.If
clients
is given, an InfluxDB client resource will be added for each key in the dictionary, using the key as the resource name. Any extra keyword arguments to the component constructor will be used as defaults for omitted configuration values. The context attribute will by default be the same as the resource name, unless explicitly set with thecontext_attr
option.If
clients
is omitted, a single InfluxDB client resource (default
/ctx.influxdb
) is added using any extra keyword arguments passed to the component.The client(s) will not connect to the target database until they’re used for the first time.
Parameters: - clients (
Optional
[Dict
[str
,Dict
[str
,Any
]]]) – a dictionary of resource name ⭢InfluxDBClient
arguments - default_client_args – default values for omitted
InfluxDBClient
arguments
- clients (