OpenTelemetry PHP

Sum extends Message
in package

Sum represents the type of a scalar metric that is calculated as a sum of all reported measurements over a time interval.

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

Table of Contents

Properties

$aggregation_temporality  : mixed
aggregation_temporality describes if the aggregator reports delta changes since last report time, or cumulative changes since a fixed start time.
$is_monotonic  : mixed
If "true" means that the sum is monotonic.
$data_points  : mixed
Generated from protobuf field <code>repeated .opentelemetry.proto.metrics.v1.NumberDataPoint data_points = 1;</code>

Methods

__construct()  : mixed
Constructor.
getAggregationTemporality()  : int
aggregation_temporality describes if the aggregator reports delta changes since last report time, or cumulative changes since a fixed start time.
getDataPoints()  : RepeatedField
Generated from protobuf field <code>repeated .opentelemetry.proto.metrics.v1.NumberDataPoint data_points = 1;</code>
getIsMonotonic()  : bool
If "true" means that the sum is monotonic.
setAggregationTemporality()  : $this
aggregation_temporality describes if the aggregator reports delta changes since last report time, or cumulative changes since a fixed start time.
setDataPoints()  : $this
Generated from protobuf field <code>repeated .opentelemetry.proto.metrics.v1.NumberDataPoint data_points = 1;</code>
setIsMonotonic()  : $this
If "true" means that the sum is monotonic.

Properties

$aggregation_temporality

aggregation_temporality describes if the aggregator reports delta changes since last report time, or cumulative changes since a fixed start time.

protected mixed $aggregation_temporality = 0

Generated from protobuf field .opentelemetry.proto.metrics.v1.AggregationTemporality aggregation_temporality = 2;

$is_monotonic

If "true" means that the sum is monotonic.

protected mixed $is_monotonic = false

Generated from protobuf field bool is_monotonic = 3;

$data_points

Generated from protobuf field <code>repeated .opentelemetry.proto.metrics.v1.NumberDataPoint data_points = 1;</code>

private mixed $data_points

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\Metrics\V1\NumberDataPoint[]|\Google\Protobuf\Internal\RepeatedField $data_points
@type int $aggregation_temporality
      aggregation_temporality describes if the aggregator reports delta changes
      since last report time, or cumulative changes since a fixed start time.
@type bool $is_monotonic
      If "true" means that the sum is monotonic.

}

getAggregationTemporality()

aggregation_temporality describes if the aggregator reports delta changes since last report time, or cumulative changes since a fixed start time.

public getAggregationTemporality() : int

Generated from protobuf field .opentelemetry.proto.metrics.v1.AggregationTemporality aggregation_temporality = 2;

Return values
int

getDataPoints()

Generated from protobuf field <code>repeated .opentelemetry.proto.metrics.v1.NumberDataPoint data_points = 1;</code>

public getDataPoints() : RepeatedField
Return values
RepeatedField

getIsMonotonic()

If "true" means that the sum is monotonic.

public getIsMonotonic() : bool

Generated from protobuf field bool is_monotonic = 3;

Return values
bool

setAggregationTemporality()

aggregation_temporality describes if the aggregator reports delta changes since last report time, or cumulative changes since a fixed start time.

public setAggregationTemporality(int $var) : $this

Generated from protobuf field .opentelemetry.proto.metrics.v1.AggregationTemporality aggregation_temporality = 2;

Parameters
$var : int
Return values
$this

setDataPoints()

Generated from protobuf field <code>repeated .opentelemetry.proto.metrics.v1.NumberDataPoint data_points = 1;</code>

public setDataPoints(array<string|int, NumberDataPoint>|RepeatedField $var) : $this
Parameters
$var : array<string|int, NumberDataPoint>|RepeatedField
Return values
$this

setIsMonotonic()

If "true" means that the sum is monotonic.

public setIsMonotonic(bool $var) : $this

Generated from protobuf field bool is_monotonic = 3;

Parameters
$var : bool
Return values
$this

        
On this page

Search results