test

package
v0.0.0-...-39c03fc Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendFrame

func AppendFrame(snapshot *tp.Snapshot)

func ConvertToPublicType

func ConvertToPublicType(in *tp.Snapshot) (*deeptp.Snapshot, error)

func GenerateSnapshot

func GenerateSnapshot(index int, options *GenerateOptions) *tp.Snapshot

func GenerateTracePoint

func GenerateTracePoint(index int, watches []string, options *GenerateOptions) *tp.TracePointConfig

func GetCounterValue

func GetCounterValue(metric prometheus.Counter) (float64, error)

func GetCounterVecValue

func GetCounterVecValue(metric *prometheus.CounterVec, label string) (float64, error)

func GetGaugeValue

func GetGaugeValue(metric prometheus.Gauge) (float64, error)

func GetGaugeVecValue

func GetGaugeVecValue(metric *prometheus.GaugeVec, labels ...string) (float64, error)

func MakeSnapshotID

func MakeSnapshotID() []byte

func RandomString

func RandomString() string

func RandomStringLen

func RandomStringLen(length int) string

func ValidSnapshotID

func ValidSnapshotID(snapshotID []byte) []byte

Types

type GenerateOptions

type GenerateOptions struct {
	Id              []byte
	Attrs           map[string]interface{}
	Resource        map[string]interface{}
	AllResource     bool
	AllAttrs        bool
	AllVarTypes     bool
	AsyncFrame      bool
	TranspiledFrame bool
	ColumnFrame     bool
	NoVars          bool
	RandomStrings   bool
	ServiceName     string
	DurationNanos   uint64
	LogMsg          bool
	RandomDuration  bool
}

Jump to

Keyboard shortcuts

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