Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PoolPutPluginMethodGauge ¶
func PoolPutPluginMethodGauge(g *PluginMethodGauge)
将PluginMethodGauge放回pluginStatPool中
Types ¶
type PluginAPI ¶
type PluginAPI int
const ( MethodReportAlarm PluginAPI = iota MethodStat MethodCircuitBreak MethodChooseInstance MethodGetServices MethodGetInstances MethodLoadInstances MethodUpdateInstances MethodPersistMessage MethodLoadPersistedMessage MethodGetServiceRouteRule MethodLoadServiceRouteRule MethodLoadMeshConfig MethodGetServiceRateLimitRule MethodLoadServiceRateLimitRule MethodDetectInstance MethodInitQuota MethodRegisterServiceHandler MethodDeRegisterServiceHandler MethodRegisterInstance MethodDeregisterInstance MethodHeartbeat MethodReportClient MethodUpdateServers MethodGetRateLimitConnector MethodEnable MethodGetFilteredInstances MethodReportStat MethodRealTimeAdjustDynamicWeight MethodTimingAdjustDynamicWeight MethodWatchService )
type PluginAPIDelayRange ¶
type PluginAPIDelayRange int
const ( PluginApiDelayBelow10 PluginAPIDelayRange = iota PluginApiDelayBelow20 PluginApiDelayBelow30 PluginApiDelayBelow40 PluginApiDelayBelow50 PluginApiDelayOver50 PluginApiDelayMax )
API延时范围常量
func GetPluginAPIDelayRange ¶
func GetPluginAPIDelayRange(delay time.Duration) PluginAPIDelayRange
将插件接口调用延时转化为PluginAPIDelayRange
type PluginMethodGauge ¶
type PluginMethodGauge struct { model.EmptyInstanceGauge PluginType common.Type PluginId int32 PluginMethod PluginAPI RetCode model.ErrCode Success bool DelayRange PluginAPIDelayRange }
插件接口统计数据
Click to show internal directories.
Click to hide internal directories.