blob: 41fcb52ddd7233f43015b2106e385e2632c5d365 (
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
44
45
46
|
<?php
declare(strict_types=1);
namespace OpenTelemetry\SDK\Metrics\Data;
use OpenTelemetry\SDK\Common\Instrumentation\InstrumentationScopeInterface;
use OpenTelemetry\SDK\Resource\ResourceInfo;
final class Metric
{
/**
* @readonly
*/
public InstrumentationScopeInterface $instrumentationScope;
/**
* @readonly
*/
public ResourceInfo $resource;
/**
* @readonly
*/
public string $name;
/**
* @readonly
*/
public ?string $description;
/**
* @readonly
*/
public ?string $unit;
/**
* @readonly
*/
public DataInterface $data;
public function __construct(InstrumentationScopeInterface $instrumentationScope, ResourceInfo $resource, string $name, ?string $unit, ?string $description, DataInterface $data)
{
$this->instrumentationScope = $instrumentationScope;
$this->resource = $resource;
$this->name = $name;
$this->description = $description;
$this->unit = $unit;
$this->data = $data;
}
}
|