Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Monitor ¶
type Monitor struct { // Id is an identifier of the monitor, unique for the service Id string // Name of the monitor Name string // Description of the monitor Description string // Check is the check performed by the monitor Check core.Check // Service is the service the check is performed on Service *Service // contains filtered or unexported fields }
Monitor is a service monitor
func (*Monitor) Watch ¶
func (monitor *Monitor) Watch(updates chan *MonitorStatus) error
Watch watches a monitor for changes which are published on the given channel
type MonitorStatus ¶
MonitorStatus is a status update from a monitor
type Service ¶
type Service struct { // Id is an identifier of the monitor, unique for all services Id string // Name of the monitor Name string // Description of the monitor Description string // Origin is the node from which this service is configured Origin string }
Service is a monitored service
Click to show internal directories.
Click to hide internal directories.