providers

package
v0.0.0-...-a950f81 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2018 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertProvider

type AlertProvider interface {
	Check(string) bool
	Value() string
	Message() string
	Name() string
}

func NewAlertProviderCPU

func NewAlertProviderCPU(total int, avg float64) AlertProvider

type CPU

type CPU struct {
	Values []float64
	Avg    float64
	Total  int
	// contains filtered or unexported fields
}

func (*CPU) Check

func (a *CPU) Check(resp string) bool

func (CPU) CountValues

func (a CPU) CountValues() int

func (CPU) GetAvg

func (a CPU) GetAvg() float64

func (CPU) GetTotal

func (a CPU) GetTotal() int

func (CPU) GetValues

func (a CPU) GetValues() []float64

func (CPU) Message

func (a CPU) Message() string

func (CPU) Name

func (a CPU) Name() string

func (CPU) Value

func (a CPU) Value() string

type CPUUsage

type CPUUsage struct {
	Error   string  `json:"error"`
	Procent float64 `json:"procent"`
}

CPUUsage innehåller information om CPU användningen

Jump to

Keyboard shortcuts

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