Files
wehub-resource-sync 36b3af2e3d
PR Check / Tests: Unit (macos-latest) (push) Waiting to run
PR Check / Tests: Unit (ubuntu-24.04) (push) Waiting to run
PR Check / Tests: Unit (ubuntu-24.04-arm) (push) Waiting to run
PR Check / Tests: Unit (windows-latest) (push) Waiting to run
PR Check / Code Quality: Format (push) Failing after 1s
PR Check / Code Quality: Lint (darwin) (push) Failing after 0s
PR Check / Code Quality: Lint (freebsd) (push) Failing after 1s
PR Check / Code Quality: Lint (windows) (push) Failing after 1s
PR Check / Code Quality: Lint (linux) (push) Failing after 1s
PR Check / Security: Vulnerability Scan (push) Failing after 0s
Update Documentation / update-docs (push) Failing after 2s
PR Check / Code Quality: Vendor (push) Failing after 1s
PR Check / Code Quality: Coverage (push) Failing after 0s
chore: import upstream snapshot with attribution
2026-07-13 12:22:06 +08:00

23 lines
511 B
Go

package model
// ResourceContext holds resource usage context for a process
type ResourceContext struct {
// Energy impact level: "", "Low", "Medium", "High"
EnergyImpact string
// Whether the process is preventing system sleep
PreventsSleep bool
// Thermal state: "", "Normal", "Moderate", "Heavy", "Trapping", "Sleeping"
ThermalState string
// CPU scheduling priority if throttled
AppNapped bool
// CPU usage percentage (0-100)
CPUUsage float64
// Memory usage in bytes
MemoryUsage uint64
}