eventwriter

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SplunkConfig

type SplunkConfig struct {
	Host                    string
	Token                   string
	Index                   string
	Fields                  map[string]string
	SkipSSL                 bool
	Debug                   bool
	Version                 string
	RefreshSplunkConnection bool
	KeepAliveTimer          time.Duration

	Logger lager.Logger
}

type SplunkEvent added in v1.3.0

type SplunkEvent struct {
	BodyBufferSize utils.Counter
	SentEventCount utils.Counter
	// contains filtered or unexported fields
}

func (*SplunkEvent) Write added in v1.3.0

func (s *SplunkEvent) Write(events []map[string]interface{}) (error, uint64)

type Writer

type Writer interface {
	Write([]map[string]interface{}) (error, uint64)
}

func NewSplunkEvent added in v1.3.0

func NewSplunkEvent(config *SplunkConfig) Writer

func NewSplunkMetric added in v1.3.0

func NewSplunkMetric(config *SplunkConfig) Writer

Jump to

Keyboard shortcuts

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