IntExemplar
extends Message
in package
IntExemplar is deprecated. Use Exemplar with as_int for value
Generated from protobuf message opentelemetry.proto.metrics.v1.IntExemplar
Table of Contents
Properties
- $span_id : mixed
- (Optional) Span ID of the exemplar trace.
- $time_unix_nano : mixed
- time_unix_nano is the exact time when this exemplar was recorded Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
- $trace_id : mixed
- (Optional) Trace ID of the exemplar trace.
- $value : mixed
- Numerical int value of the measurement that was recorded.
- $filtered_labels : mixed
- The set of labels that were filtered out by the aggregator, but recorded alongside the original measurement. Only labels that were filtered out by the aggregator should be included
Methods
- __construct() : mixed
- Constructor.
- getFilteredLabels() : RepeatedField
- The set of labels that were filtered out by the aggregator, but recorded alongside the original measurement. Only labels that were filtered out by the aggregator should be included
- getSpanId() : string
- (Optional) Span ID of the exemplar trace.
- getTimeUnixNano() : int|string
- time_unix_nano is the exact time when this exemplar was recorded Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
- getTraceId() : string
- (Optional) Trace ID of the exemplar trace.
- getValue() : int|string
- Numerical int value of the measurement that was recorded.
- setFilteredLabels() : $this
- The set of labels that were filtered out by the aggregator, but recorded alongside the original measurement. Only labels that were filtered out by the aggregator should be included
- setSpanId() : $this
- (Optional) Span ID of the exemplar trace.
- setTimeUnixNano() : $this
- time_unix_nano is the exact time when this exemplar was recorded Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
- setTraceId() : $this
- (Optional) Trace ID of the exemplar trace.
- setValue() : $this
- Numerical int value of the measurement that was recorded.
Properties
$span_id
(Optional) Span ID of the exemplar trace.
protected
mixed
$span_id
= ''
span_id may be missing if the measurement is not recorded inside a trace or if the trace is not sampled.
Generated from protobuf field bytes span_id = 4;
$time_unix_nano
time_unix_nano is the exact time when this exemplar was recorded Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
protected
mixed
$time_unix_nano
= 0
Generated from protobuf field fixed64 time_unix_nano = 2;
$trace_id
(Optional) Trace ID of the exemplar trace.
protected
mixed
$trace_id
= ''
trace_id may be missing if the measurement is not recorded inside a trace or if the trace is not sampled.
Generated from protobuf field bytes trace_id = 5;
$value
Numerical int value of the measurement that was recorded.
protected
mixed
$value
= 0
Generated from protobuf field sfixed64 value = 3;
$filtered_labels
The set of labels that were filtered out by the aggregator, but recorded alongside the original measurement. Only labels that were filtered out by the aggregator should be included
private
mixed
$filtered_labels
Generated from protobuf field repeated .opentelemetry.proto.common.v1.StringKeyValue filtered_labels = 1;
Methods
__construct()
Constructor.
public
__construct([array<string|int, mixed> $data = NULL ]) : mixed
Parameters
- $data : array<string|int, mixed> = NULL
-
{ Optional. Data for populating the Message object.
@type \Opentelemetry\Proto\Common\V1\StringKeyValue[]|\Google\Protobuf\Internal\RepeatedField $filtered_labels The set of labels that were filtered out by the aggregator, but recorded alongside the original measurement. Only labels that were filtered out by the aggregator should be included @type int|string $time_unix_nano time_unix_nano is the exact time when this exemplar was recorded Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. @type int|string $value Numerical int value of the measurement that was recorded. @type string $span_id (Optional) Span ID of the exemplar trace. span_id may be missing if the measurement is not recorded inside a trace or if the trace is not sampled. @type string $trace_id (Optional) Trace ID of the exemplar trace. trace_id may be missing if the measurement is not recorded inside a trace or if the trace is not sampled.
}
getFilteredLabels()
The set of labels that were filtered out by the aggregator, but recorded alongside the original measurement. Only labels that were filtered out by the aggregator should be included
public
getFilteredLabels() : RepeatedField
Generated from protobuf field repeated .opentelemetry.proto.common.v1.StringKeyValue filtered_labels = 1;
Return values
RepeatedFieldgetSpanId()
(Optional) Span ID of the exemplar trace.
public
getSpanId() : string
span_id may be missing if the measurement is not recorded inside a trace or if the trace is not sampled.
Generated from protobuf field bytes span_id = 4;
Return values
stringgetTimeUnixNano()
time_unix_nano is the exact time when this exemplar was recorded Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
public
getTimeUnixNano() : int|string
Generated from protobuf field fixed64 time_unix_nano = 2;
Return values
int|stringgetTraceId()
(Optional) Trace ID of the exemplar trace.
public
getTraceId() : string
trace_id may be missing if the measurement is not recorded inside a trace or if the trace is not sampled.
Generated from protobuf field bytes trace_id = 5;
Return values
stringgetValue()
Numerical int value of the measurement that was recorded.
public
getValue() : int|string
Generated from protobuf field sfixed64 value = 3;
Return values
int|stringsetFilteredLabels()
The set of labels that were filtered out by the aggregator, but recorded alongside the original measurement. Only labels that were filtered out by the aggregator should be included
public
setFilteredLabels(array<string|int, StringKeyValue>|RepeatedField $var) : $this
Generated from protobuf field repeated .opentelemetry.proto.common.v1.StringKeyValue filtered_labels = 1;
Parameters
- $var : array<string|int, StringKeyValue>|RepeatedField
Return values
$thissetSpanId()
(Optional) Span ID of the exemplar trace.
public
setSpanId(string $var) : $this
span_id may be missing if the measurement is not recorded inside a trace or if the trace is not sampled.
Generated from protobuf field bytes span_id = 4;
Parameters
- $var : string
Return values
$thissetTimeUnixNano()
time_unix_nano is the exact time when this exemplar was recorded Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
public
setTimeUnixNano(int|string $var) : $this
Generated from protobuf field fixed64 time_unix_nano = 2;
Parameters
- $var : int|string
Return values
$thissetTraceId()
(Optional) Trace ID of the exemplar trace.
public
setTraceId(string $var) : $this
trace_id may be missing if the measurement is not recorded inside a trace or if the trace is not sampled.
Generated from protobuf field bytes trace_id = 5;
Parameters
- $var : string
Return values
$thissetValue()
Numerical int value of the measurement that was recorded.
public
setValue(int|string $var) : $this
Generated from protobuf field sfixed64 value = 3;
Parameters
- $var : int|string