Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllMonitors ¶
func GetAllMonitors() []api.ServiceMonitor
GetAllMonitors gets all the registered monitor modules
func GetMonitor ¶
func GetMonitor(id string) (api.ServiceMonitor, bool)
GetMonitor gets the poller monitor implementation for a given ID
func RegisterMonitor ¶
func RegisterMonitor(monitor api.ServiceMonitor)
RegisterMonitor registers a new poller monitor implementation
func UnregisterMonitor ¶
func UnregisterMonitor(monitor api.ServiceMonitor)
UnregisterMonitor unregister an existing polller monitor implementation
Types ¶
type EmptyMonitor ¶
type EmptyMonitor struct { }
EmptyMonitor represents a Monitor implementation
func (*EmptyMonitor) GetID ¶
func (monitor *EmptyMonitor) GetID() string
GetID gets the monitor ID (simple class name from its Java counterpart)
func (*EmptyMonitor) Poll ¶
func (monitor *EmptyMonitor) Poll(request *api.PollerRequestDTO) *api.PollerResponseDTO
Poll execute the XXX monitor request and return the poller response
type HTTPMonitor ¶
HTTPMonitor represents a Monitor implementation
func (*HTTPMonitor) GetID ¶
func (monitor *HTTPMonitor) GetID() string
GetID gets the monitor ID (simple class name from its Java counterpart)
func (*HTTPMonitor) Poll ¶
func (monitor *HTTPMonitor) Poll(request *api.PollerRequestDTO) *api.PollerResponseDTO
Poll execute the HTTP monitor request and return the the poller response
type ICMPMonitor ¶
type ICMPMonitor struct { }
ICMPMonitor represents the ICMP Monitor implementation
func (*ICMPMonitor) GetID ¶
func (monitor *ICMPMonitor) GetID() string
GetID gets the monitor ID (simple class name from its Java counterpart)
func (*ICMPMonitor) Poll ¶
func (monitor *ICMPMonitor) Poll(request *api.PollerRequestDTO) *api.PollerResponseDTO
Poll execute the ICMP monitor request and return the the poller response
type JMXMonitor ¶
type JMXMonitor struct { }
JMXMonitor represents the JMX Monitor implementation
func (*JMXMonitor) GetID ¶
func (monitor *JMXMonitor) GetID() string
GetID gets the monitor ID (simple class name from its Java counterpart)
func (*JMXMonitor) Poll ¶
func (monitor *JMXMonitor) Poll(request *api.PollerRequestDTO) *api.PollerResponseDTO
Poll execute the JMX monitor request and return the the poller response. It only assumes the service is up for JMX-Minion; returns an error otherwise.
type SNMPMonitor ¶
type SNMPMonitor struct { }
SNMPMonitor represents a Monitor implementation
func (*SNMPMonitor) GetID ¶
func (monitor *SNMPMonitor) GetID() string
GetID gets the monitor ID (simple class name from its Java counterpart)
func (*SNMPMonitor) Poll ¶
func (monitor *SNMPMonitor) Poll(request *api.PollerRequestDTO) *api.PollerResponseDTO
Poll execute the SNMP monitor request and return the poller response
type TCPMonitor ¶
type TCPMonitor struct { }
TCPMonitor represents a Monitor implementation
func (*TCPMonitor) GetID ¶
func (monitor *TCPMonitor) GetID() string
GetID gets the monitor ID (simple class name from its Java counterpart)
func (*TCPMonitor) Poll ¶
func (monitor *TCPMonitor) Poll(request *api.PollerRequestDTO) *api.PollerResponseDTO
Poll execute the TCP monitor request and return the the poller response