Documentation
¶
Index ¶
- type Message
- type Payload
- type PubSubPush
- func (p *PubSubPush) AuthenticateIfSet(handler http.HandlerFunc, res http.ResponseWriter, req *http.Request)
- func (p *PubSubPush) Description() string
- func (p *PubSubPush) Gather(_ telegraf.Accumulator) error
- func (p *PubSubPush) SampleConfig() string
- func (p *PubSubPush) ServeHTTP(res http.ResponseWriter, req *http.Request)
- func (p *PubSubPush) SetParser(parser parsers.Parser)
- func (p *PubSubPush) Start(acc telegraf.Accumulator) error
- func (p *PubSubPush) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
Atts map[string]string `json:"attributes"`
Data string `json:"data"` // Data is base64 encoded data
}
Message defines the structure of a Google Pub/Sub message.
type Payload ¶
Payload is the received Google Pub/Sub data. (https://cloud.google.com/pubsub/docs/push)
type PubSubPush ¶
type PubSubPush struct {
ServiceAddress string
Token string
Path string
ReadTimeout internal.Duration
WriteTimeout internal.Duration
MaxBodySize internal.Size
AddMeta bool
Log telegraf.Logger
MaxUndeliveredMessages int `toml:"max_undelivered_messages"`
tlsint.ServerConfig
parsers.Parser
// contains filtered or unexported fields
}
func (*PubSubPush) AuthenticateIfSet ¶
func (p *PubSubPush) AuthenticateIfSet(handler http.HandlerFunc, res http.ResponseWriter, req *http.Request)
func (*PubSubPush) Description ¶
func (p *PubSubPush) Description() string
func (*PubSubPush) Gather ¶
func (p *PubSubPush) Gather(_ telegraf.Accumulator) error
func (*PubSubPush) SampleConfig ¶
func (p *PubSubPush) SampleConfig() string
func (*PubSubPush) ServeHTTP ¶
func (p *PubSubPush) ServeHTTP(res http.ResponseWriter, req *http.Request)
func (*PubSubPush) SetParser ¶
func (p *PubSubPush) SetParser(parser parsers.Parser)
func (*PubSubPush) Start ¶
func (p *PubSubPush) Start(acc telegraf.Accumulator) error
Start starts the http listener service.
Click to show internal directories.
Click to hide internal directories.