rayhunter.system_stats¶
- class rayhunter.system_stats.BatteryState(is_plugged_in: bool, level: int)[source]¶
Bases:
objectDevice battery information.
- class rayhunter.system_stats.DiskStats(available_bytes: int | None, available_size: int, mounted_on: str, partition: str, total_size: int, used_percent: int, used_size: int)[source]¶
Bases:
objectDisk usage statistics and information about the underlying filesystem, obtained from the Rayhunter API.
Size and percentage values are converted from string (e.g. 214.7M) to bytes (e.g. 225129267) for programmatic ease of use.
- class rayhunter.system_stats.MemoryStats(total: int, used: int, free: int)[source]¶
Bases:
objectMemory usage statistics, obtained from the Rayhunter API.
Size and percentage values are converted from string (e.g. 159.9) to bytes (e.g. 167667302) for programmatic ease of use.
- class rayhunter.system_stats.RuntimeMetadata(arch: str, rayhunter_version: str, system_os: str)[source]¶
Bases:
objectExpose binary and system information.
- rayhunter_version¶
The cargo package version from this library’s cargo.toml, e.g., “1.2.3”.
- Type:
- class rayhunter.system_stats.SystemStats(battery_status: BatteryState | None, disk_stats: DiskStats, memory_stats: MemoryStats, runtime_metadata: RuntimeMetadata)[source]¶
Bases:
objectDisk and memory utilization statistics for the underlying system, pulled from the Rayhunter API.
- battery_status¶
Optionally included power information
- Type:
Optional[BatteryState]
- memory_stats¶
Information on system memory utilization
- Type:
- runtime_metadata¶
System and binary information
- Type: