metrics

package
v0.0.0-...-260b785 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	IsDisabled bool
}

Config is the configuration required by the metrics module

type Module

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

Module struct for metrics

func New

func New(clusterID, nodeID string, isMetricDisabled bool, adminMan *admin.Manager, syncMan *syncman.Manager, isProd bool) (*Module, error)

New creates a new instance of the metrics module

func (*Module) AddDBOperation

func (m *Module) AddDBOperation(project, dbType, col string, count int64, op model.OperationType)

AddDBOperation adds a operation to the database

func (*Module) AddEventingType

func (m *Module) AddEventingType(project, eventingType string)

AddEventingType counts the number of time a particular event type is called

func (*Module) AddFileOperation

func (m *Module) AddFileOperation(project, storeType string, op model.OperationType)

AddFileOperation adds a operation to the database

func (*Module) AddFunctionOperation

func (m *Module) AddFunctionOperation(project, service, function string)

AddFunctionOperation counts the number of time a particular function gets invoked

func (*Module) LoadMetrics

func (m *Module) LoadMetrics() []interface{}

LoadMetrics loads the metrics NOTE: test not written for below function

func (*Module) SetMetricsConfig

func (c *Module) SetMetricsConfig(isEnabled bool)

SetMetricsConfig sets metric config

Jump to

Keyboard shortcuts

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