Documentation
¶
Index ¶
- Constants
- func NewCheck() checks.Check
- type Config
- type Latency
- func (l *Latency) GetConfig() checks.Runtime
- func (l *Latency) GetMetricCollectors() []prometheus.Collector
- func (l *Latency) Name() string
- func (l *Latency) RemoveLabelledMetrics(target string) error
- func (l *Latency) Run(ctx context.Context, cResult chan checks.ResultDTO) error
- func (l *Latency) Schema() (*openapi3.SchemaRef, error)
- func (l *Latency) Shutdown()
- func (l *Latency) UpdateConfig(cfg checks.Runtime) error
Constants ¶
View Source
const CheckName = "latency"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶ added in v0.3.1
type Config struct { Targets []string `json:"targets,omitempty" yaml:"targets,omitempty"` Interval time.Duration `json:"interval" yaml:"interval"` Timeout time.Duration `json:"timeout" yaml:"timeout"` Retry helper.RetryConfig `json:"retry" yaml:"retry"` }
Config defines the configuration parameters for a latency check
type Latency ¶
Latency is a check that measures the latency to an endpoint
func (*Latency) GetConfig ¶ added in v0.3.1
GetConfig returns the current configuration of the latency Check
func (*Latency) GetMetricCollectors ¶
func (l *Latency) GetMetricCollectors() []prometheus.Collector
GetMetricCollectors returns all metric collectors of check
func (*Latency) RemoveLabelledMetrics ¶ added in v0.5.0
RemoveLabelledMetrics removes the metrics which have the passed target as a label
Click to show internal directories.
Click to hide internal directories.