statistics

package
v1.15.12 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// tmpFilePrefix = "tmp-"
	MongoDBUrlKey        = "MONGODB_URI"
	MongodbDatabaseKey   = "MONGODB_DATABASE"
	MongodbCollectionKey = "MONGODB_COLLETION"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OfflineReader

type OfflineReader struct {
	// contains filtered or unexported fields
}

func NewOfflineReader

func NewOfflineReader() (*OfflineReader, error)

func (*OfflineReader) Close

func (or *OfflineReader) Close() error

func (*OfflineReader) GetMetrics

func (or *OfflineReader) GetMetrics() *map[string][]metricstype.Metric

func (*OfflineReader) Update

func (or *OfflineReader) Update() error

type Statistics

type Statistics struct {
	ID   primitive.ObjectID        `bson:"_id"`
	Time time.Time                 `bson:"time"`
	Data map[string]statisticsData `bson:"data"`
}

Jump to

Keyboard shortcuts

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