util

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseMapStructure

func ParseMapStructure(properties map[string]interface{}, target interface{}) error

func StringSliceHookFunc

func StringSliceHookFunc(f reflect.Type, t reflect.Type, data interface{}) (interface{}, error)

Types

type PerfData

type PerfData struct {
	Unit  string  `json:"unit"`
	Label string  `json:"label"`
	Value float64 `json:"value"`
}

PerfData represents a single item of Nagios performance data

func ParsePerfData

func ParsePerfData(pd string) (perf []PerfData)

ParsePerfData parses Nagios format performance data from an output string https://stackoverflow.com/questions/46886118/what-is-the-nagios-performance-data-format

Jump to

Keyboard shortcuts

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