activity_history
module core.interfaces.activity_history
class ActivityHistoryInterface
Logging the system activity every minute to logs/activity/activity-YYYY-MM-DD.json
to plot it in the UI.
method add_datapoint
add_datapoint(
is_measuring: 'Optional[bool]' = None,
has_errors: 'Optional[bool]' = None,
is_uploading: 'Optional[bool]' = None,
camtracker_startups: 'Optional[int]' = None,
opus_startups: 'Optional[int]' = None,
cli_calls: 'Optional[int]' = None
) → None
Add a new activity datapoint. When this function is called multiple times in the same minute, the datapoints are aggregated into one datapoint per minute.
method dump_current_activity_history
dump_current_activity_history() → None