notifier

package
v4.3.1008+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(config *Config, influxCfg *influxdb.Config)

func Run

func Run()

Types

type Config

type Config struct {
	Enabled  bool
	Keycode  *metrics.KeycodeConfig  `mapstructure:"keycode"`
	License  *metrics.LicenseConfig  `mapstructure:"license"`
	Metering *metrics.MeteringConfig `mapstructure:"metering"`
}

func NewDefaultConfig

func NewDefaultConfig() *Config

func (*Config) Validate

func (c *Config) Validate() error

type Registry

type Registry struct {
	// contains filtered or unexported fields
}
var (
	MetricsRegistry *Registry
)

func NewRegistry

func NewRegistry() *Registry

func (*Registry) Get

func (c *Registry) Get(name, alertType, category string) metrics.AlertInterface

func (*Registry) GetAll

func (c *Registry) GetAll() []metrics.AlertInterface

func (*Registry) Register

func (c *Registry) Register(metrics []metrics.AlertInterface)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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