metrics

package
v0.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	// GetValue queries the backend and returns the raw numerical value of the
	// requested metric (with the given configuration) for the given nodes
	// at this point in time.
	GetValue(metric string, configuration map[string]string, nodeSelector map[string]string) (float64, error)
}

A Backend is used to interface with a metrics backend.

type RegistryInterface

type RegistryInterface interface {
	Get(name string) (Backend, error)
	Delete(name string)
	Put(name string, backend Backend)
}

RegistryInterface is an interface to a Backend registry. See function comments for implementation limitations.

func Registry

func Registry() RegistryInterface

Registry provides an interface to the single Backend registry.

Directories

Path Synopsis
backends

Jump to

Keyboard shortcuts

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