Update plugin registry from name -> measurement
This commit is contained in:
parent
4d5782df53
commit
c492f8e7eb
|
@ -3,16 +3,16 @@ package plugins
|
||||||
import "time"
|
import "time"
|
||||||
|
|
||||||
type Accumulator interface {
|
type Accumulator interface {
|
||||||
// Create a named point with a value, decorating it with named tags
|
// Create a point with a value, decorating it with tags
|
||||||
// NOTE: tags is expected to be owned by the caller, don't mutate
|
// NOTE: tags is expected to be owned by the caller, don't mutate
|
||||||
// it after passing to Add.
|
// it after passing to Add.
|
||||||
Add(name string, value interface{}, tags map[string]string)
|
Add(measurement string, value interface{}, tags map[string]string)
|
||||||
|
|
||||||
// Create a named point with a set of values, decorating it with named tags
|
// Create a point with a set of values, decorating it with tags
|
||||||
// NOTE: tags and values are expected to be owned by the caller, don't mutate
|
// NOTE: tags and values are expected to be owned by the caller, don't mutate
|
||||||
// them after passing to AddValuesWithTime.
|
// them after passing to AddValuesWithTime.
|
||||||
AddValuesWithTime(
|
AddValuesWithTime(
|
||||||
name string,
|
measurement string,
|
||||||
values map[string]interface{},
|
values map[string]interface{},
|
||||||
tags map[string]string,
|
tags map[string]string,
|
||||||
timestamp time.Time,
|
timestamp time.Time,
|
||||||
|
|
Loading…
Reference in New Issue