metric

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count(name string, tags map[string]string, value float64)

Count count 打点

func SetMetric

func SetMetric(injectMetric Metric)

func Summary

func Summary(name string, tags map[string]string, value float64)

Time Time 打点

func Time

func Time(name string, tags map[string]string, value float64)

Time Time 打点

Types

type Metric

type Metric interface {
	// Count count 打点
	Count(name string, tags map[string]string, value float64)

	// Time Time 打点
	Time(name string, tags map[string]string, value float64)

	// Time Time 打点
	Summary(name string, tags map[string]string, value float64)
}

Jump to

Keyboard shortcuts

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