Go format the modified source codes...
This commit is contained in:
parent
ffd221f58c
commit
2b47fec26b
|
@ -24,7 +24,7 @@ func (p *Parser) Parse(dataFormat string, out []byte, acc telegraf.Accumulator)
|
||||||
var metric telegraf.Metric
|
var metric telegraf.Metric
|
||||||
|
|
||||||
switch dataFormat {
|
switch dataFormat {
|
||||||
case "","json":
|
case "", "json":
|
||||||
var jsonOut interface{}
|
var jsonOut interface{}
|
||||||
err = json.Unmarshal(out, &jsonOut)
|
err = json.Unmarshal(out, &jsonOut)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
package exec
|
package exec
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
||||||
"github.com/influxdata/telegraf/internal/encoding/graphite"
|
"github.com/influxdata/telegraf/internal/encoding/graphite"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// DefaultSeparator is the default join character to use when joining multiple
|
// DefaultSeparator is the default join character to use when joining multiple
|
||||||
// measurment parts in a template.
|
// measurment parts in a template.
|
||||||
DefaultSeparator = "."
|
DefaultSeparator = "."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -36,4 +35,3 @@ func (c *Config) WithDefaults() *Config {
|
||||||
}
|
}
|
||||||
return &d
|
return &d
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue