Documentation ¶
Index ¶
- Constants
- Variables
- func AddValue(aggr AggregateMethod, name string, value int)
- func Flush()
- func HandleRequest(path string)
- func Inc(name string)
- func MoveData(from, to string, aggr AggregateMethod) error
- func Process()
- func ReadNames() ([]string, error)
- type AggregateMethod
- type Counter
- type LabeledCounter
Constants ¶
View Source
const ( Daily = "daily" Weekly = "weekly" Monthly = "monthly" Yearly = "yearly" )
View Source
const ( Sum = AggregateMethod(iota) Min Max Average )
Variables ¶
View Source
var ( DataPath = "/tmp/bi.bolt" FlushPeriod = time.Minute )
Functions ¶
func AddValue ¶
func AddValue(aggr AggregateMethod, name string, value int)
func HandleRequest ¶
func HandleRequest(path string)
func MoveData ¶
func MoveData(from, to string, aggr AggregateMethod) error
Types ¶
type AggregateMethod ¶
type AggregateMethod int
func (AggregateMethod) String ¶
func (a AggregateMethod) String() string
type LabeledCounter ¶
func ReadDataOfName ¶
func ReadDataOfName(tp, name string) ([]LabeledCounter, error)
Click to show internal directories.
Click to hide internal directories.