statreporter

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

type Proxy struct {
	StatReporter
	// contains filtered or unexported fields
}

proxy of StatReporter

func (*Proxy) SetRealPlugin

func (p *Proxy) SetRealPlugin(plug plugin.Plugin, engine model.Engine)

设置

type StatReporter

type StatReporter interface {
	plugin.Plugin
	//上报回调健康检查结果
	//model.MetricType, 统计信息的类型,
	//目前有SDKAPIStat和ServiceStat两种,分别对应sdk内部方法统计和外部服务调用统计
	//model.InstanceGauge,具体的一次统计数据
	ReportStat(model.MetricType, model.InstanceGauge) error
}

StatReporter 【扩展点接口】上报统计结果

Jump to

Keyboard shortcuts

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