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