metrics

package
v0.0.0-...-a96ca0c Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(key string, value string, timestamp int64)

func Ttl

func Ttl(from int64, to int64)

Types

type Api

type Api struct {
	MaxDataPoints int
}

func (*Api) Call

func (api *Api) Call(name string, argv interface{}) interface{}

func (*Api) Value

func (api *Api) Value(name string, from int64, to int64) interface{}

type Metrics

type Metrics struct {
	Key        string
	Target     string
	Datapoints []Pt
}

func Get

func Get(key string, from int64, to int64, maxDataPoints int) (ms []*Metrics)

* Get queries for metrics which matches to the key pattern (e.g.: status.*) * * [ * {"target": "status.200", "datapoints": [[1720.0, 1370846820], ...], }, * {"target": "status.204", "datapoints": [[1.0, 1370846820], ..., ]} * ]

type Pt

type Pt [2]*float64

Jump to

Keyboard shortcuts

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