ExplicitBucketHistogramAggregation
in package
implements
AggregationInterface
FinalYes
Tags
Table of Contents
Interfaces
Properties
- $boundaries : array<string|int, mixed>
Methods
- __construct() : mixed
- diff() : ExplicitBucketHistogramSummary
- initialize() : ExplicitBucketHistogramSummary
- merge() : ExplicitBucketHistogramSummary
- record() : void
- toData() : Histogram
- max() : float|int
- min() : float|int
Properties
$boundaries read-only
public
array<string|int, mixed>
$boundaries
Methods
__construct()
public
__construct(array<int, float|int> $boundaries) : mixed
Parameters
- $boundaries : array<int, float|int>
-
strictly ascending histogram bucket boundaries
diff()
public
diff(ExplicitBucketHistogramSummary $left, ExplicitBucketHistogramSummary $right) : ExplicitBucketHistogramSummary
Parameters
- $left : ExplicitBucketHistogramSummary
- $right : ExplicitBucketHistogramSummary
Return values
ExplicitBucketHistogramSummaryinitialize()
public
initialize() : ExplicitBucketHistogramSummary
Return values
ExplicitBucketHistogramSummarymerge()
public
merge(ExplicitBucketHistogramSummary $left, ExplicitBucketHistogramSummary $right) : ExplicitBucketHistogramSummary
Parameters
- $left : ExplicitBucketHistogramSummary
- $right : ExplicitBucketHistogramSummary
Return values
ExplicitBucketHistogramSummaryrecord()
public
record(ExplicitBucketHistogramSummary $summary, mixed $value, AttributesInterface $attributes, ContextInterface $context, int $timestamp) : void
Parameters
- $summary : ExplicitBucketHistogramSummary
- $value : mixed
- $attributes : AttributesInterface
- $context : ContextInterface
- $timestamp : int
toData()
public
toData(array<string|int, mixed> $attributes, array<string|int, ExplicitBucketHistogramSummary> $summaries, array<string|int, mixed> $exemplars, int $startTimestamp, int $timestamp, mixed $temporality) : Histogram
Parameters
- $attributes : array<string|int, mixed>
- $summaries : array<string|int, ExplicitBucketHistogramSummary>
- $exemplars : array<string|int, mixed>
- $startTimestamp : int
- $timestamp : int
- $temporality : mixed
Return values
Histogrammax()
private
static max(float|int $left, float|int $right) : float|int
Parameters
- $left : float|int
- $right : float|int
Return values
float|intmin()
private
static min(float|int $left, float|int $right) : float|int
Parameters
- $left : float|int
- $right : float|int