OpenTelemetry PHP

ExportMetricsServiceRequest extends Message
in package

Generated from protobuf message <code>opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest</code>

Table of Contents

Properties

$resource_metrics  : mixed
An array of ResourceMetrics.

Methods

__construct()  : mixed
Constructor.
getResourceMetrics()  : RepeatedField
An array of ResourceMetrics.
setResourceMetrics()  : $this
An array of ResourceMetrics.

Properties

$resource_metrics

An array of ResourceMetrics.

private mixed $resource_metrics

For data coming from a single resource this array will typically contain one element. Intermediary nodes (such as OpenTelemetry Collector) that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.

Generated from protobuf field repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 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\Metrics\V1\ResourceMetrics[]|\Google\Protobuf\Internal\RepeatedField $resource_metrics
      An array of ResourceMetrics.
      For data coming from a single resource this array will typically contain one
      element. Intermediary nodes (such as OpenTelemetry Collector) that receive
      data from multiple origins typically batch the data before forwarding further and
      in that case this array will contain multiple elements.

}

getResourceMetrics()

An array of ResourceMetrics.

public getResourceMetrics() : RepeatedField

For data coming from a single resource this array will typically contain one element. Intermediary nodes (such as OpenTelemetry Collector) that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.

Generated from protobuf field repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1;

Return values
RepeatedField

setResourceMetrics()

An array of ResourceMetrics.

public setResourceMetrics(array<string|int, ResourceMetrics>|RepeatedField $var) : $this

For data coming from a single resource this array will typically contain one element. Intermediary nodes (such as OpenTelemetry Collector) that receive data from multiple origins typically batch the data before forwarding further and in that case this array will contain multiple elements.

Generated from protobuf field repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1;

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

        
On this page

Search results