telemetry

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	EnableTelemetry bool
	OperatorID      string
	// contains filtered or unexported fields
}

func New

func New(telemetryURL string, hashedAccountID string, enable bool) *Client

func (*Client) ReportError

func (c *Client) ReportError(err error)

func (*Client) ReportErrorBlocking

func (c *Client) ReportErrorBlocking(err error)

func (*Client) ReportEvent

func (c *Client) ReportEvent(name string)

type ErrorEvent

type ErrorEvent struct {
	Timestamp  time.Time `json:"timestamp"`
	Version    string    `json:"version"`
	OperatorID string    `json:"operator_id"`
	Title      string    `json:"title"`
	Stacktrace string    `json:"stacktrace"`
}

type UsageEvent

type UsageEvent struct {
	Timestamp  time.Time `json:"timestamp"`
	Version    string    `json:"version"`
	OperatorID string    `json:"operator_id"`
	Event      string    `json:"event"`
}

Jump to

Keyboard shortcuts

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