model

package
v0.0.0-...-0308c90 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPU

type CPU struct {
	Count          int       `json:"count"`
	Load           []float64 `json:"load"`
	CollectionTime time.Time `json:"collection_time"`
}

func (*CPU) GetInfo

func (c *CPU) GetInfo()

func (*CPU) String

func (c *CPU) String() string

func (*CPU) Type

func (c *CPU) Type() string

type CollectedDataItem

type CollectedDataItem interface {
	Type() string
	GetInfo()
}

type Disk

type Disk struct {
	Total          uint64    `json:"total"`
	Free           uint64    `json:"free"`
	Used           uint64    `json:"used"`
	UsedPercent    float64   `json:"used_percent"`
	CollectionTime time.Time `json:"collection_time"`
}

func (*Disk) GetInfo

func (d *Disk) GetInfo()

func (*Disk) String

func (d *Disk) String() string

func (*Disk) Type

func (d *Disk) Type() string

type Mem

type Mem struct {
	Total          uint64    `json:"total"`
	Available      uint64    `json:"available"`
	Used           uint64    `json:"used"`
	UsedPercent    float64   `json:"used_percent"`
	Free           uint64    `json:"free"`
	CollectionTime time.Time `json:"collection_time"`
}

func (*Mem) GetInfo

func (m *Mem) GetInfo()

func (*Mem) String

func (m *Mem) String() string

func (*Mem) Type

func (m *Mem) Type() string

Jump to

Keyboard shortcuts

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