metrics

package
v0.0.0-...-de52cba Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTrackID

func CreateTrackID() string

Create unique but random trackID for a user

func GetMetrics

func GetMetrics() string

func GetSupportedApplications

func GetSupportedApplications() string

func PublishMetricInstance

func PublishMetricInstance(metricInstance Metric) bool

Publish metrics to backend storage (Segment for now)

func PublishMetrics

func PublishMetrics() string

Types

type Metric

type Metric struct {
	TimeStamp          string
	ApplicationName    string
	ApplicationVersion string
	Description        string
	Payload            string
}

Struct to represent an instance of Metric

Jump to

Keyboard shortcuts

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