tests

package
v1.11.8-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMetricValue added in v1.11.9

func GetMetricValue(metrics NodeMetrics, name string, labels prometheus.Labels) (float64, bool)

GetMetricValue returns the value of the specified metric which has the required labels.

If multiple metrics match the provided labels, the first metric found is returned.

Only Counter and Gauge metrics are supported.

func Outf

func Outf(format string, args ...interface{})

Outputs to stdout.

Examples:

  • Out("{{green}}{{bold}}hi there %q{{/}}", "aa")
  • Out("{{magenta}}{{bold}}hi therea{{/}} {{cyan}}{{underline}}b{{/}}")

See https://github.com/onsi/ginkgo/blob/v2.0.0/formatter/formatter.go#L52-L73 for an exhaustive list of color options.

Types

type NodeMetrics added in v1.10.9

type NodeMetrics map[string]*dto.MetricFamily

"metric name" -> "metric value"

func GetNodeMetrics added in v1.10.9

func GetNodeMetrics(ctx context.Context, nodeURI string) (NodeMetrics, error)

GetNodeMetrics retrieves the specified metrics the provided node URI.

type NodesMetrics added in v1.10.9

type NodesMetrics map[string]NodeMetrics

URI -> "metric name" -> "metric value"

func GetNodesMetrics added in v1.10.9

func GetNodesMetrics(ctx context.Context, nodeURIs []string) (NodesMetrics, error)

GetNodesMetrics retrieves the specified metrics for the provided node URIs.

Directories

Path Synopsis
e2e
banff
Implements tests for the banff network upgrade.
Implements tests for the banff network upgrade.
c
AUTOMATICALLY GENERATED.
AUTOMATICALLY GENERATED.
p
vms
x
x/transfer
Implements X-chain transfer tests.
Implements X-chain transfer tests.
e2e

Jump to

Keyboard shortcuts

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