indicator_status

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: Apache-2.0 Imports: 5 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 Undefined = "UNDEFINED"

Variables

This section is empty.

Functions

func Match

func Match(thresholds []v1.Threshold, values []float64) string

Match takes thresholds and values and determines what threshold has been breached. It returns nil if nothing was breached.

Types

type DocumentGetter

type DocumentGetter interface {
	IndicatorDocuments() ([]registry.APIDocumentResponse, error)
}

type PromQLClient

type PromQLClient interface {
	QueryVectorValues(promql string) ([]float64, error)
}

type StatusController

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

func NewStatusController

func NewStatusController(
	dg DocumentGetter,
	su StatusUpdater,
	pc PromQLClient,
	interval time.Duration,
) *StatusController

func (StatusController) Start

func (c StatusController) Start()

type StatusUpdater

type StatusUpdater interface {
	BulkStatusUpdate(statusUpdates []registry.ApiV1UpdateIndicatorStatus, documentId string) error
}

Jump to

Keyboard shortcuts

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