Documentation ¶
Index ¶
- Variables
- type Metric
- type ModuleInstance
- func (mi *ModuleInstance) Exports() modules.Exports
- func (mi *ModuleInstance) XCounter(call goja.ConstructorCall, rt *goja.Runtime) *goja.Object
- func (mi *ModuleInstance) XGauge(call goja.ConstructorCall, rt *goja.Runtime) *goja.Object
- func (mi *ModuleInstance) XRate(call goja.ConstructorCall, rt *goja.Runtime) *goja.Object
- func (mi *ModuleInstance) XTrend(call goja.ConstructorCall, rt *goja.Runtime) *goja.Object
- type RootModule
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMetricsAddInInitContext = common.NewInitContextError("Adding to metrics in the init context is not supported")
ErrMetricsAddInInitContext is error returned when adding to metric is done in the init context
Functions ¶
This section is empty.
Types ¶
type ModuleInstance ¶
type ModuleInstance struct {
// contains filtered or unexported fields
}
ModuleInstance represents an instance of the metrics module
func (*ModuleInstance) Exports ¶
func (mi *ModuleInstance) Exports() modules.Exports
Exports returns the exports of the metrics module
func (*ModuleInstance) XCounter ¶
func (mi *ModuleInstance) XCounter(call goja.ConstructorCall, rt *goja.Runtime) *goja.Object
XCounter is a counter constructor
func (*ModuleInstance) XGauge ¶
func (mi *ModuleInstance) XGauge(call goja.ConstructorCall, rt *goja.Runtime) *goja.Object
XGauge is a gauge constructor
func (*ModuleInstance) XRate ¶
func (mi *ModuleInstance) XRate(call goja.ConstructorCall, rt *goja.Runtime) *goja.Object
XRate is a rate constructor
func (*ModuleInstance) XTrend ¶
func (mi *ModuleInstance) XTrend(call goja.ConstructorCall, rt *goja.Runtime) *goja.Object
XTrend is a trend constructor
type RootModule ¶
type RootModule struct{}
RootModule is the root metrics module
func (*RootModule) NewModuleInstance ¶
func (*RootModule) NewModuleInstance(m modules.VU) modules.Instance
NewModuleInstance implements modules.Module interface
Click to show internal directories.
Click to hide internal directories.