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 }
SnapshotResult is the snapshot result.
Click to show internal directories.
Click to hide internal directories.