types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginMySQL         = "mysql"
	PluginRedis         = "redis"
	PluginMongoDB       = "mongodb"
	PluginPostgreSQL    = "postgresql"
	PluginElasticSearch = "elasticsearch"
	PluginKafka         = "kafka"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Samples

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

func NewSamples

func NewSamples() *Samples

func (*Samples) AddMetric

func (s *Samples) AddMetric(mesurement string, fields map[string]interface{}, tagss ...map[string]string)

func (*Samples) AddPromMetric

func (s *Samples) AddPromMetric(m prometheus.Metric) error

func (*Samples) Len

func (s *Samples) Len() int

func (*Samples) PopBackAll

func (s *Samples) PopBackAll() []metric.Metric

func (*Samples) PopBackN

func (s *Samples) PopBackN(n int) []metric.Metric

func (*Samples) PushFront

func (s *Samples) PushFront(m metric.Metric)

func (*Samples) PushFrontN

func (s *Samples) PushFrontN(ms []metric.Metric)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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