Documentation ¶
Index ¶
- type BadRequestCode
- type InfluxDBV2Listener
- func (h *InfluxDBV2Listener) Gather(_ telegraf.Accumulator) error
- func (h *InfluxDBV2Listener) Init() error
- func (*InfluxDBV2Listener) SampleConfig() string
- func (h *InfluxDBV2Listener) ServeHTTP(res http.ResponseWriter, req *http.Request)
- func (h *InfluxDBV2Listener) Start(acc telegraf.Accumulator) error
- func (h *InfluxDBV2Listener) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadRequestCode ¶
type BadRequestCode string
The BadRequestCode constants keep standard error messages see: https://v2.docs.influxdata.com/v2.0/api/#operation/PostWrite
type InfluxDBV2Listener ¶
type InfluxDBV2Listener struct { ServiceAddress string `toml:"service_address"` common_tls.ServerConfig MaxUndeliveredMetrics int `toml:"max_undelivered_metrics"` ReadTimeout config.Duration `toml:"read_timeout"` WriteTimeout config.Duration `toml:"write_timeout"` MaxBodySize config.Size `toml:"max_body_size"` Token config.Secret `toml:"token"` BucketTag string `toml:"bucket_tag"` ParserType string `toml:"parser_type"` Log telegraf.Logger `toml:"-"` // contains filtered or unexported fields }
func (*InfluxDBV2Listener) Gather ¶
func (h *InfluxDBV2Listener) Gather(_ telegraf.Accumulator) error
func (*InfluxDBV2Listener) Init ¶
func (h *InfluxDBV2Listener) Init() error
func (*InfluxDBV2Listener) SampleConfig ¶
func (*InfluxDBV2Listener) SampleConfig() string
func (*InfluxDBV2Listener) ServeHTTP ¶
func (h *InfluxDBV2Listener) ServeHTTP(res http.ResponseWriter, req *http.Request)
func (*InfluxDBV2Listener) Start ¶
func (h *InfluxDBV2Listener) Start(acc telegraf.Accumulator) error
func (*InfluxDBV2Listener) Stop ¶
func (h *InfluxDBV2Listener) Stop()
Click to show internal directories.
Click to hide internal directories.