2020-05-05 02:09:10 +08:00
|
|
|
package shim
|
|
|
|
|
|
|
|
|
|
import "github.com/influxdata/telegraf"
|
|
|
|
|
|
|
|
|
|
// inputShim implements the MetricMaker interface.
|
|
|
|
|
type inputShim struct {
|
|
|
|
|
Input telegraf.Input
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-24 17:03:42 +08:00
|
|
|
// LogName satisfies the MetricMaker interface
|
2024-12-14 01:26:34 +08:00
|
|
|
func (inputShim) LogName() string {
|
2020-05-05 02:09:10 +08:00
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-24 17:03:42 +08:00
|
|
|
// MakeMetric satisfies the MetricMaker interface
|
2024-12-14 01:26:34 +08:00
|
|
|
func (inputShim) MakeMetric(m telegraf.Metric) telegraf.Metric {
|
2020-05-05 02:09:10 +08:00
|
|
|
return m // don't need to do anything to it.
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-24 17:03:42 +08:00
|
|
|
// Log satisfies the MetricMaker interface
|
2024-12-14 01:26:34 +08:00
|
|
|
func (inputShim) Log() telegraf.Logger {
|
2020-05-05 02:09:10 +08:00
|
|
|
return nil
|
|
|
|
|
}
|