OpenTelemetry PHP

IntDataPoint extends Message
in package

IntDataPoint is deprecated. Use integer value in NumberDataPoint.

Generated from protobuf message opentelemetry.proto.metrics.v1.IntDataPoint

Table of Contents

Properties

$start_time_unix_nano  : mixed
StartTimeUnixNano is optional but strongly encouraged, see the the detailed comments above Metric.
$time_unix_nano  : mixed
TimeUnixNano is required, see the detailed comments above Metric.
$value  : mixed
value itself.
$exemplars  : mixed
(Optional) List of exemplars collected from measurements that were used to form the data point
$labels  : mixed
The set of labels that uniquely identify this timeseries.

Methods

__construct()  : mixed
Constructor.
getExemplars()  : RepeatedField
(Optional) List of exemplars collected from measurements that were used to form the data point
getLabels()  : RepeatedField
The set of labels that uniquely identify this timeseries.
getStartTimeUnixNano()  : int|string
StartTimeUnixNano is optional but strongly encouraged, see the the detailed comments above Metric.
getTimeUnixNano()  : int|string
TimeUnixNano is required, see the detailed comments above Metric.
getValue()  : int|string
value itself.
setExemplars()  : $this
(Optional) List of exemplars collected from measurements that were used to form the data point
setLabels()  : $this
The set of labels that uniquely identify this timeseries.
setStartTimeUnixNano()  : $this
StartTimeUnixNano is optional but strongly encouraged, see the the detailed comments above Metric.
setTimeUnixNano()  : $this
TimeUnixNano is required, see the detailed comments above Metric.
setValue()  : $this
value itself.

Properties

$start_time_unix_nano

StartTimeUnixNano is optional but strongly encouraged, see the the detailed comments above Metric.

protected mixed $start_time_unix_nano = 0

Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.

Generated from protobuf field fixed64 start_time_unix_nano = 2;

$time_unix_nano

TimeUnixNano is required, see the detailed comments above Metric.

protected mixed $time_unix_nano = 0

Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.

Generated from protobuf field fixed64 time_unix_nano = 3;

$value

value itself.

protected mixed $value = 0

Generated from protobuf field sfixed64 value = 4;

$exemplars

(Optional) List of exemplars collected from measurements that were used to form the data point

private mixed $exemplars

Generated from protobuf field repeated .opentelemetry.proto.metrics.v1.IntExemplar exemplars = 5;

$labels

The set of labels that uniquely identify this timeseries.

private mixed $labels

Generated from protobuf field repeated .opentelemetry.proto.common.v1.StringKeyValue 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 $labels
      The set of labels that uniquely identify this timeseries.
@type int|string $start_time_unix_nano
      StartTimeUnixNano is optional but strongly encouraged, see the
      the detailed comments above Metric.
      Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
      1970.
@type int|string $time_unix_nano
      TimeUnixNano is required, see the detailed comments above Metric.
      Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
      1970.
@type int|string $value
      value itself.
@type \Opentelemetry\Proto\Metrics\V1\IntExemplar[]|\Google\Protobuf\Internal\RepeatedField $exemplars
      (Optional) List of exemplars collected from
      measurements that were used to form the data point

}

getExemplars()

(Optional) List of exemplars collected from measurements that were used to form the data point

public getExemplars() : RepeatedField

Generated from protobuf field repeated .opentelemetry.proto.metrics.v1.IntExemplar exemplars = 5;

Return values
RepeatedField

getLabels()

The set of labels that uniquely identify this timeseries.

public getLabels() : RepeatedField

Generated from protobuf field repeated .opentelemetry.proto.common.v1.StringKeyValue labels = 1;

Return values
RepeatedField

getStartTimeUnixNano()

StartTimeUnixNano is optional but strongly encouraged, see the the detailed comments above Metric.

public getStartTimeUnixNano() : int|string

Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.

Generated from protobuf field fixed64 start_time_unix_nano = 2;

Return values
int|string

getTimeUnixNano()

TimeUnixNano is required, see the detailed comments above Metric.

public getTimeUnixNano() : int|string

Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.

Generated from protobuf field fixed64 time_unix_nano = 3;

Return values
int|string

getValue()

value itself.

public getValue() : int|string

Generated from protobuf field sfixed64 value = 4;

Return values
int|string

setExemplars()

(Optional) List of exemplars collected from measurements that were used to form the data point

public setExemplars(array<string|int, IntExemplar>|RepeatedField $var) : $this

Generated from protobuf field repeated .opentelemetry.proto.metrics.v1.IntExemplar exemplars = 5;

Parameters
$var : array<string|int, IntExemplar>|RepeatedField
Return values
$this

setLabels()

The set of labels that uniquely identify this timeseries.

public setLabels(array<string|int, StringKeyValue>|RepeatedField $var) : $this

Generated from protobuf field repeated .opentelemetry.proto.common.v1.StringKeyValue labels = 1;

Parameters
$var : array<string|int, StringKeyValue>|RepeatedField
Return values
$this

setStartTimeUnixNano()

StartTimeUnixNano is optional but strongly encouraged, see the the detailed comments above Metric.

public setStartTimeUnixNano(int|string $var) : $this

Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.

Generated from protobuf field fixed64 start_time_unix_nano = 2;

Parameters
$var : int|string
Return values
$this

setTimeUnixNano()

TimeUnixNano is required, see the detailed comments above Metric.

public setTimeUnixNano(int|string $var) : $this

Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.

Generated from protobuf field fixed64 time_unix_nano = 3;

Parameters
$var : int|string
Return values
$this

setValue()

value itself.

public setValue(int|string $var) : $this

Generated from protobuf field sfixed64 value = 4;

Parameters
$var : int|string
Return values
$this

        
On this page

Search results