summaryrefslogtreecommitdiff
path: root/vendor/open-telemetry/sdk/Metrics/Aggregation/ExplicitBucketHistogramSummary.php
blob: 1878a34a00645f4f6313df0782829f937dcab1cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php

declare(strict_types=1);

namespace OpenTelemetry\SDK\Metrics\Aggregation;

final class ExplicitBucketHistogramSummary
{
    public int $count;
    /**
     * @var float|int
     */
    public $sum;
    /**
     * @var float|int
     */
    public $min;
    /**
     * @var float|int
     */
    public $max;
    /**
     * @var int[]
     */
    public array $buckets;
    /**
     * @param float|int $sum
     * @param float|int $min
     * @param float|int $max
     * @param int[] $buckets
     */
    public function __construct(int $count, $sum, $min, $max, array $buckets)
    {
        $this->count = $count;
        $this->sum = $sum;
        $this->min = $min;
        $this->max = $max;
        $this->buckets = $buckets;
    }
}