metric

package
v0.0.0-...-226beff Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

type Metric struct {
	// AccountID is a unique UUID identifying the account
	AccountID string `json:"account_id"`
	// UserID is a unique ID identityfing the user
	// activity
	UserID string `json:"user_id"`
	// Timestamp is a time as recorded by the device
	Timestamp time.Time `json:"timestamp"`
}

Metric is a metric send by the iot device every time user logs into it

func (*Metric) String

func (m *Metric) String() string

String returns debug-friendly representation of the metric

Jump to

Keyboard shortcuts

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