2015-05-22 23:45:14 +00:00
|
|
|
package telegraf
|
2015-04-06 16:32:10 +00:00
|
|
|
|
2016-01-27 21:21:36 +00:00
|
|
|
import "time"
|
2015-04-06 16:32:10 +00:00
|
|
|
|
2015-10-16 22:13:32 +00:00
|
|
|
type Accumulator interface {
|
2016-01-27 21:21:36 +00:00
|
|
|
// Create a point with a value, decorating it with tags
|
|
|
|
// NOTE: tags is expected to be owned by the caller, don't mutate
|
|
|
|
// it after passing to Add.
|
|
|
|
Add(measurement string,
|
|
|
|
value interface{},
|
|
|
|
tags map[string]string,
|
|
|
|
t ...time.Time)
|
|
|
|
|
|
|
|
AddFields(measurement string,
|
|
|
|
fields map[string]interface{},
|
|
|
|
tags map[string]string,
|
|
|
|
t ...time.Time)
|
2015-05-20 05:19:32 +00:00
|
|
|
|
2016-07-25 12:09:49 +00:00
|
|
|
AddError(err error)
|
|
|
|
|
2015-10-16 22:13:32 +00:00
|
|
|
Debug() bool
|
|
|
|
SetDebug(enabled bool)
|
2016-06-13 14:21:11 +00:00
|
|
|
|
|
|
|
SetPrecision(precision, interval time.Duration)
|
|
|
|
|
|
|
|
DisablePrecision()
|
2015-04-06 16:32:10 +00:00
|
|
|
}
|