metric

package
v2.0.23 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

View Source
const (
	AppName = "metric"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type METRIC_PROVIDER added in v2.0.3

type METRIC_PROVIDER string
const (
	METRIC_PROVIDER_PROMETHEUS METRIC_PROVIDER = "prometheus"
)

type Metric

type Metric struct {
	Enable   bool            `json:"enable" yaml:"enable" toml:"enable" env:"METRIC_ENABLE"`
	Provider METRIC_PROVIDER `toml:"provider" json:"provider" yaml:"provider" env:"METRIC_PROVIDER"`
	Endpoint string          `toml:"endpoint" json:"endpoint" yaml:"endpoint" env:"METRIC_ENDPOINT"`
}

func NewDefaultMetric added in v2.0.3

func NewDefaultMetric() *Metric

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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