Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
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)
Click to show internal directories.
Click to hide internal directories.