ResourceMetrics
extends Message
in package
A collection of ScopeMetrics from a Resource.
Generated from protobuf message opentelemetry.proto.metrics.v1.ResourceMetrics
Table of Contents
Properties
- $resource : mixed
- The resource for the metrics in this message.
- $schema_url : mixed
- The Schema URL, if known. This is the identifier of the Schema that the resource data is recorded in. Notably, the last part of the URL path is the version number of the schema: http[s]://server[:port]/path/<version>. To learn more about Schema URL see https://opentelemetry.io/docs/specs/otel/schemas/#schema-url This schema_url applies to the data in the "resource" field. It does not apply to the data in the "scope_metrics" field which have their own schema_url field.
- $scope_metrics : mixed
- A list of metrics that originate from a resource.
Methods
- __construct() : mixed
- Constructor.
- clearResource() : mixed
- getResource() : Resource|null
- The resource for the metrics in this message.
- getSchemaUrl() : string
- The Schema URL, if known. This is the identifier of the Schema that the resource data is recorded in. Notably, the last part of the URL path is the version number of the schema: http[s]://server[:port]/path/<version>. To learn more about Schema URL see https://opentelemetry.io/docs/specs/otel/schemas/#schema-url This schema_url applies to the data in the "resource" field. It does not apply to the data in the "scope_metrics" field which have their own schema_url field.
- getScopeMetrics() : RepeatedField
- A list of metrics that originate from a resource.
- hasResource() : mixed
- setResource() : $this
- The resource for the metrics in this message.
- setSchemaUrl() : $this
- The Schema URL, if known. This is the identifier of the Schema that the resource data is recorded in. Notably, the last part of the URL path is the version number of the schema: http[s]://server[:port]/path/<version>. To learn more about Schema URL see https://opentelemetry.io/docs/specs/otel/schemas/#schema-url This schema_url applies to the data in the "resource" field. It does not apply to the data in the "scope_metrics" field which have their own schema_url field.
- setScopeMetrics() : $this
- A list of metrics that originate from a resource.
Properties
$resource
The resource for the metrics in this message.
protected
mixed
$resource
= null
If this field is not set then no resource info is known.
Generated from protobuf field .opentelemetry.proto.resource.v1.Resource resource = 1;
$schema_url
The Schema URL, if known. This is the identifier of the Schema that the resource data is recorded in. Notably, the last part of the URL path is the version number of the schema: http[s]://server[:port]/path/<version>. To learn more about Schema URL see https://opentelemetry.io/docs/specs/otel/schemas/#schema-url This schema_url applies to the data in the "resource" field. It does not apply to the data in the "scope_metrics" field which have their own schema_url field.
protected
mixed
$schema_url
= ''
Generated from protobuf field string schema_url = 3;
$scope_metrics
A list of metrics that originate from a resource.
private
mixed
$scope_metrics
Generated from protobuf field repeated .opentelemetry.proto.metrics.v1.ScopeMetrics scope_metrics = 2;
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\Resource\V1\Resource $resource The resource for the metrics in this message. If this field is not set then no resource info is known. @type \Opentelemetry\Proto\Metrics\V1\ScopeMetrics[]|\Google\Protobuf\Internal\RepeatedField $scope_metrics A list of metrics that originate from a resource. @type string $schema_url The Schema URL, if known. This is the identifier of the Schema that the resource data is recorded in. Notably, the last part of the URL path is the version number of the schema: http[s]://server[:port]/path/<version>. To learn more about Schema URL see https://opentelemetry.io/docs/specs/otel/schemas/#schema-url This schema_url applies to the data in the "resource" field. It does not apply to the data in the "scope_metrics" field which have their own schema_url field.
}
clearResource()
public
clearResource() : mixed
getResource()
The resource for the metrics in this message.
public
getResource() : Resource|null
If this field is not set then no resource info is known.
Generated from protobuf field .opentelemetry.proto.resource.v1.Resource resource = 1;
Return values
Resource|nullgetSchemaUrl()
The Schema URL, if known. This is the identifier of the Schema that the resource data is recorded in. Notably, the last part of the URL path is the version number of the schema: http[s]://server[:port]/path/<version>. To learn more about Schema URL see https://opentelemetry.io/docs/specs/otel/schemas/#schema-url This schema_url applies to the data in the "resource" field. It does not apply to the data in the "scope_metrics" field which have their own schema_url field.
public
getSchemaUrl() : string
Generated from protobuf field string schema_url = 3;
Return values
stringgetScopeMetrics()
A list of metrics that originate from a resource.
public
getScopeMetrics() : RepeatedField
Generated from protobuf field repeated .opentelemetry.proto.metrics.v1.ScopeMetrics scope_metrics = 2;
Return values
RepeatedFieldhasResource()
public
hasResource() : mixed
setResource()
The resource for the metrics in this message.
public
setResource(Resource $var) : $this
If this field is not set then no resource info is known.
Generated from protobuf field .opentelemetry.proto.resource.v1.Resource resource = 1;
Parameters
- $var : Resource
Return values
$thissetSchemaUrl()
The Schema URL, if known. This is the identifier of the Schema that the resource data is recorded in. Notably, the last part of the URL path is the version number of the schema: http[s]://server[:port]/path/<version>. To learn more about Schema URL see https://opentelemetry.io/docs/specs/otel/schemas/#schema-url This schema_url applies to the data in the "resource" field. It does not apply to the data in the "scope_metrics" field which have their own schema_url field.
public
setSchemaUrl(string $var) : $this
Generated from protobuf field string schema_url = 3;
Parameters
- $var : string
Return values
$thissetScopeMetrics()
A list of metrics that originate from a resource.
public
setScopeMetrics(array<string|int, ScopeMetrics>|RepeatedField $var) : $this
Generated from protobuf field repeated .opentelemetry.proto.metrics.v1.ScopeMetrics scope_metrics = 2;
Parameters
- $var : array<string|int, ScopeMetrics>|RepeatedField