monitors

package
v0.1.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

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

type HTTPMonitor struct {
	Name        string
	Scheme      string
	DefaultPort int
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL