21 lines
380 B
Go
21 lines
380 B
Go
|
package shim
|
||
|
|
||
|
import "github.com/influxdata/telegraf"
|
||
|
|
||
|
// inputShim implements the MetricMaker interface.
|
||
|
type inputShim struct {
|
||
|
Input telegraf.Input
|
||
|
}
|
||
|
|
||
|
func (i inputShim) LogName() string {
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (i inputShim) MakeMetric(m telegraf.Metric) telegraf.Metric {
|
||
|
return m // don't need to do anything to it.
|
||
|
}
|
||
|
|
||
|
func (i inputShim) Log() telegraf.Logger {
|
||
|
return nil
|
||
|
}
|