statistic

package
v0.0.0-...-b524ce4 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectMetrics

func CollectMetrics(ctx context.Context, path, prefix string, labelNames, labelValues []string, cc *collector.CollectorContext)

CollectMetrics collects metrics by statics returned by a given url

Types

type Statistic

type Statistic struct {
	Name        string `xml:"name"`
	Description string `xml:"description"`
	Kind        string `xml:"kind"`
	Type        string `xml:"type"`
	Unit        string `xml:"unit"`
	Values      struct {
		Value struct {
			Datum float64 `xml:"datum"`
		} `xml:"value"`
	} `xml:"values"`
}

Statistic represents the statistic resource

type Statistics

type Statistics struct {
	Statistic []Statistic `xml:"statistic"`
}

Statistics is a collection of Statistics

Jump to

Keyboard shortcuts

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