diff options
Diffstat (limited to 'vendor/open-telemetry/sdk/Metrics/Data/Histogram.php')
-rw-r--r-- | vendor/open-telemetry/sdk/Metrics/Data/Histogram.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/vendor/open-telemetry/sdk/Metrics/Data/Histogram.php b/vendor/open-telemetry/sdk/Metrics/Data/Histogram.php new file mode 100644 index 000000000..782698026 --- /dev/null +++ b/vendor/open-telemetry/sdk/Metrics/Data/Histogram.php @@ -0,0 +1,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; + } +} |