Documentation
¶
Overview ¶
Package shell is the shell probe package
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Shell ¶
type Shell struct {
base.DefaultProbe `yaml:",inline"`
Command string `yaml:"cmd" json:"cmd" jsonschema:"required,title=Command Line,description=Command Line"`
Args []string `yaml:"args,omitempty" json:"args,omitempty" jsonschema:"title=Command Line Arguments,description=Command Line Arguments"`
Env []string `` /* 150-byte string literal not displayed */
CleanEnv bool `` /* 174-byte string literal not displayed */
// Output Text Checker
probe.TextChecker `yaml:",inline"`
// contains filtered or unexported fields
}
Shell implements a config for shell command (os.Exec)
func (*Shell) Config ¶
func (s *Shell) Config(gConf global.ProbeSettings) error
Config Shell Config Object
func (*Shell) ExportMetrics ¶ added in v1.5.0
func (s *Shell) ExportMetrics()
ExportMetrics export shell metrics
Click to show internal directories.
Click to hide internal directories.