Add cloud_pubsub input plugin (#5136)
This commit is contained in:
@@ -18,7 +18,9 @@ import (
|
||||
"time"
|
||||
"unicode"
|
||||
|
||||
"fmt"
|
||||
"github.com/alecthomas/units"
|
||||
"runtime"
|
||||
)
|
||||
|
||||
const alphanum string = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
|
||||
@@ -58,6 +60,11 @@ func Version() string {
|
||||
return version
|
||||
}
|
||||
|
||||
// ProductToken returns a tag for Telegraf that can be used in user agents.
|
||||
func ProductToken() string {
|
||||
return fmt.Sprintf("Telegraf/%s Go/%s", Version(), runtime.Version())
|
||||
}
|
||||
|
||||
// UnmarshalTOML parses the duration from the TOML config file
|
||||
func (d *Duration) UnmarshalTOML(b []byte) error {
|
||||
var err error
|
||||
|
||||
Reference in New Issue
Block a user