Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileToConfig ¶
func FileToConfig(configFile string) (*conf.ConfigFile, error)
Types ¶
type CheckResult ¶
type CheckResult struct { Name string // Name of check Message string // Message associated with check Tags string // Who/what should be alerted Value float64 // Value of the main metric being checked }
Results are returned in the following format
type Checker ¶
type Checker interface { // User must call NewScopeAndPackage before // inserting metric values NewScopeAndPackage() error // Metric values mey be inserted from a json package or the // metric context (if available) // User must insert metric values before running metric check InsertMetricValuesFromJSON() error // User must insert metric values before running metric check InsertMetricValuesFromContext(m *metrics.MetricContext) error // Runs metric check CheckAll() ([]CheckResult, error) }
Click to show internal directories.
Click to hide internal directories.