Documentation ¶
Index ¶
Constants ¶
View Source
const PluginName = "informer"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Informer ¶
type Informer interface {
Workers() []worker.BaseProcess
}
Informer used to get workers from particular plugin or set of plugins
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) CollectTarget ¶
CollectTarget resettable service.
type ProcessState ¶ added in v1.0.1
type ProcessState struct { // Pid contains process id. Pid int `json:"pid"` // Status of the worker. Status string `json:"status"` // Number of worker executions. NumJobs int64 `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"` }
ProcessState provides information about specific worker.
func WorkerProcessState ¶ added in v1.0.1
func WorkerProcessState(w worker.BaseProcess) (ProcessState, error)
WorkerProcessState creates new worker state definition.
type WorkerList ¶
type WorkerList struct { // Workers is list of workers. Workers []ProcessState `json:"workers"` }
WorkerList contains list of workers.
Click to show internal directories.
Click to hide internal directories.