metrics

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: AGPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

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 Metric

type Metric struct {
	// contains filtered or unexported fields
}

type ModuleInstance added in v0.34.0

type ModuleInstance struct {
	// contains filtered or unexported fields
}

ModuleInstance represents an instance of the metrics module

func (*ModuleInstance) Exports added in v0.35.0

func (mi *ModuleInstance) Exports() modules.Exports

Exports returns the exports of the metrics module

func (*ModuleInstance) XCounter added in v0.34.0

func (mi *ModuleInstance) XCounter(call goja.ConstructorCall, rt *goja.Runtime) *goja.Object

XCounter is a counter constructor

func (*ModuleInstance) XGauge added in v0.34.0

func (mi *ModuleInstance) XGauge(call goja.ConstructorCall, rt *goja.Runtime) *goja.Object

XGauge is a gauge constructor

func (*ModuleInstance) XRate added in v0.34.0

func (mi *ModuleInstance) XRate(call goja.ConstructorCall, rt *goja.Runtime) *goja.Object

XRate is a rate constructor

func (*ModuleInstance) XTrend added in v0.34.0

func (mi *ModuleInstance) XTrend(call goja.ConstructorCall, rt *goja.Runtime) *goja.Object

XTrend is a trend constructor

type RootModule added in v0.34.0

type RootModule struct{}

RootModule is the root metrics module

func New added in v0.18.0

func New() *RootModule

New returns a new RootModule.

func (*RootModule) NewModuleInstance added in v0.34.0

func (*RootModule) NewModuleInstance(m modules.VU) modules.Instance

NewModuleInstance implements modules.Module interface

Jump to

Keyboard shortcuts

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