Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
type State struct { // Pid contains process id. Pid int `json:"pid"` // Status of the worker. Status string `json:"status"` // Number of worker executions. NumJobs uint64 `json:"numExecs"` // Created is unix nano timestamp of worker creation time. Created int64 `json:"created"` // MemoryUsage holds the information about worker memory usage in bytes. // Values might vary for different operating systems and based on RSS. MemoryUsage uint64 `json:"memoryUsage"` // CPU_Percent returns how many percent of the CPU time this process uses CPUPercent float64 // Command used in the service plugin and shows a command for the particular service Command string }
State provides information about specific worker.
func WorkerProcessState ¶
func WorkerProcessState(w worker.BaseProcess) (*State, error)
WorkerProcessState creates new worker state definition.
Click to show internal directories.
Click to hide internal directories.