ResourceLogs
extends Message
in package
A collection of ScopeLogs from a Resource.
Generated from protobuf message opentelemetry.proto.logs.v1.ResourceLogs
Table of Contents
Properties
- $resource : mixed
- The resource for the logs 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. 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_logs" field which have their own schema_url field.
- $scope_logs : mixed
- A list of ScopeLogs that originate from a resource.
Methods
- __construct() : mixed
- Constructor.
- clearResource() : mixed
- getResource() : Resource|null
- The resource for the logs in this message.
- getSchemaUrl() : string
- The Schema URL, if known. This is the identifier of the Schema that the resource data is recorded in. 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_logs" field which have their own schema_url field.
- getScopeLogs() : RepeatedField
- A list of ScopeLogs that originate from a resource.
- hasResource() : mixed
- setResource() : $this
- The resource for the logs in this message.
- setSchemaUrl() : $this
- The Schema URL, if known. This is the identifier of the Schema that the resource data is recorded in. 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_logs" field which have their own schema_url field.
- setScopeLogs() : $this
- A list of ScopeLogs that originate from a resource.
Properties
$resource
The resource for the logs in this message.
protected
mixed
$resource
= null
If this field is not set then resource info is unknown.
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. 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_logs" field which have their own schema_url field.
protected
mixed
$schema_url
= ''
Generated from protobuf field string schema_url = 3;
$scope_logs
A list of ScopeLogs that originate from a resource.
private
mixed
$scope_logs
Generated from protobuf field repeated .opentelemetry.proto.logs.v1.ScopeLogs scope_logs = 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 logs in this message. If this field is not set then resource info is unknown. @type \Opentelemetry\Proto\Logs\V1\ScopeLogs[]|\Google\Protobuf\Internal\RepeatedField $scope_logs A list of ScopeLogs 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. 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_logs" field which have their own schema_url field.
}
clearResource()
public
clearResource() : mixed
getResource()
The resource for the logs in this message.
public
getResource() : Resource|null
If this field is not set then resource info is unknown.
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. 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_logs" field which have their own schema_url field.
public
getSchemaUrl() : string
Generated from protobuf field string schema_url = 3;
Return values
stringgetScopeLogs()
A list of ScopeLogs that originate from a resource.
public
getScopeLogs() : RepeatedField
Generated from protobuf field repeated .opentelemetry.proto.logs.v1.ScopeLogs scope_logs = 2;
Return values
RepeatedFieldhasResource()
public
hasResource() : mixed
setResource()
The resource for the logs in this message.
public
setResource(Resource $var) : $this
If this field is not set then resource info is unknown.
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. 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_logs" 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
$thissetScopeLogs()
A list of ScopeLogs that originate from a resource.
public
setScopeLogs(array<string|int, ScopeLogs>|RepeatedField $var) : $this
Generated from protobuf field repeated .opentelemetry.proto.logs.v1.ScopeLogs scope_logs = 2;
Parameters
- $var : array<string|int, ScopeLogs>|RepeatedField