util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FORCE_MATCH_TOKEN = "!"
)

Variables

View Source
var (
	DroppedAttrs = map[string]bool{
		"result_type":             true,
		"timestamp":               true,
		"sampled_packet_size":     true,
		"lat/long_dest":           true,
		"member_id":               true,
		"dst_eth_mac":             true,
		"src_eth_mac":             true,
		"Manufacturer":            true,
		"error_cause/trace_route": true,
		"hop_data":                true,
		"str01":                   true,
		"ult_exit_port":           true,
		"app_protocol":            true,
		"kt_functional_testing":   true,
		"client_nw_latency_ms":    true,
		"appl_latency_ms":         true,
		"server_nw_latency_ms":    true,
		"connection_id":           true,
		"service_name":            true,
	}
)

Functions

func DropOnFilter

func DropOnFilter(attr map[string]interface{}, lastMetadata *kt.LastMetadata, isIfMetric bool) bool

func GetSynMetricNameSet

func GetSynMetricNameSet(rt int32) map[string]kt.MetricInfo

func SetAttr

func SetAttr(attr map[string]interface{}, in *kt.JCHF, metrics map[string]kt.MetricInfo, lastMetadata *kt.LastMetadata)

func SetMetadata

func SetMetadata(in *kt.JCHF) *kt.LastMetadata

Types

This section is empty.

Jump to

Keyboard shortcuts

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