Documentation
¶
Overview ¶
Package agent contains a process-agent component
Package agent contains a process-agent component
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Once module variable, exported for testing Once sync.Once )
Functions ¶
Types ¶
type Component ¶
type Component interface {
// Enabled returns whether the process agent is enabled
Enabled() bool
}
Component is the process agent component type
type FlareHelper ¶
FlareHelper is a helper struct to fill the flare with check output.
func NewFlareHelper ¶
func NewFlareHelper(checks []checks.Check) *FlareHelper
NewNewFlareHelper creates a new FlareHelper to be provided by the process agent component.
func (*FlareHelper) FillFlare ¶
func (fh *FlareHelper) FillFlare(fb flaretypes.FlareBuilder) error
FillFlare is the callback function for the flare.
type StatusProvider ¶
type StatusProvider struct {
// contains filtered or unexported fields
}
StatusProvider is the type for process component status methods
func NewStatusProvider ¶
func NewStatusProvider(Config config.Component, hostname hostnameinterface.Component) *StatusProvider
NewStatusProvider fetches the status
func (StatusProvider) HTML ¶
func (s StatusProvider) HTML(_ bool, _ io.Writer) error
HTML renders the html output
Click to show internal directories.
Click to hide internal directories.