Discover Packages
github.com/bigstack-oss/cube-cos-api
internal
definition
v1
metric
package
Version:
v0.0.1-dev-f1460d1
Opens a new window with list of versions in this module.
Published: May 12, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
const (
Module = "metrics"
Summary = "summary"
)
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 struct {
Cpu Compute `json:"cpu"`
Memory Space `json:"memory"`
}
type History struct {
Unit string `json:"unit"`
History []TimeValue `json:"history"`
}
type HostUsage struct {
Cpu Compute `json:"cpu"`
Memory Space `json:"memory"`
}
type Rank struct {
Unit string `json:"unit"`
Rank []RankPoint `json:"rank"`
}
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 struct {
TotalMiB float64 `json:"totalMiB"`
UsedMiB float64 `json:"usedMiB"`
UsedPercent float64 `json:"usedPercent"`
FreeMiB float64 `json:"freeMiB"`
FreePercent float64 `json:"freePercent"`
}
type StorageTimeSeries struct {
Unit string `json:"unit"`
Read []TimeValue `json:"read"`
Write []TimeValue `json:"write"`
}
type TimeValue struct {
Time string `json:"time"`
Value any `json:"value"`
}
type Traffic struct {
Ingress float64 `json:"ingress"`
Egress float64 `json:"egress"`
}
type VmUsage struct {
Vcpu Compute `json:"vcpu"`
Memory Space `json:"memory"`
Storage Space `json:"storage"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.