Documentation ¶
Index ¶
- Variables
- func MachineID() string
- func SendAnonymousAPIRequestInfo(host, path, version, method, clusterId string) (string, error)
- func SendAnonymousCmdInfo(cmd *cobra.Command, version string) (string, error)
- func SendCmdInit(cmd *cobra.Command, version string) (string, error)
- func SendServerStartAnonymousInfo() (string, error)
- type Event
- type Params
- type Payload
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 SendAnonymousAPIRequestInfo ¶ added in v1.0.10
SendAnonymousCmdInfo will send CLI event to GA
func SendAnonymousCmdInfo ¶ added in v1.0.6
SendAnonymousCmdInfo will send CLI event to GA
func SendCmdInit ¶ added in v1.0.16
SendCmdInit will send CLI event to GA
func SendServerStartAnonymousInfo ¶ added in v1.0.10
SendServerStartAnonymousInfo will send event to GA
Types ¶
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"` ClusterID string `json:"cluster_id,omitempty"` OperatingSystem string `json:"operating_system,omitempty"` Architecture string `json:"architecture,omitempty"` }
Click to show internal directories.
Click to hide internal directories.