telemetry

package
v2.0.0-alpha56 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

type FS interface {
	Get(bool) (string, error)
	Set(string) error
}

type Telemetry

type Telemetry struct {
	Enabled bool
	OffMode bool

	InstallationID string

	KeployVersion string
	GlobalMap     map[string]interface{}
	// contains filtered or unexported fields
}

func NewTelemetry

func NewTelemetry(enabled, offMode bool, store FS, logger *zap.Logger, KeployVersion string, GlobalMap map[string]interface{}) *Telemetry

func (*Telemetry) MockTestRun

func (tel *Telemetry) MockTestRun(utilizedMocks int)

Telemetry event for the Mocking feature test run

func (*Telemetry) Ping

func (tel *Telemetry) Ping(isTestMode bool)

func (*Telemetry) RecordedMock

func (tel *Telemetry) RecordedMock(mockType string)

func (*Telemetry) RecordedMocks

func (tel *Telemetry) RecordedMocks(mockTotal map[string]int)

Telemetry event for the mocks that are recorded in the mocking feature

func (*Telemetry) RecordedTestAndMocks

func (tel *Telemetry) RecordedTestAndMocks()

func (*Telemetry) RecordedTestSuite

func (tel *Telemetry) RecordedTestSuite(testSet string, testsTotal int, mockTotal map[string]int)

Telemetry event for the tests and mocks that are recorded

func (*Telemetry) SendTelemetry

func (tel *Telemetry) SendTelemetry(eventType string, output ...map[string]interface{})

func (*Telemetry) Testrun

func (tel *Telemetry) Testrun(success int, failure int)

Jump to

Keyboard shortcuts

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