outputmetrics

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InfluxDBExtra

type InfluxDBExtra struct {
	Database    string            `mapstructure:"database"`
	Measurement string            `mapstructure: "measurement"`
	Username    string            `mapstructure:"username"`
	Password    string            `mapstructure:"password"`
	Tags        map[string]string `mapstructure:"tags"`
}

type InfluxDBOutputMetrics

type InfluxDBOutputMetrics struct {
	Dst   string
	Extra InfluxDBExtra
}

func (*InfluxDBOutputMetrics) Flush

func (o *InfluxDBOutputMetrics) Flush()

func (*InfluxDBOutputMetrics) SetResult

func (o *InfluxDBOutputMetrics) SetResult(name string, value bool)

func (*InfluxDBOutputMetrics) SetTime

func (o *InfluxDBOutputMetrics) SetTime(name string, value int64)

type OutputMetrics

type OutputMetrics interface {
	SetResult(name string, value bool)
	SetTime(name string, value int64)
	Flush()
}

func NewOutputMetrics

func NewOutputMetrics(c *config.Config) (OutputMetrics, error)

Jump to

Keyboard shortcuts

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