alias

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

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

Map from real metric name to display name and target

func New

func New() *Map

New returns new Map

func (*Map) DisplayNames

func (m *Map) DisplayNames() []string

DisplayNames returns DisplayName from all Values

func (*Map) Get

func (m *Map) Get(metric string) []Value

Get returns aliases for metric

func (*Map) Len

func (m *Map) Len() int

Len returns count of keys

func (*Map) Merge

func (m *Map) Merge(r finder.Result, useCache bool)

Merge data from finder.Result into aliases map

func (*Map) MergeTarget

func (m *Map) MergeTarget(r finder.Result, target string, saveCache bool) []byte

MergeTarget data from finder.Result into aliases map

func (*Map) Series

func (m *Map) Series(isReverse bool) []string

Series returns keys of aliases map

func (*Map) Size

func (m *Map) Size() int

Size returns count of values

type Value

type Value struct {
	Target      string
	DisplayName string
}

Value of Map

Jump to

Keyboard shortcuts

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