MetricsData
extends Message
in package
MetricsData represents the metrics data that can be stored in a persistent storage, OR can be embedded by other protocols that transfer OTLP metrics data but do not implement the OTLP protocol.
The main difference between this message and collector protocol is that in this message there will not be any "control" or "metadata" specific to OTLP protocol. When new fields are added into this message, the OTLP request MUST be updated as well.
Generated from protobuf message opentelemetry.proto.metrics.v1.MetricsData
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 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 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 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
RepeatedFieldsetResourceMetrics()
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 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