A threaded event handler class.
Definition at line 510 of file __init__.py.
◆ __init__()
| def homeassistant.components.influxdb.InfluxThread.__init__ |
( |
|
self, |
|
|
|
hass, |
|
|
|
influx, |
|
|
|
event_to_json, |
|
|
|
max_tries |
|
) |
| |
◆ _event_listener()
| def homeassistant.components.influxdb.InfluxThread._event_listener |
( |
|
self, |
|
|
|
event |
|
) |
| |
|
private |
Listen for new messages on the bus and queue them for Influx.
Definition at line 527 of file __init__.py.
◆ batch_timeout()
| def homeassistant.components.influxdb.InfluxThread.batch_timeout |
( |
| ) |
|
|
static |
Return number of seconds to wait for more events.
Definition at line 533 of file __init__.py.
◆ block_till_done()
| def homeassistant.components.influxdb.InfluxThread.block_till_done |
( |
|
self | ) |
|
Block till all events processed.
Currently only used for testing.
Definition at line 601 of file __init__.py.
◆ get_events_json()
| def homeassistant.components.influxdb.InfluxThread.get_events_json |
( |
|
self | ) |
|
Return a batch of events formatted for writing.
Definition at line 537 of file __init__.py.
◆ run()
| def homeassistant.components.influxdb.InfluxThread.run |
( |
|
self | ) |
|
◆ write_to_influxdb()
| def homeassistant.components.influxdb.InfluxThread.write_to_influxdb |
( |
|
self, |
|
|
|
json |
|
) |
| |
Write preprocessed events to influxdb, with retry.
Definition at line 571 of file __init__.py.
◆ event_to_json
| homeassistant.components.influxdb.InfluxThread.event_to_json |
◆ influx
| homeassistant.components.influxdb.InfluxThread.influx |
◆ max_tries
| homeassistant.components.influxdb.InfluxThread.max_tries |
◆ shutdown
| homeassistant.components.influxdb.InfluxThread.shutdown |
◆ write_errors
| homeassistant.components.influxdb.InfluxThread.write_errors |
The documentation for this class was generated from the following file: