model

package
v0.0.0-...-0137e5c Latest Latest
Warning

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

Go to latest
Published: May 10, 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 Metering

type Metering struct {
	Id           string    `json:"id"`
	Namespace    string    `json:"namespace"`
	Cpu          float64   `json:"cpu"`
	Memory       uint64    `json:"memory"`
	Storage      uint64    `json:"storage"`
	Gpu          float64   `json:"gpu"`
	PublicIp     uint64    `json:"publicIp"`
	PrivateIp    uint64    `json:"privateIp"`
	TrafficIn    uint64    `json:"trafficIn"`
	TrafficOut   uint64    `json:"trafficOut"`
	MeteringTime time.Time `json:"meteringTime"`
}

type Metric

type Metric struct {
	Metric map[string]string `json:"metric"`
	Value  []interface{}     `json:"value"`
}

type MetricDataList

type MetricDataList struct {
	ResultType string   `json:"resultType"`
	Result     []Metric `json:"result"`
}

type MetricResponse

type MetricResponse struct {
	Status string         `json:"status"`
	Data   MetricDataList `json:"data"`
}

Jump to

Keyboard shortcuts

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