Documentation ¶
Index ¶
- func MustRegister(fun function.Function)
- func NewAggregate(name string, aggregator func([]float64) float64) function.MetricFunction
- func NewFilterCount(name string, summary func([]float64) float64, ascending bool) function.MetricFunction
- func NewFilterThreshold(name string, summary func([]float64) float64, below bool) function.MetricFunction
- func NewOperator(op string, operator func(float64, float64) float64) function.Function
- type StandardRegistry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustRegister ¶
MustRegister adds a new metric function to the global function registry.
func NewAggregate ¶
func NewAggregate(name string, aggregator func([]float64) float64) function.MetricFunction
NewAggregate takes a named aggregating function `[float64] => float64` and makes it into a MetricFunction.
func NewFilterCount ¶
func NewFilterCount(name string, summary func([]float64) float64, ascending bool) function.MetricFunction
NewFilterCount creates a new instance of a filtering function with count limit.
func NewFilterThreshold ¶
func NewFilterThreshold(name string, summary func([]float64) float64, below bool) function.MetricFunction
NewFilterThreshold creates a new instance of a filtering function.
Types ¶
type StandardRegistry ¶
type StandardRegistry struct {
// contains filtered or unexported fields
}
StandardRegistry of a functions available in MQE.
func Default ¶
func Default() StandardRegistry
func (StandardRegistry) All ¶
func (r StandardRegistry) All() []string
func (StandardRegistry) GetFunction ¶
func (r StandardRegistry) GetFunction(name string) (function.Function, bool)
GetFunction returns a function associated with the given name, if it exists.
Click to show internal directories.
Click to hide internal directories.