Versions in this module Expand all Collapse all v0 v0.6.0 Mar 27, 2023 Changes in this version + const ProbesDir + type Checker interface + Check func() []Reading + type Details interface + Text func() string + type GraphiteThreshold struct + func (gt *GraphiteThreshold) Check() []Reading + type GraphiteThresholdDBModel struct + AuditFunction string + CheckPeriodMilli int64 + Expression string + RecentTimeToIgnoreMilli int64 + ResourceID int64 + Thresholds GraphiteThresholdThresholdsDBModel + TimeToAuditMilli int64 + TriggerIf string + type GraphiteThresholdProbe struct + AuditFunction string + AuditPeriod int64 + AuditPeriodType string + CheckPeriod int64 + CheckPeriodType string + Expression string + IgnoredPeriod int64 + IgnoredPeriodType string + ResourceID db.ResourceID + Thresholds ThresholdsModel + TriggerIf string + URL string + func (g GraphiteThresholdProbe) HasResource(id db.ResourceID) bool + func (g GraphiteThresholdProbe) SerializeForDB() (string, error) + func (g GraphiteThresholdProbe) SerializeForFrontend() map[string]string + func (g GraphiteThresholdProbe) Type() VMType + func (g GraphiteThresholdProbe) Validate() (errs []string) + type GraphiteThresholdThresholdsDBModel struct + Critical *float64 + Error *float64 + Warning *float64 + type GraphiteThresholdType struct + func (GraphiteThresholdType) AcceptedResourceTypes() []db.ResourceType + func (GraphiteThresholdType) Id() db.ProbeType + func (GraphiteThresholdType) Name() string + func (GraphiteThresholdType) Templates() map[string]string + func (gt GraphiteThresholdType) Scripts() map[string][]string + type Polling struct + func NewPolling(period time.Duration, checker Checker, readingsSink chan<- []Reading) (*Polling, error) + func (p *Polling) Start() + func (p *Polling) Stop() + type Probe interface + Start func() + Stop func() + func New(tx *db.Tx, typeID db.ProbeType, config types.JSONText, ...) (Probe, error) + type Reading struct + Details Details + Recorded time.Time + State state.State + Subprobe string + type ThresholdsModel struct + Critical *float64 + Error *float64 + Warning *float64 + type VM interface + HasResource func(db.ResourceID) bool + SerializeForDB func() (string, error) + SerializeForFrontend func() map[string]string + Type func() VMType + Validate func() []string + func Blank(id db.ProbeType) (VM, error) + func Default() (VM, error) + func LoadFromDB(id db.ProbeType, probeJson string, tx *db.Tx) (VM, error) + func LoadFromParams(id db.ProbeType, probeParams string) (VM, error) + type VMType interface + AcceptedResourceTypes func() []db.ResourceType + Id func() db.ProbeType + Name func() string + Scripts func() map[string][]string + Templates func() map[string]string + func AllTypes() (pts []VMType) v0.6.0-alpha.0 Jun 18, 2021