collectdformat

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONWriteBody

type JSONWriteBody []*JSONWriteFormat

JSONWriteBody is the full POST body of collectd's write_http format

func (JSONWriteBody) MarshalEasyJSON

func (v JSONWriteBody) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (JSONWriteBody) MarshalJSON

func (v JSONWriteBody) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*JSONWriteBody) UnmarshalEasyJSON

func (v *JSONWriteBody) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*JSONWriteBody) UnmarshalJSON

func (v *JSONWriteBody) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type JSONWriteFormat

type JSONWriteFormat struct {
	Dsnames        []*string  `json:"dsnames"`
	Dstypes        []*string  `json:"dstypes"`
	Host           *string    `json:"host"`
	Interval       *float64   `json:"interval"`
	Plugin         *string    `json:"plugin"`
	PluginInstance *string    `json:"plugin_instance"`
	Time           *float64   `json:"time"`
	TypeS          *string    `json:"type"`
	TypeInstance   *string    `json:"type_instance"`
	Values         []*float64 `json:"values"`
	// events
	Message  *string                `json:"message"`
	Meta     map[string]interface{} `json:"meta"`
	Severity *string                `json:"severity"`
}

JSONWriteFormat is the format for collectd json datapoints

func (JSONWriteFormat) MarshalEasyJSON

func (v JSONWriteFormat) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (JSONWriteFormat) MarshalJSON

func (v JSONWriteFormat) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*JSONWriteFormat) UnmarshalEasyJSON

func (v *JSONWriteFormat) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*JSONWriteFormat) UnmarshalJSON

func (v *JSONWriteFormat) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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