collectd

package
v0.0.0-...-f2dcf77 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenCPUMetric

func GenCPUMetric(interval int, host string, count int) (mesg []byte)

Types

type Collectd

type Collectd struct {
	Values         []float64    `json:"values"`
	Dstypes        []string     `json:"dstypes"`
	Dsnames        []string     `json:"dsnames,omitempty"`
	Time           cdtime.Time  `json:"time"`
	Interval       float64      `json:"interval"`
	Host           string       `json:"host"`
	Plugin         string       `json:"plugin"`
	PluginInstance string       `json:"plugin_instance,omitempty"`
	Type           string       `json:"type"`
	TypeInstance   string       `json:"type_instance,omitempty"`
	Meta           CollectdMeta `json:"meta,omitempty"`
}

Collectd ...

func (*Collectd) ParseInputByte

func (c *Collectd) ParseInputByte(jsonBlob []byte) (*[]Collectd, error)

ParseInputJSON ...

func (*Collectd) ParseInputString

func (c *Collectd) ParseInputString(jsonString string) (*[]Collectd, error)

type CollectdMeta

type CollectdMeta struct {
	X map[string]interface{} `json:"-"` // Rest of the fields should go here.
}

Jump to

Keyboard shortcuts

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