observer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2025 License: MIT Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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