freepsflux

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = FreepsFluxConfig{[]InfluxdbConfig{}, false}

Functions

This section is empty.

Types

type FreepsFlux

type FreepsFlux struct {
	Verbose bool
	// contains filtered or unexported fields
}

func NewFreepsFlux

func NewFreepsFlux(conf *FreepsFluxConfig, f *freepslib.Freeps) (*FreepsFlux, error)

func (*FreepsFlux) DeviceListToLineProtocol

func (ff *FreepsFlux) DeviceListToLineProtocol(devl *freepslib.AvmDeviceList, mTime time.Time) (string, error)

func (*FreepsFlux) DeviceListToPoints

func (ff *FreepsFlux) DeviceListToPoints(devl *freepslib.AvmDeviceList, mTime time.Time, f func(*write.Point)) error

func (*FreepsFlux) InitInflux

func (ff *FreepsFlux) InitInflux(reinit bool) error

func (*FreepsFlux) MetricsToLineProtocol

func (ff *FreepsFlux) MetricsToLineProtocol(met *freepslib.FritzBoxMetrics, mTime time.Time) (string, error)

func (*FreepsFlux) MetricsToPoints

func (ff *FreepsFlux) MetricsToPoints(met *freepslib.FritzBoxMetrics, mTime time.Time, f func(*write.Point))

func (*FreepsFlux) NetDeviceListToLineProtocol

func (ff *FreepsFlux) NetDeviceListToLineProtocol(resp *freepslib.AvmDataResponse, mTime time.Time) (string, error)

func (*FreepsFlux) NetDeviceListToPoints

func (ff *FreepsFlux) NetDeviceListToPoints(resp *freepslib.AvmDataResponse, mTime time.Time, f func(*write.Point)) error

func (*FreepsFlux) Push

func (ff *FreepsFlux) Push() error

func (*FreepsFlux) PushFields

func (ff *FreepsFlux) PushFields(measurement string, tags map[string]string, fields map[string]interface{}) error

func (*FreepsFlux) PushFreepsDeviceList added in v1.0.0

func (ff *FreepsFlux) PushFreepsDeviceList(devl *freepslib.AvmDeviceList) (error, string)

func (*FreepsFlux) PushFreepsMetrics added in v1.0.0

func (ff *FreepsFlux) PushFreepsMetrics(met *freepslib.FritzBoxMetrics) (error, string)

func (*FreepsFlux) PushFreepsNetDeviceList added in v1.0.0

func (ff *FreepsFlux) PushFreepsNetDeviceList(devl *freepslib.AvmDataResponse) (error, string)

type FreepsFluxConfig

type FreepsFluxConfig struct {
	InfluxdbConnections []InfluxdbConfig
	IgnoreNotPresent    bool
}

type InfluxdbConfig

type InfluxdbConfig struct {
	URL    string
	Token  string
	Org    string
	Bucket string
}

Jump to

Keyboard shortcuts

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