sql

package
v0.0.0-...-7bee881 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClickHouse

type ClickHouse struct {
	DataSourceName        string             `toml:"data_source_name"`
	InitSQL               string             `toml:"init_sql"`
	TimestampColumn       string             `toml:"timestamp_column"`
	TTL                   string             `toml:"ttl"`
	TableMode             string             `toml:"table_mode"`
	SingleTableOptions    SingleTableOptions `toml:"single_table"`
	MultiTableOptions     MultiTableOptions  `toml:"multi_table"`
	QueueInitialSize      int                `toml:"queue_initial_size"`
	QueueMaxSize          int                `toml:"queue_max_size"`
	QueueFlushSize        int                `toml:"queue_flush_size"`
	QueueFlushInterval    time.Duration      `toml:"queue_flush_interval"`
	ConnectionMaxIdleTime time.Duration      `toml:"connection_max_idle_time"`
	ConnectionMaxLifetime time.Duration      `toml:"connection_max_lifetime"`
	ConnectionMaxIdle     int                `toml:"connection_max_idle"`
	ConnectionMaxOpen     int                `toml:"connection_max_open"`

	Log telegraf.Logger
	// contains filtered or unexported fields
}

func (*ClickHouse) Close

func (ch *ClickHouse) Close() error

func (*ClickHouse) Connect

func (ch *ClickHouse) Connect() error

func (*ClickHouse) Init

func (ch *ClickHouse) Init() error

func (*ClickHouse) SampleConfig

func (*ClickHouse) SampleConfig() string

func (*ClickHouse) Write

func (ch *ClickHouse) Write(metrics []telegraf.Metric) error

func (*ClickHouse) WriteMultiTable

func (ch *ClickHouse) WriteMultiTable(metrics []telegraf.Metric) error

func (*ClickHouse) WriteSingleTable

func (ch *ClickHouse) WriteSingleTable(metrics []telegraf.Metric) error

type MultiTableOptions

type MultiTableOptions struct {
	TablePrefix string `toml:"table_prefix"`
}

type SingleTableOptions

type SingleTableOptions struct {
	TableName string `toml:"table_name"`
}

Jump to

Keyboard shortcuts

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