api

package
v0.0.0-...-9c342c4 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: Apache-2.0, Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Close_chan, Close_done_chan chan int

Functions

func GetLast

func GetLast(endpoint, counter string) *cmodel.RRDData

非法值: ts=0,value无意义

func GetLastRaw

func GetLastRaw(endpoint, counter string) *cmodel.RRDData

非法值: ts=0,value无意义

func HandleItems

func HandleItems(items []*cmodel.GraphItem) error

供外部调用、处理接收到的数据 的接口

func Start

func Start()

Types

type Graph

type Graph int

func (*Graph) Delete

func (this *Graph) Delete(params []*cmodel.GraphDeleteParam, resp *cmodel.GraphDeleteResp) error

从内存索引、MySQL中删除counter,并从磁盘上删除对应rrd文件

func (*Graph) GetRrd

func (this *Graph) GetRrd(key string, rrdfile *g.File) (err error)

func (*Graph) Info

func (this *Graph) Info(param cmodel.GraphInfoParam, resp *cmodel.GraphInfoResp) error

func (*Graph) Last

func (this *Graph) Last(param cmodel.GraphLastParam, resp *cmodel.GraphLastResp) error

func (*Graph) LastRaw

func (this *Graph) LastRaw(param cmodel.GraphLastParam, resp *cmodel.GraphLastResp) error

func (*Graph) Ping

func (this *Graph) Ping(req cmodel.NullRpcRequest, resp *cmodel.SimpleRpcResponse) error

func (*Graph) Query

func (this *Graph) Query(param cmodel.GraphQueryParam, resp *cmodel.GraphQueryResponse) error

func (*Graph) Send

func (this *Graph) Send(items []*cmodel.GraphItem, resp *cmodel.SimpleRpcResponse) error

Jump to

Keyboard shortcuts

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