twitter

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Twitter

type Twitter struct {
	Accounts          []int64         `toml:"accounts"`
	ConsumerKey       string          `toml:"consumer_key"`
	ConsumerSecret    string          `toml:"consumer_secret"`
	AccessToken       string          `toml:"access_token"`
	AccessTokenSecret string          `toml:"access_token_secret"`
	HTTPTimeout       config.Duration `toml:"http_timeout"`
	// contains filtered or unexported fields
}

Twitter - plugin main structure

func (*Twitter) Description

func (t *Twitter) Description() string

Description returns the plugin description.

func (*Twitter) Gather

func (t *Twitter) Gather(acc telegraf.Accumulator) error

Gather Twitter Metrics

func (*Twitter) SampleConfig

func (t *Twitter) SampleConfig() string

SampleConfig returns sample configuration for this plugin.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL