tsdb

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Storage 引擎

Functions

func Close

func Close() error

Close 关闭

func Load

func Load(metric string, id int, start, end int64) ([]*tstorage.DataPoint, error)

Load 加载数据

func Open

func Open(opts *config.History) error

Open 打开

func Opened added in v1.0.1

func Opened() bool

func Query added in v1.0.1

func Query(metric string, key string, start, end, window int64) ([]model.DataPoint, error)

Query 加载数据(毫秒精度)

func Save

func Save(metric string, key string, point float64) error

Save 保存数据

func Write added in v1.0.1

func Write(metric string, values map[string]interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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