telemetry

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: Apache-2.0 Imports: 11 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 Service

type Service interface {
	Ping(bool)
	Normalize(http.Client, context.Context)
	EditTc(http.Client, context.Context)
	Testrun(int, int, http.Client, context.Context)
	DeleteTc(http.Client, context.Context)
	GetApps(int, http.Client, context.Context)
}

type Telemetry

type Telemetry struct {
	Enabled bool
	OffMode bool

	InstallationID string
	// contains filtered or unexported fields
}

func NewTelemetry

func NewTelemetry(col DB, enabled, offMode bool, logger *zap.Logger) *Telemetry

func (*Telemetry) DeleteTc

func (ac *Telemetry) DeleteTc(client http.Client, ctx context.Context)

func (*Telemetry) EditTc

func (ac *Telemetry) EditTc(client http.Client, ctx context.Context)

func (*Telemetry) GetApps

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

func (*Telemetry) Normalize

func (ac *Telemetry) Normalize(client http.Client, ctx context.Context)

func (*Telemetry) Ping

func (ac *Telemetry) Ping(isTestMode bool)

func (*Telemetry) SendTelemetry

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

func (*Telemetry) Testrun

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

Jump to

Keyboard shortcuts

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