blob: 1d00e783a0e99b683ffe432f9daf0f5b4a8313c7 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
<?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;
}
}
|