report

package
v6.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterReporterFactory

func RegisterReporterFactory(name string, f ReporterFactory)

Types

type Event

type Event struct {
	Timestamp time.Time     `struct:"timestamp"`
	Fields    common.MapStr `struct:",inline"`
}

Event is the format of monitoring events. A separate event is required as it has to be serialized differently. The only difference between report.Event and beat.Event is Timestamp is serialized as "timestamp" in monitoring.

type Reporter

type Reporter interface {
	Stop()
}

func New

func New(
	beat beat.Info,
	cfg *common.Config,
	outputs common.ConfigNamespace,
) (Reporter, error)

type ReporterFactory

type ReporterFactory func(beat.Info, *common.Config) (Reporter, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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