filter

package
v0.0.0-...-0b4f249 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count() int

Count returs the amount of filters

func Init

func Init(file string) error

Init reads the config file and (TODO!) registers a hook to reread it when it changes

func MatchesFilter

func MatchesFilter(metric model.Metric, logger log.Logger) (bool, error)

MatchesFilter checks if the metric matches the filters given in file

Types

type Definition

type Definition struct {
	Label  string
	Filter string
	Value  string
}

Definition for our parsed config file entries

Jump to

Keyboard shortcuts

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