metrics

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const DefaultLogStoreRetentionBytes = 604800000
View Source
const DefaultLogStoreRetentionMS = 1342177280
View Source
const DefaultTTL = "to_datetime(_tp_time) + INTERVAL 30 DAY"
View Source
const NumberOfInternalFields = 1

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

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

func CreateMetrics added in v0.0.2

func CreateMetrics(name string, tags []string, values []string, timeplusClient *timeplus.TimeplusClient, pushInterval time.Duration) (*Metrics, error)

func GetMetrics

func GetMetrics(name string, timeplusClient *timeplus.TimeplusClient, pushInterval time.Duration) (*Metrics, error)

func NewMetrics

func NewMetrics(name string, tags []string, values []string, timeplusClient *timeplus.TimeplusClient, pushInterval time.Duration) (*Metrics, error)

func (*Metrics) Flush added in v0.0.2

func (m *Metrics) Flush()

func (*Metrics) Observe

func (m *Metrics) Observe(namepsace string, subsystem string, tags []any, values []any, extraTags map[string]interface{}) error

Note, the tags could be nil or string Note, the values could be nil or float64

type Observation

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

Jump to

Keyboard shortcuts

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