summaryrefslogtreecommitdiff
path: root/vendor/open-telemetry/sdk/Metrics/Data/HistogramDataPoint.php
blob: 4c9df07b456729998aaa657db176d28f0879379a (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php

declare(strict_types=1);

namespace OpenTelemetry\SDK\Metrics\Data;

use OpenTelemetry\SDK\Common\Attribute\AttributesInterface;

final class HistogramDataPoint
{
    /**
     * @readonly
     */
    public int $count;
    /**
     * @var float|int
     * @readonly
     */
    public $sum;
    /**
     * @var float|int
     * @readonly
     */
    public $min;
    /**
     * @var float|int
     * @readonly
     */
    public $max;
    /**
     * @var int[]
     * @readonly
     */
    public array $bucketCounts;
    /**
     * @var list<float|int>
     * @readonly
     */
    public array $explicitBounds;
    /**
     * @readonly
     */
    public AttributesInterface $attributes;
    /**
     * @readonly
     */
    public int $startTimestamp;
    /**
     * @readonly
     */
    public int $timestamp;
    /**
     * @readonly
     */
    public iterable $exemplars = [];
    /**
     * @param float|int $sum
     * @param float|int $min
     * @param float|int $max
     * @param int[] $bucketCounts
     * @param list<float|int> $explicitBounds
     */
    public function __construct(int $count, $sum, $min, $max, array $bucketCounts, array $explicitBounds, AttributesInterface $attributes, int $startTimestamp, int $timestamp, iterable $exemplars = [])
    {
        $this->count = $count;
        $this->sum = $sum;
        $this->min = $min;
        $this->max = $max;
        $this->bucketCounts = $bucketCounts;
        $this->explicitBounds = $explicitBounds;
        $this->attributes = $attributes;
        $this->startTimestamp = $startTimestamp;
        $this->timestamp = $timestamp;
        $this->exemplars = $exemplars;
    }
}