Documentation
¶
Overview ¶
Package process provides resource usage metrics for the current process.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EvaluateProcessConditions ¶
func EvaluateProcessConditions( metrics *Metrics, thresholds ConditionThresholds, prev []job.Condition, ) []job.Condition
EvaluateProcessConditions evaluates process-level conditions against thresholds and returns the condition list. Tracks transition times using the previous condition state.
Types ¶
type ConditionThresholds ¶
type ConditionThresholds struct {
// MemoryPressureBytes is the RSS threshold in bytes.
MemoryPressureBytes int64
// HighCPUPercent is the CPU usage threshold as a percentage.
HighCPUPercent float64
}
ConditionThresholds holds thresholds for process-level conditions.
Click to show internal directories.
Click to hide internal directories.