models

package
v0.0.0-...-fd774e2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskInformation

type DiskInformation struct {
	TotalSize       float64 `json:"totalSize"`
	TotalUsed       float64 `json:"totalUsed"`
	TotalAvailable  float64 `json:"totalAvailable"`
	UsagePercentage float64 `json:"usagePercentage"`
}

type LoggedServerStatsResponse

type LoggedServerStatsResponse struct {
	Name    string    `json:"name"`
	Serial  int       `json:"serial"`
	VMStats []*VMStat `json:"stats"`
}

type ServerStatResponse

type ServerStatResponse struct {
	VMs []*VMInfo `json:"vms"`
}

type User

type User struct {
	AccesID  string `json:"accessID"`
	Password string `json:"password"`
}

type VMDto

type VMDto struct {
	Name   string `json:"name"`
	Serial int    `json:"serial"`
}

type VMInfo

type VMInfo struct {
	Name   string  `json:"name"`
	Serial int     `json:"serial"`
	VMStat *VMStat `json:"vmStat"`
}

type VMStat

type VMStat struct {
	Cpu          float64          `json:"cpu"`
	Memory       float64          `json:"memory"`
	Disk         *DiskInformation `json:"disk"`
	ResponseTime int64            `json:"responseTime"`
}

Jump to

Keyboard shortcuts

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