model

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcessInfo

type ProcessInfo struct {
	ID        uint64    `gorm:"primary_key"`
	Timestamp time.Time `gorm:"index;not null"`
	AppName   string    `gorm:"index;not null"`
	Hostname  string    `gorm:"index;not null"`
	PID       int       `gorm:"not null"`

	MemAlloc      uint64 `gorm:"not null"`
	MemTotalAlloc uint64 `gorm:"not null"`
	MemSys        uint64 `gorm:"not null"`
	MemLookups    uint64 `gorm:"not null"`

	NumCPU       uint64  `gorm:"not null"`
	NumGoroutine uint64  `gorm:"not null"`
	NumCgoCall   uint64  `gorm:"not null"`
	CPUUsage     float64 `gorm:"not null"`
}

func (*ProcessInfo) Decode

func (p *ProcessInfo) Decode(data []byte) error

func (*ProcessInfo) Encode

func (p *ProcessInfo) Encode() ([]byte, error)

Jump to

Keyboard shortcuts

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