A threaded event handler class.
Definition at line 171 of file __init__.py.
◆ __init__()
| None homeassistant.components.zabbix.ZabbixThread.__init__ |
( |
|
self, |
|
|
ZabbixSender |
zabbix_sender, |
|
|
Callable[
[Event, set[str], set[str]], list[ZabbixMetric] | None
] |
event_to_metrics |
|
) |
| |
◆ _event_listener()
Listen for new messages on the bus and queue them for Zabbix.
Definition at line 206 of file __init__.py.
◆ _shutdown()
| None homeassistant.components.zabbix.ZabbixThread._shutdown |
( |
|
self, |
|
|
Event |
event |
|
) |
| |
|
private |
◆ get_metrics()
| tuple[int, list[ZabbixMetric]] homeassistant.components.zabbix.ZabbixThread.get_metrics |
( |
|
self | ) |
|
Return a batch of events formatted for writing.
Definition at line 211 of file __init__.py.
◆ run()
| None homeassistant.components.zabbix.ZabbixThread.run |
( |
|
self | ) |
|
◆ setup()
| None homeassistant.components.zabbix.ZabbixThread.setup |
( |
|
self, |
|
|
HomeAssistant |
hass |
|
) |
| |
Set up the thread and start it.
Definition at line 193 of file __init__.py.
◆ write_to_zabbix()
| None homeassistant.components.zabbix.ZabbixThread.write_to_zabbix |
( |
|
self, |
|
|
list[ZabbixMetric] |
metrics |
|
) |
| |
Write preprocessed events to zabbix, with retry.
Definition at line 246 of file __init__.py.
◆ event_to_metrics
| homeassistant.components.zabbix.ZabbixThread.event_to_metrics |
◆ MAX_TRIES
| int homeassistant.components.zabbix.ZabbixThread.MAX_TRIES = 3 |
|
static |
◆ shutdown
| homeassistant.components.zabbix.ZabbixThread.shutdown |
◆ write_errors
| homeassistant.components.zabbix.ZabbixThread.write_errors |
◆ zabbix_sender
| homeassistant.components.zabbix.ZabbixThread.zabbix_sender |
The documentation for this class was generated from the following file: