resource

package
v0.0.0-...-6ac6f58 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0, BSD-3-Clause, MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PlatformLinux   = "linux"
	PlatformWindows = "windows"
	PlatformMacOS   = "darwin"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppDetails

type AppDetails struct {
	ResourceID string `json:"resource_id"`
	BrokerID   string `json:"broker_id"`
	BrokerName string `json:"broker_name"`
	BrokerSold bool   `json:"broker_sold"`

	User       string    `json:"user"`
	Status     string    `json:"status"`
	Image      string    `json:"image"`
	CreateTime time.Time `json:"create_time"`

	RequestInstance  int    `json:"request_instance"`
	NotReadyInstance int    `json:"not_ready_instance"`
	Label            string `json:"label"`
}

AppDetails describe the application detail from both crm and drm

type Details

type Details struct {
	Rsc []*RscDetails `json:"rsc"`
	App []*AppDetails `json:"app"`
}

Details describe the details from both crm and drm

type RscDetails

type RscDetails struct {
	Labels string `json:"labels"`

	CPUTotal float64 `json:"cpu_total"`
	CPUUsed  float64 `json:"cpu_used"`
	MemTotal float64 `json:"mem_total"`
	MemUsed  float64 `json:"mem_used"`

	CPUPerInstance    float64 `json:"cpu_per_instance"`
	AvailableInstance int     `json:"available_instance"`
	ReportInstance    int     `json:"report_instance"`
	NotReadyInstance  int     `json:"not_ready_instance"`
}

RscDetails describe the resource detail from both crm and drm

Jump to

Keyboard shortcuts

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