metric

package
v0.0.1-dev-f1460d1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Module  = "metrics"
	Summary = "summary"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Compute

type Compute struct {
	TotalCores  float64 `json:"totalCores"`
	UsedCores   float64 `json:"usedCores"`
	UsedPercent float64 `json:"usedPercent"`
	FreeCores   float64 `json:"freeCores"`
	FreePercent float64 `json:"freePercent"`
}

type DataCenterUsage

type DataCenterUsage struct {
	Cpu    Compute `json:"cpu"`
	Memory Space   `json:"memory"`
}

type History

type History struct {
	Unit    string      `json:"unit"`
	History []TimeValue `json:"history"`
}

type HostUsage

type HostUsage struct {
	Cpu    Compute `json:"cpu"`
	Memory Space   `json:"memory"`
}

type Rank

type Rank struct {
	Unit string      `json:"unit"`
	Rank []RankPoint `json:"rank"`
}

type RankPoint

type RankPoint struct {
	Id      string      `json:"id"`
	Name    string      `json:"name"`
	Device  string      `json:"device,omitempty"`
	Value   any         `json:"value"`
	History []TimeValue `json:"history"`
}

type Space

type Space struct {
	TotalMiB    float64 `json:"totalMiB"`
	UsedMiB     float64 `json:"usedMiB"`
	UsedPercent float64 `json:"usedPercent"`
	FreeMiB     float64 `json:"freeMiB"`
	FreePercent float64 `json:"freePercent"`
}

type StorageTimeSeries

type StorageTimeSeries struct {
	Unit  string      `json:"unit"`
	Read  []TimeValue `json:"read"`
	Write []TimeValue `json:"write"`
}

type TimeValue

type TimeValue struct {
	Time  string `json:"time"`
	Value any    `json:"value"`
}

type Traffic

type Traffic struct {
	Ingress float64 `json:"ingress"`
	Egress  float64 `json:"egress"`
}

type VmUsage

type VmUsage struct {
	Vcpu    Compute `json:"vcpu"`
	Memory  Space   `json:"memory"`
	Storage Space   `json:"storage"`
}

Jump to

Keyboard shortcuts

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