metrics

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultHistory

func DefaultHistory() (from, to time.Time, step time.Duration)

Types

type CPU

type CPU interface {
	CPUCurrent() (float64, error)
	CPUHistory(from, to time.Time, step time.Duration) (dataframe.Dataframe, error)
	CPUNodesHistory(from, to time.Time, step time.Duration) (map[string]dataframe.Dataframe, error)
}

type Memory

type Memory interface {
	MemoryCurrent() (float64, error)
	MemoryHistory(from, to time.Time, step time.Duration) (dataframe.Dataframe, error)
	MemoryNodesHistory(from, to time.Time, step time.Duration) (map[string]dataframe.Dataframe, error)
}

type Metrics

type Metrics interface {
	CPU
	Memory
	Storage
}

type Range

type Range struct {
	From time.Time
	To   time.Time
	Step time.Duration
}

type Storage

type Storage interface {
	StorageCurrent() (float64, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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