telemetry

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 12 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
	Count() (int64, error)
	Insert(id string) (*mongo.InsertOneResult, error)
	Find() string
}

type FS added in v0.7.0

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

type Service

type Service interface {
	Ping(bool)
	Normalize(context.Context)
	EditTc(context.Context)
	Testrun(int, int, context.Context)
	MockTestRun(int, int, context.Context)
	RecordedTest(context.Context, int, []string)
	RecordedMock(context.Context, string)
	DeleteTc(context.Context)
	GetApps(int, context.Context)
}

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(col DB, enabled, offMode, testExport bool, store FS, logger *zap.Logger, KeployVersion string, GlobalMap map[string]interface{}) *Telemetry

func (*Telemetry) DeleteTc

func (ac *Telemetry) DeleteTc(ctx context.Context)

func (*Telemetry) EditTc

func (ac *Telemetry) EditTc(ctx context.Context)

func (*Telemetry) GetApps

func (ac *Telemetry) GetApps(apps int, ctx context.Context)

func (*Telemetry) MockTestRun added in v0.8.2

func (ac *Telemetry) MockTestRun(success int, failure int, ctx context.Context)

Telemetry event for the Mocking feature test run

func (*Telemetry) Normalize

func (ac *Telemetry) Normalize(ctx context.Context)

func (*Telemetry) Ping

func (ac *Telemetry) Ping(isTestMode bool)

func (*Telemetry) RecordedMock added in v0.8.1

func (ac *Telemetry) RecordedMock(ctx context.Context, mockType string)

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

func (*Telemetry) RecordedTest added in v0.8.1

func (ac *Telemetry) RecordedTest(ctx context.Context, mockCount int, mockType []string)

Telemetry event for the tests and mocks that are recorded

func (*Telemetry) SendTelemetry

func (ac *Telemetry) SendTelemetry(eventType string, ctx context.Context, output ...map[string]interface{})

func (*Telemetry) Testrun

func (ac *Telemetry) Testrun(success int, failure int, ctx context.Context)

Jump to

Keyboard shortcuts

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