analytics

package
v1.0.14-test1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestkubeMeasurementID = "" //this is default but it can be set using ldflag -X github.com/kubeshop/testkube/pkg/analytics.TestkubeMeasurementID=G-B6KY2SF30K
View Source
var TestkubeMeasurementSecret = ""

Functions

func MachineID

func MachineID() string

MachineID returns unique user machine ID

func SendAnonymousAPIRequestInfo added in v1.0.10

func SendAnonymousAPIRequestInfo(host, path, version, method string) (string, error)

SendAnonymousCmdInfo will send CLI event to GA

func SendAnonymousCmdInfo added in v1.0.6

func SendAnonymousCmdInfo(cmd *cobra.Command, version string) (string, error)

SendAnonymousCmdInfo will send CLI event to GA

func SendServerStartAnonymousInfo added in v1.0.10

func SendServerStartAnonymousInfo() (string, error)

SendServerStartAnonymousInfo will send event to GA

Types

type Event added in v0.11.2

type Event struct {
	Name   string `json:"name"`
	Params Params `json:"params,omitempty"`
}

type Params added in v0.11.2

type Params struct {
	EventCount       int64  `json:"event_count,omitempty"`
	EventCategory    string `json:"event_category,omitempty"`
	AppVersion       string `json:"app_version,omitempty"`
	AppName          string `json:"app_name,omitempty"`
	CustomDimensions string `json:"custom_dimensions,omitempty"`
	DataSource       string `json:"data_source,omitempty"`
	Host             string `json:"host,omitempty"`
	MachineID        string `json:"machine_id,omitempty"`
	OperatingSystem  string `json:"operating_system,omitempty"`
	Architecture     string `json:"architecture,omitempty"`
}

type Payload added in v0.11.2

type Payload struct {
	UserID   string  `json:"user_id,omitempty"`
	ClientID string  `json:"client_id,omitempty"`
	Events   []Event `json:"events,omitempty"`
}

Jump to

Keyboard shortcuts

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