Documentation
¶
Index ¶
Constants ¶
View Source
const EventServerHeartbeat = "server_heartbeat"
Event names should use underscores because they will be ingested into Snowflake and then snakeCase becomes SNAKECASE which makes it a little hard to read.
View Source
const EventServerUserAction = "server_user_action"
View Source
const ServerHeartbeatTypeInitialized = "initialized"
View Source
const ServerHeartbeatTypePanic = "panic"
View Source
const ServerUserActionTypeCommandExecuted = "commandExecuted"
View Source
const ServerUserActionTypeFileAnalyzed = "fileAnalyzed"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TelemetryClient ¶
type TelemetryClient interface { Enqueue(event string, properties map[string]any) Publish(ctx context.Context) (int, error) UpdateTelemetrySetting(value string) }
func NewClient ¶
func NewClient() TelemetryClient
type TelemetryClientImpl ¶
type TelemetryClientImpl struct {
// contains filtered or unexported fields
}
func (*TelemetryClientImpl) Enqueue ¶
func (c *TelemetryClientImpl) Enqueue(event string, properties map[string]any)
func (*TelemetryClientImpl) Publish ¶
func (c *TelemetryClientImpl) Publish(ctx context.Context) (int, error)
func (*TelemetryClientImpl) UpdateTelemetrySetting ¶
func (c *TelemetryClientImpl) UpdateTelemetrySetting(value string)
type TelemetryPaylad ¶
type TelemetryPaylad struct {
Records []Record `json:"records"`
}
Click to show internal directories.
Click to hide internal directories.