Menu
Introduction
Getting Started
Developer guide
Release
Architecture
CLI
Technical documentations
Version
Publication date

Mar 9, 2022

Confidentiality
Public
Reactions
2
Share

MonitorService

Functions
check_upload_space @classmethod

Pre-flight check telling whether an upload of the given size would fit on disk, without writing anything. Used by the frontend before starting an upload so the user does not wait for the whole transfer to learn the upload won't fit.

file_size : float
the size of the upload in bytes
Return type : UploadSpaceCheckDTO
cleanup_old_monitor_data @classmethod
deinit @classmethod
get_current_monitor @classmethod
Return type : CurrentMonitorDTO
get_folder_sizes @classmethod

Get the size of important system folders.

Uses 'du -sb' via subprocess for efficiency on large directories (>100GB). All folder sizes are computed in parallel using asyncio.

Return type : DiskFolderSizesDTO
get_free_disk_info @classmethod

Get information about the free disk space.

Return type : MonitorFreeDiskDTO
get_monitor_data_graphics_between_dates @classmethod
from_date : datetime
to_date : datetime
utc_number : float - 0
seconds_margin : int | None
Return type : MonitorBetweenDateGraphicsDTO
get_monitor_graphics_between_dates_str @classmethod
from_date_str : str
to_date_str : str
utc_num : float - 0.0
Return type : MonitorBetweenDateGraphicsDTO
get_plotly_figure_dict @classmethod
dataframe : DataFrame
x : str
y : list
y_labs : dict | None
Return type : dict
init @classmethod
save_current_monitor @classmethod
Return type : Monitor
Shine Logo
Technical bricks to reuse or customize

Have you developed a brick?

Share it to accelerate projects for the entire community.