param

package
v0.0.0-...-4f0bb4a Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2018 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Query

type Query struct {
	Stmt      string
	Precision string // h,m,s,ms,u,ns and ""
}

Query metrics query with params

func New

func New(cond *db.Condition) (*Query, error)

New get Query for metrics by input params

func NewWithPrecision

func NewWithPrecision(cond *db.Condition, precision string) (*Query, error)

NewWithPrecision get Query for metrics by input sql and precision

func (*Query) Query

func (m *Query) Query() (res []client.Result, err error)

Query query data from db for meter

Jump to

Keyboard shortcuts

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