Documentation
¶
Index ¶
- Variables
- func Check(ctx context.Context, r Checker, objs []interface{}) error
- func ObjectPathClaimingDir(ctx context.Context, p string, objs []interface{}) string
- func Register(c Checker)
- func RunnerWithCustomCheckPaths(paths ...string) funcopt.O
- func RunnerWithObjects(objs ...interface{}) funcopt.O
- func UnRegisterAll()
- type Checker
- type Result
- type ResultSet
- type Runner
- type T
Constants ¶
This section is empty.
Variables ¶
View Source
var ExecCommand = exec.CommandContext
Functions ¶
func ObjectPathClaimingDir ¶
ObjectPathClaimingDir returns the first object using the directory
func RunnerWithCustomCheckPaths ¶
RunnerWithCustomCheckPaths adds paths where additional check driver are installed.
func RunnerWithObjects ¶
RunnerWithObjects sets the list of objects the checkers can use to correlate a check instance to an object.
Types ¶
type Result ¶
type Result struct {
DriverGroup string `json:"type"`
DriverName string `json:"driver"`
Path string `json:"path"`
Instance string `json:"instance"`
Unit string `json:"unit"`
Value int64 `json:"value"`
}
Result is the structure eventually collected for aggregation.
type ResultSet ¶
type ResultSet struct {
Data []Result
}
ResultSet holds the list of all evaluated check instances.
func (ResultSet) MarshalJSON ¶
MarshalJSON turns this ResultSet into a byte slice.
func (*ResultSet) UnmarshalJSON ¶
UnmarshalJSON parses a byte slice and loads this ResultSet.
Click to show internal directories.
Click to hide internal directories.