metric

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName = "metric"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type METRIC_PROVIDER

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

func NewDefaultMetric() *Metric

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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