Documentation ¶
Index ¶
- func Fmap() htemplate.FuncMap
- func FormatDCAStatus(data []byte) (string, error)
- func FormatHPAStatus(data []byte) (string, error)
- func FormatMetadataMapCLI(data []byte) (string, error)
- func FormatSecurityAgentStatus(data []byte) (string, error)
- func FormatStatus(data []byte) (string, error)
- func GetAndFormatDCAStatus() ([]byte, error)
- func GetAndFormatSecurityAgentStatus(runtimeStatus map[string]interface{}) ([]byte, error)
- func GetAndFormatStatus() ([]byte, error)
- func GetCheckStatus(c check.Check, cs *check.Stats) ([]byte, error)
- func GetCheckStatusJSON(c check.Check, cs *check.Stats) ([]byte, error)
- func GetDCAStatus() (map[string]interface{}, error)
- func GetStatus() (map[string]interface{}, error)
- func GetSystemProbeStats(socketPath string) map[string]interface{}
- func SetJMXStartupError(s JMXStartupError)
- func SetJMXStatus(s JMXStatus)
- func Textfmap() ttemplate.FuncMap
- type CLCChecks
- type CLCStats
- type JMXStartupError
- type JMXStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatDCAStatus ¶
FormatDCAStatus takes a json bytestring and prints out the formatted statuspage
func FormatHPAStatus ¶
FormatHPAStatus takes a json bytestring and prints out the formatted statuspage
func FormatMetadataMapCLI ¶
FormatMetadataMapCLI builds the rendering in the metadataMapper template.
func FormatSecurityAgentStatus ¶
FormatSecurityAgentStatus takes a json bytestring and prints out the formatted status for security agent
func FormatStatus ¶
FormatStatus takes a json bytestring and prints out the formatted statuspage
func GetAndFormatDCAStatus ¶
GetAndFormatDCAStatus gets and formats the DCA status all in one go.
func GetAndFormatSecurityAgentStatus ¶
GetAndFormatSecurityAgentStatus gets and formats the security agent status
func GetAndFormatStatus ¶
GetAndFormatStatus gets and formats the status all in one go
func GetCheckStatus ¶
GetCheckStatus gets the status of a single check as human-readable text
func GetCheckStatusJSON ¶
GetCheckStatusJSON gets the status of a single check as JSON
func GetDCAStatus ¶
GetDCAStatus grabs the status from expvar and puts it into a map
func GetSystemProbeStats ¶
GetSystemProbeStats returns a notice that it is not supported on systems that do not at least build the process agent
func SetJMXStartupError ¶
func SetJMXStartupError(s JMXStartupError)
SetJMXStartupError sets the last JMX startup error
Types ¶
type CLCChecks ¶
CLCChecks is used to unmarshall the runner expvar payload for CLC Runner
func GetExpvarRunnerStats ¶
GetExpvarRunnerStats grabs the status of the runner from expvar and puts it into a CLCChecks struct
type CLCStats ¶
type CLCStats struct { AverageExecutionTime int `json:"AverageExecutionTime"` MetricSamples int `json:"MetricSamples"` LastExecFailed bool `json:"LastExecFailed"` }
CLCStats is used to unmarshall the stats needed from the runner expvar payload
func (*CLCStats) UnmarshalJSON ¶
UnmarshalJSON overwrites the unmarshall method for CLCStats
type JMXStartupError ¶
JMXStartupError holds startup status and errors
func GetJMXStartupError ¶
func GetJMXStartupError() JMXStartupError
GetJMXStartupError retrieves latest JMX startup error