observer

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const ObserverDatadogName = "Datadog"
View Source
const ObserverRandomName = "Random"

Variables

This section is empty.

Functions

This section is empty.

Types

type Datadog

type Datadog struct {
	// contains filtered or unexported fields
}

func NewDatadog

func NewDatadog(options *DatadogOptions, observability *common.Observability) *Datadog

func (*Datadog) Name

func (d *Datadog) Name() string

func (*Datadog) Observe

func (d *Datadog) Observe(sr *common.SourceResult) (*common.ObserveResult, error)

type DatadogMetricData

type DatadogMetricData = []*DatadogMetricSummary

type DatadogMetricSummary

type DatadogMetricSummary struct {
	URI     string
	Country string
	Avg     float64
	Min     float64
	Max     float64
}

type DatadogOptions

type DatadogOptions struct {
	Site       string
	ApiKey     string
	AppKey     string
	TagUri     string
	TagCountry string
	Query      string
	File       string
	Min        float64
	Max        float64
	Duration   string
	Timeout    string
}

type Random

type Random struct {
	// contains filtered or unexported fields
}

func NewRandom

func NewRandom(options *RandomOptions, observability *common.Observability) *Random

func (*Random) Name

func (rd *Random) Name() string

func (*Random) Observe

func (rd *Random) Observe(sr *common.SourceResult) (*common.ObserveResult, error)

type RandomOptions

type RandomOptions struct {
	Min   float64
	Max   float64
	Delay int
}

Jump to

Keyboard shortcuts

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