summaryrefslogtreecommitdiff
path: root/vendor/open-telemetry/sdk/Metrics/Data/Histogram.php
blob: 78269802658487f470ae287ae991781d3acfb599 (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
<?php

declare(strict_types=1);

namespace OpenTelemetry\SDK\Metrics\Data;

final class Histogram implements DataInterface
{

    /**
     * @var iterable<HistogramDataPoint>
     * @readonly
     */
    public iterable $dataPoints;
    /**
     * @var string|Temporality
     * @readonly
     */
    public $temporality;
    /**
     * @param iterable<HistogramDataPoint> $dataPoints
     * @param string|Temporality $temporality
     */
    public function __construct(iterable $dataPoints, $temporality)
    {
        $this->dataPoints = $dataPoints;
        $this->temporality = $temporality;
    }
}