models

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stats

type Stats struct {
	ID          string
	Image       string
	Name        string `json:"name,omitempty"`
	MemoryStats struct {
		MaxUsage int `json:"max_usage"`
		Usage    int `json:"usage"`
		Limit    int `json:"limit"`
	} `json:"memory_stats"`
	CpuStats struct {
		CpuUsage struct {
			TotalUsage int `json:"total_usage"`
		} `json:"cpu_usage"`
		SystemCpuUsage int64 `json:"system_cpu_usage"`
	} `json:"cpu_stats"`
}

func (*Stats) CalculateCPUUsage

func (s *Stats) CalculateCPUUsage() float64

func (*Stats) CalculateMemoryUsage

func (s *Stats) CalculateMemoryUsage() float64

Jump to

Keyboard shortcuts

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