monitoring

package
v0.1.1-0...-987e9a9 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientsHealthResponse

type ClientsHealthResponse struct {
	ClientFailures *Counters `json:"consecutiveFailures,omitempty"`
	ClientOk       *Counters `json:"successTotal,omitempty"`
}

type Counters

type Counters struct {
	CustomMetrics   map[string]int `json:"customMetrics,omitempty"`
	ExternalMetrics map[string]int `json:"externalMetrics,omitempty"`
}

func NewCounters

func NewCounters() *Counters

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(metricServers []config.MetricServer, port int, failureThreshold int) *Server

func (*Server) OnError

func (m *Server) OnError(c client.Interface, metricType config.MetricType, err error)

func (*Server) Start

func (m *Server) Start()

func (*Server) UpdateCustomMetrics

func (m *Server) UpdateCustomMetrics(c client.Interface, cms map[provider.CustomMetricInfo]struct{})

func (*Server) UpdateExternalMetrics

func (m *Server) UpdateExternalMetrics(c client.Interface, ems map[provider.ExternalMetricInfo]struct{})

Jump to

Keyboard shortcuts

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