metrics_collect

package
v1.300032.3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ObjectKey = "object"
View Source
const SectionKey = "metrics_collected"

Variables

View Source
var ChildRule = map[string]Rule{}
View Source
var MergeRuleMap = map[string]mergeJsonRule.MergeRule{}

Functions

func GetCurPath

func GetCurPath() string

func RegisterDarwinRule added in v1.247347.1

func RegisterDarwinRule(ruleName string, r Rule)

func RegisterLinuxRule

func RegisterLinuxRule(ruleName string, r Rule)

func RegisterWindowsRule

func RegisterWindowsRule(ruleName string, r Rule)

Types

type CollectMetrics

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

func (*CollectMetrics) ApplyRule

func (c *CollectMetrics) ApplyRule(input interface{}) (returnKey string, returnVal interface{})

func (*CollectMetrics) GetRegisteredMetrics added in v1.300025.0

func (c *CollectMetrics) GetRegisteredMetrics() map[string]bool

func (*CollectMetrics) Merge

func (c *CollectMetrics) Merge(source map[string]interface{}, result map[string]interface{})

type Rule

type Rule translator.Rule

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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