Documentation ¶
Index ¶
- Variables
- func GetMemoryInfo(pid int) (*processMemoryInfo, error)
- func NewSensor(ctx context.Context, deps resource.Dependencies, conf resource.Config, ...) (sensor.Sensor, error)
- type ComponentConfig
- type Config
- func (c *Config) Close(ctx context.Context) error
- func (c *Config) Readings(ctx context.Context, extra map[string]interface{}) (map[string]interface{}, error)
- func (c *Config) Ready(ctx context.Context, extra map[string]interface{}) (bool, error)
- func (c *Config) Reconfigure(ctx context.Context, _ resource.Dependencies, conf resource.Config) error
- func (c *Config) Update(ctx context.Context)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Model = resource.NewModel(utils.Namespace, "hwmonitor", "process_monitor") API = sensor.API PrettyName = "SBC Process Monitor" Description = "A sensor that reports process information" Version = utils.Version )
View Source
var (
ErrProcessNotFound = errors.New("process not found")
)
Functions ¶
func GetMemoryInfo ¶ added in v0.0.10
Types ¶
type ComponentConfig ¶
type ComponentConfig struct { Name string `json:"name"` ExecutablePath string `json:"executable_path"` IncludeEnv bool `json:"include_env"` IncludeCmdline bool `json:"include_cmdline"` IncludeCwd bool `json:"include_cwd"` IncludeOpenFileCount bool `json:"include_open_file_count"` IncludeMemInfo bool `json:"include_mem_info"` }
Click to show internal directories.
Click to hide internal directories.