SumAggregation
in package
implements
AggregationInterface
FinalYes
Tags
Table of Contents
Interfaces
Properties
- $monotonic : bool
Methods
- __construct() : mixed
- diff() : SumSummary
- initialize() : SumSummary
- merge() : SumSummary
- record() : void
- toData() : Sum
Properties
$monotonic read-only
private
bool
$monotonic
= false
Methods
__construct()
public
__construct([bool $monotonic = false ]) : mixed
Parameters
- $monotonic : bool = false
diff()
public
diff(SumSummary $left, SumSummary $right) : SumSummary
Parameters
- $left : SumSummary
- $right : SumSummary
Return values
SumSummaryinitialize()
public
initialize() : SumSummary
Return values
SumSummarymerge()
public
merge(SumSummary $left, SumSummary $right) : SumSummary
Parameters
- $left : SumSummary
- $right : SumSummary
Return values
SumSummaryrecord()
public
record(SumSummary $summary, mixed $value, AttributesInterface $attributes, ContextInterface $context, int $timestamp) : void
Parameters
- $summary : SumSummary
- $value : mixed
- $attributes : AttributesInterface
- $context : ContextInterface
- $timestamp : int
toData()
public
toData(array<string|int, mixed> $attributes, array<string|int, SumSummary> $summaries, array<string|int, mixed> $exemplars, int $startTimestamp, int $timestamp, mixed $temporality) : Sum
Parameters
- $attributes : array<string|int, mixed>
- $summaries : array<string|int, SumSummary>
- $exemplars : array<string|int, mixed>
- $startTimestamp : int
- $timestamp : int
- $temporality : mixed