orangeqs.juice.dashboard.widgets.control_pc_table#
Widgets and data sources for the resource usage of the Control PC.
Module Contents#
Classes#
Used and total amount of a resource, in bytes. |
|
Resource usage of the control PC. |
|
Queries the latest control PC resource usage from InfluxDB. |
|
Overview of the control PC usage. |
Data#
API#
- orangeqs.juice.dashboard.widgets.control_pc_table.units#
‘UnitRegistry(…)’
- class orangeqs.juice.dashboard.widgets.control_pc_table.Usage#
Used and total amount of a resource, in bytes.
- class orangeqs.juice.dashboard.widgets.control_pc_table.ControlPCUsage#
Resource usage of the control PC.
Nonemeans missing data.- memory: orangeqs.juice.dashboard.widgets.control_pc_table.Usage | None#
None
- disks: dict[str, orangeqs.juice.dashboard.widgets.control_pc_table.Usage | None]#
‘field(…)’
- class orangeqs.juice.dashboard.widgets.control_pc_table.ControlPCUsageSource(disk_mount_points: collections.abc.Iterable[str], query_api: influxdb_client.client.query_api_async.QueryApiAsync | None = None)#
Queries the latest control PC resource usage from InfluxDB.
- async fetch() orangeqs.juice.dashboard.widgets.control_pc_table.ControlPCUsage#
Query the latest resource usage of the control PC.
limit=1counts per series key, so each query returns the most recent reading of every series: one per CPU, one per mount point.Raises#
(RuntimeError): If the InfluxDB query could not be executed.
- class orangeqs.juice.dashboard.widgets.control_pc_table.ControlPCOverviewTable(*, data_table_opts: dict[str, Any] | None = None)#
Bases:
orangeqs.juice.dashboard.widgets.common.datatable_widget.DataTableWidgetOverview of the control PC usage.
This widget outputs CPU, memory, swap and disk usage for configured disks in a form of a two-column table. Bokeh table is exposed as
ControlPCOverviewtable.root, and update is triggered usingControlPCOverviewtable.update()coroutine.