monitor

package
v1.2.17 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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