public static final class LogData.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder> implements LogDataOrBuilder
Log data is collected through file scratcher of agent. Natively, Satellite provides various ways to collect logs.Protobuf type
skywalking.v3.LogData| Modifier and Type | Method and Description |
|---|---|
LogData.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
LogData |
build() |
LogData |
buildPartial() |
LogData.Builder |
clear() |
LogData.Builder |
clearBody()
[Required] The content of the log.
|
LogData.Builder |
clearEndpoint()
[Optional] **Endpoint**.
|
LogData.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
LogData.Builder |
clearLayer()
[Optional] Since 9.0.0
The layer of the service and servce instance.
|
LogData.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
LogData.Builder |
clearService()
[Required] **Service**.
|
LogData.Builder |
clearServiceInstance()
[Optional] **Service Instance**.
|
LogData.Builder |
clearTags()
[Optional] The available tags.
|
LogData.Builder |
clearTimestamp()
[Optional] The timestamp of the log, in millisecond.
|
LogData.Builder |
clearTraceContext()
[Optional] Logs with trace context
|
LogData.Builder |
clone() |
LogDataBody |
getBody()
[Required] The content of the log.
|
LogDataBody.Builder |
getBodyBuilder()
[Required] The content of the log.
|
LogDataBodyOrBuilder |
getBodyOrBuilder()
[Required] The content of the log.
|
LogData |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getEndpoint()
[Optional] **Endpoint**.
|
com.google.protobuf.ByteString |
getEndpointBytes()
[Optional] **Endpoint**.
|
String |
getLayer()
[Optional] Since 9.0.0
The layer of the service and servce instance.
|
com.google.protobuf.ByteString |
getLayerBytes()
[Optional] Since 9.0.0
The layer of the service and servce instance.
|
String |
getService()
[Required] **Service**.
|
com.google.protobuf.ByteString |
getServiceBytes()
[Required] **Service**.
|
String |
getServiceInstance()
[Optional] **Service Instance**.
|
com.google.protobuf.ByteString |
getServiceInstanceBytes()
[Optional] **Service Instance**.
|
LogTags |
getTags()
[Optional] The available tags.
|
LogTags.Builder |
getTagsBuilder()
[Optional] The available tags.
|
LogTagsOrBuilder |
getTagsOrBuilder()
[Optional] The available tags.
|
long |
getTimestamp()
[Optional] The timestamp of the log, in millisecond.
|
TraceContext |
getTraceContext()
[Optional] Logs with trace context
|
TraceContext.Builder |
getTraceContextBuilder()
[Optional] Logs with trace context
|
TraceContextOrBuilder |
getTraceContextOrBuilder()
[Optional] Logs with trace context
|
boolean |
hasBody()
[Required] The content of the log.
|
boolean |
hasTags()
[Optional] The available tags.
|
boolean |
hasTraceContext()
[Optional] Logs with trace context
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
LogData.Builder |
mergeBody(LogDataBody value)
[Required] The content of the log.
|
LogData.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
LogData.Builder |
mergeFrom(LogData other) |
LogData.Builder |
mergeFrom(com.google.protobuf.Message other) |
LogData.Builder |
mergeTags(LogTags value)
[Optional] The available tags.
|
LogData.Builder |
mergeTraceContext(TraceContext value)
[Optional] Logs with trace context
|
LogData.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LogData.Builder |
setBody(LogDataBody.Builder builderForValue)
[Required] The content of the log.
|
LogData.Builder |
setBody(LogDataBody value)
[Required] The content of the log.
|
LogData.Builder |
setEndpoint(String value)
[Optional] **Endpoint**.
|
LogData.Builder |
setEndpointBytes(com.google.protobuf.ByteString value)
[Optional] **Endpoint**.
|
LogData.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
LogData.Builder |
setLayer(String value)
[Optional] Since 9.0.0
The layer of the service and servce instance.
|
LogData.Builder |
setLayerBytes(com.google.protobuf.ByteString value)
[Optional] Since 9.0.0
The layer of the service and servce instance.
|
LogData.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
LogData.Builder |
setService(String value)
[Required] **Service**.
|
LogData.Builder |
setServiceBytes(com.google.protobuf.ByteString value)
[Required] **Service**.
|
LogData.Builder |
setServiceInstance(String value)
[Optional] **Service Instance**.
|
LogData.Builder |
setServiceInstanceBytes(com.google.protobuf.ByteString value)
[Optional] **Service Instance**.
|
LogData.Builder |
setTags(LogTags.Builder builderForValue)
[Optional] The available tags.
|
LogData.Builder |
setTags(LogTags value)
[Optional] The available tags.
|
LogData.Builder |
setTimestamp(long value)
[Optional] The timestamp of the log, in millisecond.
|
LogData.Builder |
setTraceContext(TraceContext.Builder builderForValue)
[Optional] Logs with trace context
|
LogData.Builder |
setTraceContext(TraceContext value)
[Optional] Logs with trace context
|
LogData.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>public LogData.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>public LogData getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic LogData build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic LogData buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic LogData.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>public LogData.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>public LogData.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>public LogData.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>public LogData.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>public LogData.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>public LogData.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<LogData.Builder>public LogData.Builder mergeFrom(LogData other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>public LogData.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<LogData.Builder>IOExceptionpublic long getTimestamp()
[Optional] The timestamp of the log, in millisecond. If not set, OAP server would use the received timestamp as log's timestamp, or relies on the OAP server analyzer.
int64 timestamp = 1;getTimestamp in interface LogDataOrBuilderpublic LogData.Builder setTimestamp(long value)
[Optional] The timestamp of the log, in millisecond. If not set, OAP server would use the received timestamp as log's timestamp, or relies on the OAP server analyzer.
int64 timestamp = 1;value - The timestamp to set.public LogData.Builder clearTimestamp()
[Optional] The timestamp of the log, in millisecond. If not set, OAP server would use the received timestamp as log's timestamp, or relies on the OAP server analyzer.
int64 timestamp = 1;public String getService()
[Required] **Service**. Represents a set/group of workloads which provide the same behaviours for incoming requests. The logic name represents the service. This would show as a separate node in the topology. The metrics analyzed from the spans, would be aggregated for this entity as the service level. If this is not the first element of the streaming, use the previous not-null name as the service name.
string service = 2;getService in interface LogDataOrBuilderpublic com.google.protobuf.ByteString getServiceBytes()
[Required] **Service**. Represents a set/group of workloads which provide the same behaviours for incoming requests. The logic name represents the service. This would show as a separate node in the topology. The metrics analyzed from the spans, would be aggregated for this entity as the service level. If this is not the first element of the streaming, use the previous not-null name as the service name.
string service = 2;getServiceBytes in interface LogDataOrBuilderpublic LogData.Builder setService(String value)
[Required] **Service**. Represents a set/group of workloads which provide the same behaviours for incoming requests. The logic name represents the service. This would show as a separate node in the topology. The metrics analyzed from the spans, would be aggregated for this entity as the service level. If this is not the first element of the streaming, use the previous not-null name as the service name.
string service = 2;value - The service to set.public LogData.Builder clearService()
[Required] **Service**. Represents a set/group of workloads which provide the same behaviours for incoming requests. The logic name represents the service. This would show as a separate node in the topology. The metrics analyzed from the spans, would be aggregated for this entity as the service level. If this is not the first element of the streaming, use the previous not-null name as the service name.
string service = 2;public LogData.Builder setServiceBytes(com.google.protobuf.ByteString value)
[Required] **Service**. Represents a set/group of workloads which provide the same behaviours for incoming requests. The logic name represents the service. This would show as a separate node in the topology. The metrics analyzed from the spans, would be aggregated for this entity as the service level. If this is not the first element of the streaming, use the previous not-null name as the service name.
string service = 2;value - The bytes for service to set.public String getServiceInstance()
[Optional] **Service Instance**. Each individual workload in the Service group is known as an instance. Like `pods` in Kubernetes, it doesn't need to be a single OS process, however, if you are using instrument agents, an instance is actually a real OS process. The logic name represents the service instance. This would show as a separate node in the instance relationship. The metrics analyzed from the spans, would be aggregated for this entity as the service instance level.
string serviceInstance = 3;getServiceInstance in interface LogDataOrBuilderpublic com.google.protobuf.ByteString getServiceInstanceBytes()
[Optional] **Service Instance**. Each individual workload in the Service group is known as an instance. Like `pods` in Kubernetes, it doesn't need to be a single OS process, however, if you are using instrument agents, an instance is actually a real OS process. The logic name represents the service instance. This would show as a separate node in the instance relationship. The metrics analyzed from the spans, would be aggregated for this entity as the service instance level.
string serviceInstance = 3;getServiceInstanceBytes in interface LogDataOrBuilderpublic LogData.Builder setServiceInstance(String value)
[Optional] **Service Instance**. Each individual workload in the Service group is known as an instance. Like `pods` in Kubernetes, it doesn't need to be a single OS process, however, if you are using instrument agents, an instance is actually a real OS process. The logic name represents the service instance. This would show as a separate node in the instance relationship. The metrics analyzed from the spans, would be aggregated for this entity as the service instance level.
string serviceInstance = 3;value - The serviceInstance to set.public LogData.Builder clearServiceInstance()
[Optional] **Service Instance**. Each individual workload in the Service group is known as an instance. Like `pods` in Kubernetes, it doesn't need to be a single OS process, however, if you are using instrument agents, an instance is actually a real OS process. The logic name represents the service instance. This would show as a separate node in the instance relationship. The metrics analyzed from the spans, would be aggregated for this entity as the service instance level.
string serviceInstance = 3;public LogData.Builder setServiceInstanceBytes(com.google.protobuf.ByteString value)
[Optional] **Service Instance**. Each individual workload in the Service group is known as an instance. Like `pods` in Kubernetes, it doesn't need to be a single OS process, however, if you are using instrument agents, an instance is actually a real OS process. The logic name represents the service instance. This would show as a separate node in the instance relationship. The metrics analyzed from the spans, would be aggregated for this entity as the service instance level.
string serviceInstance = 3;value - The bytes for serviceInstance to set.public String getEndpoint()
[Optional] **Endpoint**. A path in a service for incoming requests, such as an HTTP URI path or a gRPC service class + method signature. The logic name represents the endpoint, which logs belong.
string endpoint = 4;getEndpoint in interface LogDataOrBuilderpublic com.google.protobuf.ByteString getEndpointBytes()
[Optional] **Endpoint**. A path in a service for incoming requests, such as an HTTP URI path or a gRPC service class + method signature. The logic name represents the endpoint, which logs belong.
string endpoint = 4;getEndpointBytes in interface LogDataOrBuilderpublic LogData.Builder setEndpoint(String value)
[Optional] **Endpoint**. A path in a service for incoming requests, such as an HTTP URI path or a gRPC service class + method signature. The logic name represents the endpoint, which logs belong.
string endpoint = 4;value - The endpoint to set.public LogData.Builder clearEndpoint()
[Optional] **Endpoint**. A path in a service for incoming requests, such as an HTTP URI path or a gRPC service class + method signature. The logic name represents the endpoint, which logs belong.
string endpoint = 4;public LogData.Builder setEndpointBytes(com.google.protobuf.ByteString value)
[Optional] **Endpoint**. A path in a service for incoming requests, such as an HTTP URI path or a gRPC service class + method signature. The logic name represents the endpoint, which logs belong.
string endpoint = 4;value - The bytes for endpoint to set.public boolean hasBody()
[Required] The content of the log.
.skywalking.v3.LogDataBody body = 5;hasBody in interface LogDataOrBuilderpublic LogDataBody getBody()
[Required] The content of the log.
.skywalking.v3.LogDataBody body = 5;getBody in interface LogDataOrBuilderpublic LogData.Builder setBody(LogDataBody value)
[Required] The content of the log.
.skywalking.v3.LogDataBody body = 5;public LogData.Builder setBody(LogDataBody.Builder builderForValue)
[Required] The content of the log.
.skywalking.v3.LogDataBody body = 5;public LogData.Builder mergeBody(LogDataBody value)
[Required] The content of the log.
.skywalking.v3.LogDataBody body = 5;public LogData.Builder clearBody()
[Required] The content of the log.
.skywalking.v3.LogDataBody body = 5;public LogDataBody.Builder getBodyBuilder()
[Required] The content of the log.
.skywalking.v3.LogDataBody body = 5;public LogDataBodyOrBuilder getBodyOrBuilder()
[Required] The content of the log.
.skywalking.v3.LogDataBody body = 5;getBodyOrBuilder in interface LogDataOrBuilderpublic boolean hasTraceContext()
[Optional] Logs with trace context
.skywalking.v3.TraceContext traceContext = 6;hasTraceContext in interface LogDataOrBuilderpublic TraceContext getTraceContext()
[Optional] Logs with trace context
.skywalking.v3.TraceContext traceContext = 6;getTraceContext in interface LogDataOrBuilderpublic LogData.Builder setTraceContext(TraceContext value)
[Optional] Logs with trace context
.skywalking.v3.TraceContext traceContext = 6;public LogData.Builder setTraceContext(TraceContext.Builder builderForValue)
[Optional] Logs with trace context
.skywalking.v3.TraceContext traceContext = 6;public LogData.Builder mergeTraceContext(TraceContext value)
[Optional] Logs with trace context
.skywalking.v3.TraceContext traceContext = 6;public LogData.Builder clearTraceContext()
[Optional] Logs with trace context
.skywalking.v3.TraceContext traceContext = 6;public TraceContext.Builder getTraceContextBuilder()
[Optional] Logs with trace context
.skywalking.v3.TraceContext traceContext = 6;public TraceContextOrBuilder getTraceContextOrBuilder()
[Optional] Logs with trace context
.skywalking.v3.TraceContext traceContext = 6;getTraceContextOrBuilder in interface LogDataOrBuilderpublic boolean hasTags()
[Optional] The available tags. OAP server could provide search/analysis capabilities based on these.
.skywalking.v3.LogTags tags = 7;hasTags in interface LogDataOrBuilderpublic LogTags getTags()
[Optional] The available tags. OAP server could provide search/analysis capabilities based on these.
.skywalking.v3.LogTags tags = 7;getTags in interface LogDataOrBuilderpublic LogData.Builder setTags(LogTags value)
[Optional] The available tags. OAP server could provide search/analysis capabilities based on these.
.skywalking.v3.LogTags tags = 7;public LogData.Builder setTags(LogTags.Builder builderForValue)
[Optional] The available tags. OAP server could provide search/analysis capabilities based on these.
.skywalking.v3.LogTags tags = 7;public LogData.Builder mergeTags(LogTags value)
[Optional] The available tags. OAP server could provide search/analysis capabilities based on these.
.skywalking.v3.LogTags tags = 7;public LogData.Builder clearTags()
[Optional] The available tags. OAP server could provide search/analysis capabilities based on these.
.skywalking.v3.LogTags tags = 7;public LogTags.Builder getTagsBuilder()
[Optional] The available tags. OAP server could provide search/analysis capabilities based on these.
.skywalking.v3.LogTags tags = 7;public LogTagsOrBuilder getTagsOrBuilder()
[Optional] The available tags. OAP server could provide search/analysis capabilities based on these.
.skywalking.v3.LogTags tags = 7;getTagsOrBuilder in interface LogDataOrBuilderpublic String getLayer()
[Optional] Since 9.0.0 The layer of the service and servce instance. If absent, the OAP would set `layer`=`ID: 2, NAME: general`
string layer = 8;getLayer in interface LogDataOrBuilderpublic com.google.protobuf.ByteString getLayerBytes()
[Optional] Since 9.0.0 The layer of the service and servce instance. If absent, the OAP would set `layer`=`ID: 2, NAME: general`
string layer = 8;getLayerBytes in interface LogDataOrBuilderpublic LogData.Builder setLayer(String value)
[Optional] Since 9.0.0 The layer of the service and servce instance. If absent, the OAP would set `layer`=`ID: 2, NAME: general`
string layer = 8;value - The layer to set.public LogData.Builder clearLayer()
[Optional] Since 9.0.0 The layer of the service and servce instance. If absent, the OAP would set `layer`=`ID: 2, NAME: general`
string layer = 8;public LogData.Builder setLayerBytes(com.google.protobuf.ByteString value)
[Optional] Since 9.0.0 The layer of the service and servce instance. If absent, the OAP would set `layer`=`ID: 2, NAME: general`
string layer = 8;value - The bytes for layer to set.public final LogData.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>public final LogData.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>Copyright © 2022 The Apache Software Foundation. All rights reserved.