metric

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

type Metric struct {
	Source          string
	MetricType      string
	ValueType       string
	Name            string
	Help            string
	TimestampFormat string
	RenderName      string
	Debounce        *time.Duration
	Map             map[string]string
	TimestampPath   *jsonpath.JSONPath
	ValuePath       *jsonpath.JSONPath
	SourcePath      *jsonpath.JSONPath
}

func (*Metric) ParseSource

func (m *Metric) ParseSource(src string) (string, error)

func (*Metric) ParseTimestamp

func (m *Metric) ParseTimestamp(src string) (time.Time, error)

func (*Metric) ParseValue

func (m *Metric) ParseValue(src string) (string, error)

Jump to

Keyboard shortcuts

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