HistogramBucketReservoir
in package
implements
ExemplarReservoirInterface
FinalYes
Table of Contents
Interfaces
Properties
- $boundaries : array<int, float|int>
- $storage : BucketStorage
Methods
- __construct() : mixed
- collect() : array<string|int, Exemplar>
- offer() : void
Properties
$boundaries
private
array<int, float|int>
$boundaries
$storage read-only
private
BucketStorage
$storage
Methods
__construct()
public
__construct(array<int, float|int> $boundaries) : mixed
Parameters
- $boundaries : array<int, float|int>
collect()
public
collect(array<string|int, mixed> $dataPointAttributes) : array<string|int, Exemplar>
Parameters
- $dataPointAttributes : array<string|int, mixed>
Return values
array<string|int, Exemplar>offer()
public
offer(mixed $index, mixed $value, AttributesInterface $attributes, ContextInterface $context, int $timestamp) : void
Parameters
- $index : mixed
- $value : mixed
- $attributes : AttributesInterface
- $context : ContextInterface
- $timestamp : int