event

package
v0.0.0-...-db96926 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package event contains the struct used to pass events between parsers and the libclick module.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	// Timestamp is the time of the event (may be different from current time)
	Timestamp time.Time
	// SampleRate is the rate at which this event is sampled. If it is positive,
	// the event should be sent with that sample rate.  If it is -1 the event
	// should be dropped instead of getting sent. Zero value should be treated as
	// unset and the event sent with a sample rate of 1
	SampleRate int
	// Data is a map[string]interface{} containing key/value pairs for all the
	// metrics to submit in this event
	Data map[string]interface{}
}

Event is a single log event

Jump to

Keyboard shortcuts

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