smah.settings.system.stats
- class smah.settings.system.stats.CpuStats[source]
Bases:
BaseStatsRepresents CPU statistics.
- time_stamp
The timestamp of the last update.
- Type:
datetime
- cpu_count
The last recorded CPU count.
- Type:
int
- cpu_freq
The last recorded CPU frequency.
- Type:
float
- cpu_percent
The last recorded CPU usage percentage.
- Type:
float
- static cpu_info(reading)[source]
Retrieves CPU information based on the specified reading type.
- Parameters:
reading (str) – The type of CPU information to retrieve.
- Returns:
The requested CPU information.
- Return type:
int or float
- class smah.settings.system.stats.DiskStats[source]
Bases:
BaseStatsRepresents disk statistics.
- time_stamp
The timestamp of the last update.
- Type:
datetime
- total
The last recorded total disk space.
- Type:
float
- available
The last recorded available disk space.
- Type:
float
- used
The last recorded used disk space.
- Type:
float
- percent
The last recorded disk usage percentage.
- Type:
float
- static disk_info(reading)[source]
Retrieves disk information based on the specified reading type.
- Parameters:
reading (str) – The type of disk information to retrieve.
- Returns:
The requested disk information.
- Return type:
float
- class smah.settings.system.stats.MemoryStats[source]
Bases:
BaseStatsRepresents memory statistics.
- time_stamp
The timestamp of the last update.
- Type:
datetime
- total
The last recorded total memory.
- Type:
float
- available
The last recorded available memory.
- Type:
float
- used
The last recorded used memory.
- Type:
float
- percent
The last recorded memory usage percentage.
- Type:
float
- static memory_info(reading)[source]
Retrieves memory information based on the specified reading type.
- Parameters:
reading (str) – The type of memory information to retrieve.
- Returns:
The requested memory information.
- Return type:
float
Modules