Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SummariseRequestErrors ¶
Types ¶
type Monitor ¶
func NewMonitor ¶
func (*Monitor) AddDevice ¶
AddDevice adds all objects of the given device to the monitor. This must be called before starting the monitor.
func (*Monitor) AddDeviceObject ¶
AddDeviceObject adds the given object to the monitor. This must be called before starting the monitor.
type Object ¶
type Object struct {
Name string `json:"name,omitempty"` // the name we associate problems with
Test string `json:"test,omitempty"` // problem name suffix
Level gen.StatusLog_Level `json:"level,omitempty"`
// these help us to determine the health of the object
EventState *config.ValueSource `json:"eventState,omitempty"`
Reliability *config.ValueSource `json:"reliability,omitempty"`
OutOfService *config.ValueSource `json:"outOfService,omitempty"`
// these help with improving the quality of the status reporting for the above
LowLimit *config.ValueSource `json:"lowLimit,omitempty"`
HighLimit *config.ValueSource `json:"highLimit,omitempty"`
// These allow an object to explicitly represent a fault via its PresentValue.
// If the value isn't equal to the nominalValue then we'll report a fault.
Value *config.ValueSource `json:"value,omitempty"`
NominalValue any `json:"nominalValue,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.