serviceroute

package
v1.2.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ReportInterval *time.Duration `yaml:"reportInterval" json:"reportInterval"`
}

Config 插件配置

func (*Config) SetDefault

func (c *Config) SetDefault()

SetDefault 设置默认值

func (*Config) Verify

func (c *Config) Verify() error

Verify 校验配置

type Reporter

type Reporter struct {
	*basereporter.Reporter
	// contains filtered or unexported fields
}

Reporter .

func (*Reporter) Destroy

func (s *Reporter) Destroy() error

Destroy 销毁

func (*Reporter) Info

func (s *Reporter) Info() model.StatInfo

func (*Reporter) Init

func (s *Reporter) Init(ctx *plugin.InitContext) error

Init 初始化插件

func (*Reporter) IsEnable

func (s *Reporter) IsEnable(cfg sysconfig.Configuration) bool

IsEnable 是否启用

func (*Reporter) Name

func (s *Reporter) Name() string

Name 插件名,一个类型下插件名唯一

func (*Reporter) ReportStat

func (s *Reporter) ReportStat(t model.MetricType, info model.InstanceGauge) error

ReportStat 上报统计信息

func (*Reporter) Start

func (s *Reporter) Start() error

Start 启动上报协程

func (*Reporter) Type

func (s *Reporter) Type() common.Type

Type 插件类型

Jump to

Keyboard shortcuts

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