MetricMonitor

package
v0.0.0-...-d15be54 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricMonitor

type MetricMonitor interface {
	//上送监控指标
	ReportMetrics(ctx context.Context, ProjectName, ServiceName, ServiceHost string, LeaseID int64)
}

type MetricMonitorImpl

type MetricMonitorImpl struct {
	ServerAddr string
	ServerPort string
	// contains filtered or unexported fields
}

func NewMetricMonitor

func NewMetricMonitor(ServerPort string, ServerAddr string) *MetricMonitorImpl

暴露给外部用户使用,

func (*MetricMonitorImpl) Delay

func (m *MetricMonitorImpl) Delay() (int64, error)

func (*MetricMonitorImpl) ReportMetrics

func (m *MetricMonitorImpl) ReportMetrics(ctx context.Context, ProjectName, ServiceName, ServiceHost string, LeaseID int64)

Jump to

Keyboard shortcuts

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