analytics

package
v1.0.7-beta001 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func MachineID

func MachineID() string

MachineID returns unique user machine ID

func SendAnonymousAPIInfo added in v1.0.6

func SendAnonymousAPIInfo(path string) (string, error)

SendAnonymousCmdInfo will send CLI event to GA

func SendAnonymousCmdInfo added in v1.0.6

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

SendAnonymousCmdInfo will send CLI event to GA

func SendAnonymousInfo

func SendAnonymousInfo() (string, error)

SendAnonymousInfo 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:"even_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"`
}

type Payload added in v0.11.2

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

Jump to

Keyboard shortcuts

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