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

44 lines
909 B
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 NumberDataPoint
{
/**
* @var float|int
* @readonly
*/
public $value;
/**
* @readonly
*/
public AttributesInterface $attributes;
/**
* @readonly
*/
public int $startTimestamp;
/**
* @readonly
*/
public int $timestamp;
/**
* @readonly
*/
public iterable $exemplars = [];
/**
* @param float|int $value
*/
public function __construct($value, AttributesInterface $attributes, int $startTimestamp, int $timestamp, iterable $exemplars = [])
{
$this->value = $value;
$this->attributes = $attributes;
$this->startTimestamp = $startTimestamp;
$this->timestamp = $timestamp;
$this->exemplars = $exemplars;
}
}