aggregated

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 8 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChunkedMetric

type ChunkedMetric struct {
	id.ChunkedID
	Annotation []byte
	TimeNanos  int64
	Value      float64
}

ChunkedMetric is a metric with a chunked ID.

type ChunkedMetricWithStoragePolicy

type ChunkedMetricWithStoragePolicy struct {
	ChunkedMetric
	policy.StoragePolicy
}

ChunkedMetricWithStoragePolicy is a chunked metric with applicable storage policy.

type ForwardedMetric

type ForwardedMetric struct {
	ID         id.RawID
	Values     []float64
	PrevValues []float64
	Annotation []byte
	Type       metric.Type
	TimeNanos  int64
	Version    uint32
}

ForwardedMetric is a forwarded metric.

func (*ForwardedMetric) FromProto

func (m *ForwardedMetric) FromProto(pb metricpb.ForwardedMetric) error

FromProto converts the protobuf message to a forwarded metric in place.

func (ForwardedMetric) String

func (m ForwardedMetric) String() string

String is a string representation of the forwarded metric.

func (ForwardedMetric) ToProto

ToProto converts the forwarded metric to a protobuf message in place.

type ForwardedMetricWithMetadata

type ForwardedMetricWithMetadata struct {
	ForwardedMetric
	metadata.ForwardMetadata
}

ForwardedMetricWithMetadata is a forwarded metric with metadata.

func (*ForwardedMetricWithMetadata) FromProto

FromProto converts the protobuf message to a forwarded metric with metadata in place.

func (ForwardedMetricWithMetadata) ToProto

ToProto converts the forwarded metric with metadata to a protobuf message in place.

type Metric

type Metric struct {
	ID         id.RawID
	Annotation []byte
	Type       metric.Type
	TimeNanos  int64
	Value      float64
}

Metric is a metric, which is essentially a named value at certain time.

func (*Metric) FromProto

func (m *Metric) FromProto(pb metricpb.TimedMetric) error

FromProto converts the protobuf message to a metric in place.

func (Metric) String

func (m Metric) String() string

String is the string representation of a metric.

func (Metric) ToProto

func (m Metric) ToProto(pb *metricpb.TimedMetric) error

ToProto converts the metric to a protobuf message in place.

type MetricWithStoragePolicy

type MetricWithStoragePolicy struct {
	Metric
	policy.StoragePolicy
}

MetricWithStoragePolicy is a metric with applicable storage policy.

func (*MetricWithStoragePolicy) FromProto added in v0.5.0

FromProto converts the protobuf message to a chunked metric with storage policy in place.

func (MetricWithStoragePolicy) String

func (m MetricWithStoragePolicy) String() string

String is the string representation of a metric with storage policy.

func (MetricWithStoragePolicy) ToProto added in v0.5.0

ToProto converts the chunked metric with storage policy to a protobuf message in place.

type PassthroughMetricWithMetadata added in v0.15.0

type PassthroughMetricWithMetadata struct {
	Metric
	policy.StoragePolicy
}

PassthroughMetricWithMetadata is a passthrough metric with metadata.

func (*PassthroughMetricWithMetadata) FromProto added in v0.15.0

FromProto converts the protobuf message to a timed metric with metadata in place.

func (PassthroughMetricWithMetadata) ToProto added in v0.15.0

ToProto converts the passthrough metric with metadata to a protobuf message in place.

type RawMetric

type RawMetric interface {
	// ID is the metric identifier.
	ID() (id.RawID, error)

	// TimeNanos is the metric timestamp in nanoseconds.
	TimeNanos() (int64, error)

	// Value is the metric value.
	Value() (float64, error)

	// Metric is the metric object represented by the raw metric.
	Metric() (Metric, error)

	// Bytes are the bytes backing this raw metric.
	Bytes() []byte

	// Reset resets the raw data.
	Reset(data []byte)
}

RawMetric is a metric in its raw form (e.g., encoded bytes associated with a metric object).

type TimedMetricWithMetadata

type TimedMetricWithMetadata struct {
	Metric
	metadata.TimedMetadata
}

TimedMetricWithMetadata is a timed metric with metadata.

func (*TimedMetricWithMetadata) FromProto

FromProto converts the protobuf message to a timed metric with metadata in place.

func (TimedMetricWithMetadata) ToProto

ToProto converts the timed metric with metadata to a protobuf message in place.

type TimedMetricWithMetadatas added in v0.15.0

type TimedMetricWithMetadatas struct {
	metadata.StagedMetadatas
	Metric
}

TimedMetricWithMetadatas is a timed metric with staged metadatas.

func (*TimedMetricWithMetadatas) FromProto added in v0.15.0

FromProto converts the protobuf message to a timed metric with metadata in place.

func (TimedMetricWithMetadatas) ToProto added in v0.15.0

ToProto converts the timed metric with metadata to a protobuf message in place.

Jump to

Keyboard shortcuts

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