mpjson

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: Apache-2.0 Imports: 18 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do()

Do do doo

Types

type JSONPlugin

type JSONPlugin struct {
	Target             string
	Tempfile           string
	URL                string
	Prefix             string
	InsecureSkipVerify bool
	ShowOnlyNum        bool
	Stdin              bool
	Headers            httpHeaders
	ExcludeExp         *regexp.Regexp
	IncludeExp         *regexp.Regexp
	DiffExp            *regexp.Regexp
}

JSONPlugin plugin for JSON

func (JSONPlugin) FetchMetrics

func (p JSONPlugin) FetchMetrics() (map[string]float64, error)

FetchMetrics interface for mackerel-plugin

type Values added in v1.1.0

type Values struct {
	LastTimestamp int64              `json:"last_timestamp"`
	Metrics       map[string]float64 `json:"metrics"`
}

Values represents metric values

Jump to

Keyboard shortcuts

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