ttrss/vendor/open-telemetry/sdk/Metrics/Data/HistogramDataPoint.php

77 lines
1.6 KiB
PHP
Raw Normal View History

2023-10-20 14:12:29 +00:00
<?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;
}
}