internal

package
v0.0.0-...-a12f99c Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

type Metric struct {
	// contains filtered or unexported fields
}

func GetSingleInst

func GetSingleInst() *Metric

GetSingleInst 获取单例

func (*Metric) Gauge

func (metric *Metric) Gauge(name string, count int, needFlush bool) error

Gauge 设置计数

func (*Metric) Histogram

func (metric *Metric) Histogram(name string, count int, needFlush bool) error

Histogram 直方图

func (*Metric) Increment

func (metric *Metric) Increment(name string, count int, rate float64, needFlush bool) error

Increment 计数增加

func (*Metric) Init

func (metric *Metric) Init(prefix string, addresses []string) error

Init 初始化

func (*Metric) ReCreate

func (metric *Metric) ReCreate(prefix string, addresses []string) error

ReCreate 初始化

func (*Metric) Stop

func (metric *Metric) Stop()

Stop 暂停

Jump to

Keyboard shortcuts

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