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.ComponentCreates one or more
InfluxDBClientresources.If
clientsis 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_attroption.If
clientsis 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 ⭢InfluxDBClientarguments - default_client_args – default values for omitted
InfluxDBClientarguments
- clients (