telemetry

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NowProvider = time.Now().UnixMilli
)

Functions

func FieldTypeForValue

func FieldTypeForValue(value interface{}) int32

Types

type Aggregator

type Aggregator interface {
	Record(data interface{})
	GetData() *prefabProto.TelemetryEvent
	Clear()
	Lock()
	Unlock()
}

func NewContextAggregators

func NewContextAggregators(opts options.Options) []Aggregator

type ContextShapeAggregator

type ContextShapeAggregator struct {
	// contains filtered or unexported fields
}

func NewContextShapeAggregator

func NewContextShapeAggregator() *ContextShapeAggregator

func (*ContextShapeAggregator) Clear

func (eca *ContextShapeAggregator) Clear()

func (*ContextShapeAggregator) GetData

func (*ContextShapeAggregator) Lock

func (eca *ContextShapeAggregator) Lock()

func (*ContextShapeAggregator) Record

func (eca *ContextShapeAggregator) Record(ctxSet interface{})

func (*ContextShapeAggregator) Unlock

func (eca *ContextShapeAggregator) Unlock()

type EvaluationSummaryAggregator

type EvaluationSummaryAggregator struct {
	// contains filtered or unexported fields
}

func NewEvaluationSummaryAggregator

func NewEvaluationSummaryAggregator() *EvaluationSummaryAggregator

func (*EvaluationSummaryAggregator) Clear

func (esa *EvaluationSummaryAggregator) Clear()

func (*EvaluationSummaryAggregator) GetData

func (*EvaluationSummaryAggregator) Lock

func (esa *EvaluationSummaryAggregator) Lock()

func (*EvaluationSummaryAggregator) Record

func (esa *EvaluationSummaryAggregator) Record(data interface{})

func (*EvaluationSummaryAggregator) Unlock

func (esa *EvaluationSummaryAggregator) Unlock()

type ExampleContextAggregator

type ExampleContextAggregator struct {
	Data map[string]*prefabProto.ExampleContext
	// contains filtered or unexported fields
}

func NewExampleContextAggregator

func NewExampleContextAggregator() *ExampleContextAggregator

func (*ExampleContextAggregator) Clear

func (eca *ExampleContextAggregator) Clear()

func (*ExampleContextAggregator) GetData

func (*ExampleContextAggregator) Lock

func (eca *ExampleContextAggregator) Lock()

func (*ExampleContextAggregator) Record

func (eca *ExampleContextAggregator) Record(ctxSet interface{})

func (*ExampleContextAggregator) Unlock

func (eca *ExampleContextAggregator) Unlock()

type Payload

type Payload = prefabProto.TelemetryEvents

type QueueItem

type QueueItem interface{}

type Submitter

type Submitter struct {
	// contains filtered or unexported fields
}

func NewTelemetrySubmitter

func NewTelemetrySubmitter(options options.Options) *Submitter

func (*Submitter) RecordContext

func (ts *Submitter) RecordContext(data *contexts.ContextSet)

func (*Submitter) RecordEvaluation

func (ts *Submitter) RecordEvaluation(data internal.ConfigMatch)

func (*Submitter) SetupQueueConsumer

func (ts *Submitter) SetupQueueConsumer()

func (*Submitter) StartPeriodicSubmission

func (ts *Submitter) StartPeriodicSubmission(interval time.Duration)

func (*Submitter) Submit

func (ts *Submitter) Submit(waitOnQueueToDrain bool) error

Jump to

Keyboard shortcuts

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