test

package
v0.0.0-...-37acc3e Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAnalytics

func GenerateAnalytics() objects.Analytics

func GenerateBucket

func GenerateBucket(name string) objects.BucketInfo

func GenerateBucketInfo

func GenerateBucketInfo(name string) objects.BucketInfo

func GenerateBucketStatSamples

func GenerateBucketStatSamples() map[string]interface{}

func GenerateBucketStats

func GenerateBucketStats() objects.BucketStats

func GenerateEventing

func GenerateEventing() objects.Eventing

func GenerateFTS

func GenerateFTS() objects.FTS

func GenerateIndex

func GenerateIndex() objects.Index

func GenerateIndexerStats

func GenerateIndexerStats() map[string]map[string]interface{}

func GenerateNode

func GenerateNode() objects.Node

func GenerateNodes

func GenerateNodes(name string, nodes []objects.Node) objects.Nodes

func GenerateQuery

func GenerateQuery() objects.Query

func GenerateServers

func GenerateServers() objects.Servers

func GenerateTasks

func GenerateTasks() []objects.Task

func GetBucketIfPresent

func GetBucketIfPresent(m prometheus.Metric) (string, error)

func GetBucketStatsTestValue

func GetBucketStatsTestValue(key string, bucket string, stats map[string]objects.BucketStats) float64

func GetDescString

func GetDescString(namespace string, subsystem string, name string, help string, labels []string) string

func GetFQNameFromDesc

func GetFQNameFromDesc(desc *prometheus.Desc) string

func GetGaugeValue

func GetGaugeValue(m prometheus.Metric) (float64, error)

func GetKeyFromFQName

func GetKeyFromFQName(config *objects.CollectorConfig, fqName string) string

func GetKeyspaceLabelIfPresent

func GetKeyspaceLabelIfPresent(m prometheus.Metric) (string, error)

func GetMetricValue

func GetMetricValue(metric io_prometheus_client.Metric) float64

func GetName

func GetName(name string, nameOverride string) string

func GetNodeTestValue

func GetNodeTestValue(key string, name string, config objects.CollectorConfig, nodes objects.Nodes) float64

func GetRandomFloat64

func GetRandomFloat64(min float64, max float64) float64

func GetRandomFloatSlice

func GetRandomFloatSlice(min float64, max float64, n int) []float64

func GetRandomInt

func GetRandomInt(min int, max int) int

func GetRandomInt64

func GetRandomInt64(min int, max int) int64

func GetRandomIntAsFloat64

func GetRandomIntAsFloat64(min int, max int) float64

func GetTaskTestValue

func GetTaskTestValue(key string, name string, tasks []objects.Task) float64

func Last

func Last(stats []float64) float64

func Min

func Min(x, y float64) float64

Types

This section is empty.

Jump to

Keyboard shortcuts

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