persist

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetricMeta = "_metric_meta"

	MetricTagLifetime  = "_lt"       // lifetime
	MetricTagTransient = "transient" // transient, not stored to elasticsearch.

	Minute int64 = Second * 60
	Second int64 = 1000 * 1000 * 1000
)

Variables

View Source
var Skip = errors.New("skip")

Skip .

Functions

This section is empty.

Types

type MetadataProcessor

type MetadataProcessor interface {
	Process(m *metric.Metric) error
}

MetadataProcessor .

var NopMetadataProcessor MetadataProcessor = &nopMetadataProcessor{}

NopMetadataProcessor .

type Statistics

type Statistics interface {
	storekit.ConsumeStatistics

	DecodeError(value []byte, err error)
	ValidateError(data *metric.Metric)
	MetadataError(data *metric.Metric, err error)
	MetadataUpdates(v int)
}

Statistics .

type Validator

type Validator interface {
	Validate(m *metric.Metric) error
}

Validator .

var NopValidator Validator = &nopValidator{}

NopValidator .

Jump to

Keyboard shortcuts

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