metrics

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	OkSuccess        = prom.Success
	ErrRead          = "err_read"
	ErrInvalidReq    = prom.ErrInvalidReq
	ErrVerify        = prom.ErrVerify
	ErrParse         = prom.ErrParse
	ErrValidate      = prom.ErrValidate
	ErrNotClassified = prom.ErrNotClassified
)

Result values

View Source
const (
	// Namespace is the metrics namespace for the SCIOND client API.
	Namespace = "lib_infra"
)

Variables

View Source
var (
	Dispatcher = newDispatcher()
	Adapter    = newAdapter()
)

Metric accessors.

Functions

This section is empty.

Types

type ResultLabels

type ResultLabels struct {
	Result string
}

ResultLabels contains the label for infra dispatcher reads.

func (ResultLabels) Labels

func (l ResultLabels) Labels() []string

Labels returns the list of labels.

func (ResultLabels) Values

func (l ResultLabels) Values() []string

Values returns the label values in the order defined by Labels.

Jump to

Keyboard shortcuts

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