series

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinomialSuccessFailureSeriesConfig

type BinomialSuccessFailureSeriesConfig struct {
	// Throughput is the throughput of the counter.
	Throughput int `yaml:"throughput"`
	// BaseErrorRate is the error rate in the period.
	BaseErrorRate float64 `yaml:"baseErrorRate"`
}

type ConstantSuccessFailureSeriesConfig

type ConstantSuccessFailureSeriesConfig struct {
	// Throughput is the throughput of the success counter.
	ThroughputSuccess int `yaml:"throughputSuccess"`
	// Throughput is the throughput of the failure counter.
	ThroughputFailure int `yaml:"throughputFailure"`
	// Overrides are overriding configurations.
	Overrides []ConstantSuccessFailureSeriesOverridesConfig `yaml:"overrides"`
}

type ConstantSuccessFailureSeriesOverridesConfig

type ConstantSuccessFailureSeriesOverridesConfig struct {
	Start             time.Time `yaml:"start"`
	End               time.Time `yaml:"end"`
	ThroughputSuccess int       `yaml:"throughputSuccess"`
	ThroughputFailure int       `yaml:"throughputFailure"`
}

type MetricFamilyConfig

type MetricFamilyConfig struct {
	// Name is the name of the metric family.
	Name string `yaml:"name"`
	// Help is the help (description) of the metric family.
	Help string `yaml:"help"`
	// Series is a list of series configurations.
	Series []SeriesConfig `yaml:"series"`
}

type SeriesConfig

type SeriesConfig struct {
	// SuccessFailure is the configuration for SuccessFailure series.
	SuccessFailure *SuccessFailureSeriesConfig `yaml:"successFailure"`
	// Labels is a set of labels in addition to the above labels.
	Labels map[string]string `yaml:"labels"`
}

type SeriesConfigParser

type SeriesConfigParser struct {
	Start    time.Time
	End      time.Time
	Interval time.Duration
}

func (*SeriesConfigParser) Parse

type SeriesSetConfig

type SeriesSetConfig struct {
	Start          time.Time            `yaml:"start"`
	End            time.Time            `yaml:"end"`
	Interval       time.Duration        `yaml:"interval"`
	MetricFamilies []MetricFamilyConfig `yaml:"metricFamilies"`
}

type SuccessFailureSeriesConfig

type SuccessFailureSeriesConfig struct {
	// Constant is the configuration for ConstantSuccessFailureSeries.
	Constant *ConstantSuccessFailureSeriesConfig `yaml:"constant"`
	// Binomial is the configuration for BinomialSuccessFailureSeries.
	Binomial *BinomialSuccessFailureSeriesConfig `yaml:"binomial"`
	// LabelNameStatus is the name of the label describing success or failure status.
	LabelNameStatus string `yaml:"labelNameStatus"`
	// LabelValueSuccess is the value of the label represending success.
	LabelValueSuccess string `yaml:"labelValueSuccess"`
	// LabelValueFailure is the value of the label represending failure.
	LabelValueFailure string `yaml:"labelValueFailure"`
}

Jump to

Keyboard shortcuts

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