-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStandardMetrics.php
More file actions
29 lines (25 loc) · 1015 Bytes
/
StandardMetrics.php
File metadata and controls
29 lines (25 loc) · 1015 Bytes
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
<?php
declare(strict_types=1);
namespace Arcp\Messages\Telemetry;
/**
* Reserved metric names per RFC §17.3.1. Implementations producing these
* concepts MUST use these names with the indicated units; non-standard
* variants MUST be namespaced (e.g. `arcpx.acme.cache_hit_ratio`).
*/
final class StandardMetrics
{
public const string TOKENS_USED = 'tokens.used';
public const string COST_USD = 'cost.usd';
public const string GPU_SECONDS = 'gpu.seconds';
public const string TOOL_INVOCATIONS = 'tool.invocations';
public const string LATENCY_MS = 'latency.ms';
public const string BYTES_IN = 'bytes.in';
public const string BYTES_OUT = 'bytes.out';
public const string ERRORS_TOTAL = 'errors.total';
public const string UNIT_TOKENS = 'tokens';
public const string UNIT_USD = 'usd';
public const string UNIT_SECONDS = 'seconds';
public const string UNIT_COUNT = 'count';
public const string UNIT_MS = 'ms';
public const string UNIT_BYTES = 'bytes';
}