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
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 【扩展点接口】上报统计结果
Click to show internal directories.
Click to hide internal directories.