api

package
v0.0.0-...-929ffb9 Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APM

type APM interface {
	//ReportDiscoveryInfo send info to APM
	ReportDiscoveryInfo(info *apm.TDiscoveryInfo) error //one time per 5 min
	ReportKPI(message []*apm.TKpiMessage) error         //one time per 1 min, source service can be several, so it is a slice
	ReportTracing(span []*zipkincore.Span) error        //one time per 1 min
}

every API should be called after a certain interval

func GetAPMClient

func GetAPMClient(app, serviceName string) (APM, error)

type DefaultAPM

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

func (*DefaultAPM) ReportDiscoveryInfo

func (da *DefaultAPM) ReportDiscoveryInfo(info *apm.TDiscoveryInfo) error

func (*DefaultAPM) ReportKPI

func (da *DefaultAPM) ReportKPI(messages []*apm.TKpiMessage) error

func (*DefaultAPM) ReportTracing

func (da *DefaultAPM) ReportTracing(spans []*zipkincore.Span) error

Jump to

Keyboard shortcuts

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