Documentation
¶
Overview ¶
Package telemetry implements telemetry to monitor the usage of the Command-Line Interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterBackend ¶
func RegisterBackend(backend Backend)
RegisterBackend registers a backend. This function is typically called in the "init" function of backend packages.
Types ¶
type CLICompletion ¶
type CLICompletion struct {
CLIInvocation `bson:",inline"`
Completed time.Time `bson:"completed"`
Err *string `bson:"err, omitempty"`
}
CLICompletion represents the completion of a CLI invocation.
type CLIInvocation ¶
type CLIInvocation struct {
CLIVersion `bson:",inline"`
User string `bson:"user"`
Started time.Time `bson:"started"`
Args []string `bson:"args"`
}
CLIInvocation represents one invocation of the CLI.
type CLIVersion ¶
type CLIVersion struct {
Version string `bson:"version"`
Commit string `bson:"commit"`
Date string `bson:"date"`
}
CLIVersion gives the version of the CLI.
Click to show internal directories.
Click to hide internal directories.