capture

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aggregator

type Aggregator interface {
	aggr.Aggregator

	// NumMetricsAdded returns the number of metrics added.
	NumMetricsAdded() int

	// Snapshot returns a copy of the aggregated data, resets
	// aggregations and number of metrics added.
	Snapshot() SnapshotResult
}

Aggregator provide an aggregator for testing purposes.

func NewAggregator

func NewAggregator() Aggregator

NewAggregator creates a new capturing aggregator.

type SnapshotResult

type SnapshotResult struct {
	CountersWithMetadatas         []unaggregated.CounterWithMetadatas
	BatchTimersWithMetadatas      []unaggregated.BatchTimerWithMetadatas
	GaugesWithMetadatas           []unaggregated.GaugeWithMetadatas
	ForwardedMetricsWithMetadata  []aggregated.ForwardedMetricWithMetadata
	TimedMetricWithMetadata       []aggregated.TimedMetricWithMetadata
	PassthroughMetricWithMetadata []aggregated.PassthroughMetricWithMetadata
}

SnapshotResult is the snapshot result.

Jump to

Keyboard shortcuts

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