Documentation ¶
Index ¶
- type Connection
- func (m *Connection) CheckHealth() error
- func (m *Connection) DeleteMonitor(name string) error
- func (m *Connection) MakeAlertingMonitor(name, warmup string) error
- func (m *Connection) MakeSimpleMonitor(name string, metric string) error
- func (m *Connection) MakeThresholdMonitor(name, metric, window, confidence, comparator, threshold, warmup string) error
- func (m *Connection) TryDeleteMonitor(name string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
Connection to console-api server
func NewConnection ¶
func NewConnection(url string) (*Connection, error)
func (*Connection) CheckHealth ¶
func (m *Connection) CheckHealth() error
func (*Connection) DeleteMonitor ¶
func (m *Connection) DeleteMonitor(name string) error
func (*Connection) MakeAlertingMonitor ¶
func (m *Connection) MakeAlertingMonitor(name, warmup string) error
MakeAlertingMonitor creates a monitor which is always alerting.
func (*Connection) MakeSimpleMonitor ¶
func (m *Connection) MakeSimpleMonitor(name string, metric string) error
MakeSimpleMonitor creates a simple threshold monitor.
func (*Connection) MakeThresholdMonitor ¶
func (m *Connection) MakeThresholdMonitor(name, metric, window, confidence, comparator, threshold, warmup string) error
MakeThresholdMonitor creates a new threshold monitor with given values. Confidence is a string because console-api accepts only certain values - 5e-324, 0.25, 0.5, 0.75, 0.95 and 1.
func (*Connection) TryDeleteMonitor ¶
func (m *Connection) TryDeleteMonitor(name string)
Click to show internal directories.
Click to hide internal directories.