collector

package
Version: v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

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