api

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

type Metric struct {
	Text    string        `xml:",chardata"`
	Type    MetricType    `xml:"type,attr"`
	Context MetricContext `xml:"context,attr"`
	Name    string        `xml:"name"`
	Value   string        `xml:"value"`
	Unit    string        `xml:"unit,attr,omitempty"`
}

type MetricContext

type MetricContext string
const (
	MetricContextHost MetricContext = "host"
	MetricContextVM   MetricContext = "vm"
)

type MetricType

type MetricType string
const (
	MetricTypeReal64 MetricType = "real64"
	MetricTypeReal32 MetricType = "real32"
	MetricTypeInt64  MetricType = "int64"
	MetricTypeInt32  MetricType = "int32"
	MetricTypeUInt64 MetricType = "uint64"
	MetricTypeUInt32 MetricType = "uint32"
	MetricTypeString MetricType = "string"
)

type Metrics

type Metrics struct {
	XMLName xml.Name `xml:"metrics"`
	Text    string   `xml:",chardata"`
	Metrics []Metric `xml:"metric"`
}

Jump to

Keyboard shortcuts

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