controller_driver
drunc.controller.controller_driver
Classes
ControllerDriver(address, token)
Source code in drunc/controller/controller_driver.py
Methods:
send_log(text, severity='INFO', logger=LoggerTarget.MAIN, target='', execute_along_path=False, execute_on_all_subsequent_children_in_path=True, timeout=60)
Sends a log message to the controller and optionally its children.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text
|
str
|
The message to log. |
required |
severity
|
str
|
The log severity, such as |
'INFO'
|
logger
|
int
|
The server logger target. |
MAIN
|
target
|
str
|
The target node for the message. |
''
|
execute_along_path
|
bool
|
Whether to execute along the target path. |
False
|
execute_on_all_subsequent_children_in_path
|
bool
|
Whether to execute on all subsequent children in the target path. |
True
|
timeout
|
int | float
|
The gRPC request timeout in seconds. |
60
|
Returns:
| Type | Description |
|---|---|
SendLogResponse
|
The response from the controller. |
Raises:
| Type | Description |
|---|---|
RpcError
|
If the gRPC request fails. |