A event handler class for Azure Data Explorer.
Definition at line 96 of file __init__.py.
◆ __init__()
| None homeassistant.components.azure_data_explorer.AzureDataExplorer.__init__ |
( |
|
self, |
|
|
HomeAssistant |
hass, |
|
|
ConfigEntry |
entry |
|
) |
| |
Initialize the listener.
Definition at line 99 of file __init__.py.
◆ _parse_event()
| tuple[str | None, int] homeassistant.components.azure_data_explorer.AzureDataExplorer._parse_event |
( |
|
self, |
|
|
datetime |
time_fired, |
|
|
State |
state, |
|
|
int |
dropped |
|
) |
| |
|
private |
Parse event by checking if it needs to be sent, and format it.
Definition at line 192 of file __init__.py.
◆ _schedule_next_send()
| None homeassistant.components.azure_data_explorer.AzureDataExplorer._schedule_next_send |
( |
|
self | ) |
|
|
private |
◆ async_listen()
| None homeassistant.components.azure_data_explorer.AzureDataExplorer.async_listen |
( |
|
self, |
|
|
Event |
event |
|
) |
| |
Listen for new messages on the bus and queue them for ADX.
Definition at line 155 of file __init__.py.
◆ async_send()
| None homeassistant.components.azure_data_explorer.AzureDataExplorer.async_send |
( |
|
self, |
|
|
|
_ |
|
) |
| |
Write preprocessed events to Azure Data Explorer.
Definition at line 160 of file __init__.py.
◆ async_start()
| None homeassistant.components.azure_data_explorer.AzureDataExplorer.async_start |
( |
|
self | ) |
|
Start the component.
This register the listener and
schedules the first send.
Definition at line 121 of file __init__.py.
◆ async_stop()
| None homeassistant.components.azure_data_explorer.AzureDataExplorer.async_stop |
( |
|
self | ) |
|
Shut down the ADX by queueing None, calling send, join queue.
Definition at line 133 of file __init__.py.
◆ test_connection()
| None homeassistant.components.azure_data_explorer.AzureDataExplorer.test_connection |
( |
|
self | ) |
|
Test the connection to the Azure Data Explorer service.
Definition at line 142 of file __init__.py.
◆ _client
| homeassistant.components.azure_data_explorer.AzureDataExplorer._client |
|
private |
◆ _client_secret
| homeassistant.components.azure_data_explorer.AzureDataExplorer._client_secret |
|
private |
◆ _entities_filter
| homeassistant.components.azure_data_explorer.AzureDataExplorer._entities_filter |
|
private |
◆ _entry
| homeassistant.components.azure_data_explorer.AzureDataExplorer._entry |
|
private |
◆ _listener_remover
| homeassistant.components.azure_data_explorer.AzureDataExplorer._listener_remover |
|
private |
◆ _max_delay
| homeassistant.components.azure_data_explorer.AzureDataExplorer._max_delay |
|
private |
◆ _next_send_remover
| homeassistant.components.azure_data_explorer.AzureDataExplorer._next_send_remover |
|
private |
◆ _send_interval
| homeassistant.components.azure_data_explorer.AzureDataExplorer._send_interval |
|
private |
◆ _shutdown
| homeassistant.components.azure_data_explorer.AzureDataExplorer._shutdown |
|
private |
◆ hass
| homeassistant.components.azure_data_explorer.AzureDataExplorer.hass |
The documentation for this class was generated from the following file:
- core/homeassistant/components/azure_data_explorer/__init__.py