telemetry

package
v2.1.0-alpha9 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package telemetry provides functionality for telemetry data collection.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Enabled        bool
	Version        string
	GlobalMap      map[string]interface{}
	InstallationID string
}

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(logger *zap.Logger, opt Options) *Telemetry

func (*Telemetry) MockTestRun

func (tel *Telemetry) MockTestRun(utilizedMocks int)

MockTestRun is Telemetry event for the Mocking feature test run

func (*Telemetry) Ping

func (tel *Telemetry) Ping()

func (*Telemetry) RecordedMocks

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

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

func (*Telemetry) RecordedTestAndMocks

func (tel *Telemetry) RecordedTestAndMocks()

func (*Telemetry) RecordedTestCaseMock

func (tel *Telemetry) RecordedTestCaseMock(mockType string)

func (*Telemetry) RecordedTestSuite

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

RecordedTestSuite is 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, testSets int, runStatus string)

func (*Telemetry) TestSetRun

func (tel *Telemetry) TestSetRun(success int, failure int, testSet string, runStatus string)

Jump to

Keyboard shortcuts

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