globetest

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Output

type Output struct {
	output.SampleBuffer
	// contains filtered or unexported fields
}

func (*Output) Description

func (o *Output) Description() string

func (*Output) SetThresholds

func (o *Output) SetThresholds(thresholds map[string]workerMetrics.Thresholds)

SetThresholds receives the thresholds before the output is Start()-ed.

func (*Output) Start

func (o *Output) Start() error

func (*Output) Stop

func (o *Output) Stop() error

type SampleData

type SampleData struct {
	Time  time.Time                 `json:"time"`
	Value float64                   `json:"value"`
	Tags  *workerMetrics.SampleTags `json:"tags"`
}

type SampleEnvelope

type SampleEnvelope struct {
	Type   string                `json:"type"`
	Data   SampleData            `json:"data"`
	Metric *workerMetrics.Metric `json:"metric"`
}

Stores a metric and data point

Jump to

Keyboard shortcuts

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