statreporter

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 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 is a proxy plugin for stat reporter

func (*Proxy) SetRealPlugin

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

SetRealPlugin 设置

type StatReporter

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

	// Info 返回当前插件的元数据信息
	Info() model.StatInfo
}

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

Jump to

Keyboard shortcuts

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