influxdbv1

package module
v2.0.0-...-8b94259 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultInfluxDatabase influxdb database name
	DefaultInfluxDatabase = "ultron"
	// DefaultMeasurementResult the measurement to store successful request
	DefaultMeasurementResult = "result"
	// DefaultMeasurementReport the measurement to store report
	DefaultMeasurementReport = "report"
)

Variables

This section is empty.

Functions

func WithBufferSize

func WithBufferSize(size uint32) influxDBV1HandlerOption

func WithDatabase

func WithDatabase(db string) influxDBV1HandlerOption

func WithHTTPClient

func WithHTTPClient(url, username, password string) influxDBV1HandlerOption

func WithMeasurementReport

func WithMeasurementReport(n string) influxDBV1HandlerOption

func WithMeasurementResult

func WithMeasurementResult(n string) influxDBV1HandlerOption

func WithUDPClient

func WithUDPClient(url string, size int) influxDBV1HandlerOption

Types

type InfluxDBV1Handler

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

func NewInfluxDBV1Handler

func NewInfluxDBV1Handler() *InfluxDBV1Handler

NewInfluxDBV1Handler 实例化NewInfluxDBHelper对象

func (*InfluxDBV1Handler) Apply

func (hdl *InfluxDBV1Handler) Apply(opts ...influxDBV1HandlerOption)

func (*InfluxDBV1Handler) HandleReport

func (hdl *InfluxDBV1Handler) HandleReport() ultron.ReportHandleFunc

func (*InfluxDBV1Handler) HandleResult

func (hdl *InfluxDBV1Handler) HandleResult(samplingRate float64) ultron.ResultHandleFunc

HandleResult samplingRate表示采样率

Jump to

Keyboard shortcuts

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