Dashboard
dashboard_state_verification
Perform cli commands verification (state checking).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ctx |
Context
|
Typer (Click like) special internal object that holds state relevant for the script execution at every single level. |
required |
Source code in src/trecover/app/cli/dashboard.py
dashboard_start
dashboard_start(
host=Option(
var.STREAMLIT_HOST,
"--host",
"-h",
help="Bind socket to this host.",
),
port=Option(
var.STREAMLIT_PORT,
"--port",
"-p",
help="Bind socket to this port.",
),
loglevel=Option(
var.LogLevel.info,
"--loglevel",
"-l",
help="Logging level.",
),
attach=Option(
False,
"--attach",
"-a",
is_flag=True,
help="Attach output and error streams",
),
no_daemon=Option(
False,
"--no-daemon",
is_flag=True,
help="Do not run as a daemon process",
),
)
Start dashboard service.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
host |
str, default
|
The address where the server will listen for client and browser connections. Use this if you want to bind the server to a specific address. If set, the server will only be accessible from this address, and not from any aliases (like localhost). |
Option(var.STREAMLIT_HOST, '--host', '-h', help='Bind socket to this host.')
|
port |
int, default
|
The port where the server will listen for browser connections. |
Option(var.STREAMLIT_PORT, '--port', '-p', help='Bind socket to this port.')
|
loglevel |
var.LogLevel
|
Level of logging. |
'debug'
|
attach |
bool, default
|
Attach output and error streams. |
Option(False, '--attach', '-a', is_flag=True, help='Attach output and error streams')
|
no_daemon |
bool, default
|
Do not run as a daemon process. |
Option(False, '--no-daemon', is_flag=True, help='Do not run as a daemon process')
|
Source code in src/trecover/app/cli/dashboard.py
dashboard_stop
Stop dashboard service.
Source code in src/trecover/app/cli/dashboard.py
dashboard_status
Display dashboard service status.
Source code in src/trecover/app/cli/dashboard.py
dashboard_attach
dashboard_attach(
live=Option(
False,
"--live",
"-l",
is_flag=True,
help="Stream only fresh log records",
)
)
Attach local output stream to a running dashboard service.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
live |
bool, Default
|
Stream only fresh log records |
Option(False, '--live', '-l', is_flag=True, help='Stream only fresh log records')
|