mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-10-11 04:16:17 +00:00
Update AppImage
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
export interface Temperature {
|
||||
name: string
|
||||
original_name?: string
|
||||
current: number
|
||||
high?: number
|
||||
critical?: number
|
||||
adapter?: string
|
||||
chip?: string
|
||||
}
|
||||
|
||||
export interface PowerMeter {
|
||||
@@ -51,10 +53,42 @@ export interface PCIDevice {
|
||||
gpu_memory_clock?: string
|
||||
}
|
||||
|
||||
export interface GPUProcess {
|
||||
pid: string
|
||||
name: string
|
||||
memory: string
|
||||
}
|
||||
|
||||
export interface GPU {
|
||||
slot: string
|
||||
name: string
|
||||
vendor: string
|
||||
type: string
|
||||
index?: number
|
||||
memory_total?: string
|
||||
memory_used?: string
|
||||
memory_free?: string
|
||||
temperature?: number
|
||||
power_draw?: string
|
||||
power_limit?: string
|
||||
utilization?: number
|
||||
memory_utilization?: number
|
||||
clock_graphics?: string
|
||||
clock_memory?: string
|
||||
driver_version?: string
|
||||
pcie_gen?: string
|
||||
pcie_width?: string
|
||||
processes?: GPUProcess[]
|
||||
intel_gpu_top_available?: boolean
|
||||
radeontop_available?: boolean
|
||||
}
|
||||
|
||||
export interface Fan {
|
||||
name: string
|
||||
type: string
|
||||
speed: number
|
||||
unit: string
|
||||
adapter?: string
|
||||
}
|
||||
|
||||
export interface PowerSupply {
|
||||
@@ -73,15 +107,69 @@ export interface UPS {
|
||||
output_voltage?: number
|
||||
}
|
||||
|
||||
export interface DiskPartition {
|
||||
name: string
|
||||
size?: string
|
||||
fstype?: string
|
||||
mountpoint?: string
|
||||
}
|
||||
|
||||
export interface DiskDetails {
|
||||
name: string
|
||||
type?: string
|
||||
driver?: string
|
||||
model?: string
|
||||
serial?: string
|
||||
size?: string
|
||||
block_size?: string
|
||||
scheduler?: string
|
||||
rotational?: boolean
|
||||
removable?: boolean
|
||||
read_only?: boolean
|
||||
smart_available?: boolean
|
||||
smart_enabled?: boolean
|
||||
smart_health?: string
|
||||
temperature?: number
|
||||
power_on_hours?: number
|
||||
partitions?: DiskPartition[]
|
||||
}
|
||||
|
||||
export interface NetworkInterfaceDetails {
|
||||
name: string
|
||||
driver?: string
|
||||
driver_version?: string
|
||||
firmware_version?: string
|
||||
bus_info?: string
|
||||
link_detected?: string
|
||||
speed?: string
|
||||
duplex?: string
|
||||
mtu?: string
|
||||
mac_address?: string
|
||||
ip_addresses?: Array<{
|
||||
type: string
|
||||
address: string
|
||||
}>
|
||||
statistics?: {
|
||||
rx_bytes?: string
|
||||
rx_packets?: string
|
||||
tx_bytes?: string
|
||||
tx_packets?: string
|
||||
}
|
||||
}
|
||||
|
||||
export interface HardwareData {
|
||||
temperatures?: Temperature[]
|
||||
power_meter?: PowerMeter
|
||||
network_cards?: NetworkInterface[]
|
||||
storage_devices?: StorageDevice[]
|
||||
pci_devices?: PCIDevice[]
|
||||
gpus?: GPU[]
|
||||
fans?: Fan[]
|
||||
power_supplies?: PowerSupply[]
|
||||
ups?: UPS
|
||||
cpu?: any
|
||||
motherboard?: any
|
||||
memory_modules?: any[]
|
||||
}
|
||||
|
||||
export const fetcher = (url: string) => fetch(url).then((res) => res.json())
|
||||
|
Reference in New Issue
Block a user