collector

package
v3.15.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2018 License: Apache-2.0 Imports: 17 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// map - list
	ItemMap = nmap.NewSafeMap()
)

主动收集到的监控数据 的缓存

Functions

func AddItem

func AddItem(key string, val *DataItem)

func CollectDataOnce

func CollectDataOnce() int

func RemoveItem

func RemoveItem(key string)

func Start

func Start()

func StartCollectorCron

func StartCollectorCron()

Types

type DataItem

type DataItem struct {
	Ts      int64
	Value   float64
	FStatus string // OK|ERR
	FTs     int64
}

NoData Data Item Struct

func GetFirstItem

func GetFirstItem(key string) (*DataItem, bool)

Interfaces Of ItemMap

func NewDataItem

func NewDataItem(ts int64, val float64, fstatus string, fts int64) *DataItem

func (*DataItem) String

func (this *DataItem) String() string

Jump to

Keyboard shortcuts

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