metrics

package
v1.115.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DevEndpoint  = "http://localhost:30016"
	ProdEndpoint = "https://replicated.app"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type InstallMetrics

type InstallMetrics struct {
	InstallID   string    `json:"install_id"`
	StartedAt   time.Time `json:"started"`
	FinishedAt  time.Time `json:"finished"`
	FailedAt    time.Time `json:"failed"`
	KotsVersion string    `json:"kots_version"`
	Cause       string    `json:"cause"`
	// contains filtered or unexported fields
}

func InitInstallMetrics

func InitInstallMetrics(license *kotsv1beta1.License, disableOutboundConnections bool) InstallMetrics

func (InstallMetrics) Post

func (m InstallMetrics) Post(url string) error

func (InstallMetrics) ReportInstallFail

func (m InstallMetrics) ReportInstallFail(cause string) error

func (InstallMetrics) ReportInstallFinish

func (m InstallMetrics) ReportInstallFinish() error

func (InstallMetrics) ReportInstallStart

func (m InstallMetrics) ReportInstallStart() error

Jump to

Keyboard shortcuts

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