SystemResource¶
SystemResource
¶
System information and logs for PiKVM.
Source code in src/aiopikvm/resources/system.py
get_info(*fields)
async
¶
Get general device information.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
*fields
|
str
|
Optional category filters ( |
()
|
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
Dictionary with device information grouped by category. |
Source code in src/aiopikvm/resources/system.py
get_log(*, seek=0)
async
¶
Get KVMD service logs.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
seek
|
int
|
How many seconds of history to return ( |
0
|
Returns:
| Type | Description |
|---|---|
str
|
Log output as plain text. |
Source code in src/aiopikvm/resources/system.py
stream_log(*, seek=0)
async
¶
Stream KVMD service logs in real time.
Uses follow=1 to keep the connection open and yield new
log lines as they arrive.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
seek
|
int
|
How many seconds of history to return ( |
0
|
Yields:
| Type | Description |
|---|---|
AsyncIterator[str]
|
Individual log lines as they arrive. |