public final class LogData extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
LogData.Builder
Log data is collected through file scratcher of agent.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
BODY_FIELD_NUMBER |
static int |
ENDPOINT_FIELD_NUMBER |
static int |
LAYER_FIELD_NUMBER |
static int |
SERVICE_FIELD_NUMBER |
static int |
SERVICEINSTANCE_FIELD_NUMBER |
static int |
TAGS_FIELD_NUMBER |
static int |
TIMESTAMP_FIELD_NUMBER |
static int |
TRACECONTEXT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
LogDataBody |
getBody()
[Required] The content of the log.
|
LogDataBodyOrBuilder |
getBodyOrBuilder()
[Required] The content of the log.
|
static LogData |
getDefaultInstance() |
LogData |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.
|
com.google.protobuf.Parser<LogData> |
getParserForType() |
int |
getSerializedSize() |
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.
|
LogTagsOrBuilder |
getTagsOrBuilder()
[Optional] The available tags.
|
long |
getTimestamp()
[Optional] The timestamp of the log, in millisecond.
|
TraceContext |
getTraceContext()
[Optional] Logs with trace context
|
TraceContextOrBuilder |
getTraceContextOrBuilder()
[Optional] Logs with trace context
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasBody()
[Required] The content of the log.
|
int |
hashCode() |
boolean |
hasTags()
[Optional] The available tags.
|
boolean |
hasTraceContext()
[Optional] Logs with trace context
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static LogData.Builder |
newBuilder() |
static LogData.Builder |
newBuilder(LogData prototype) |
LogData.Builder |
newBuilderForType() |
protected LogData.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static LogData |
parseDelimitedFrom(InputStream input) |
static LogData |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LogData |
parseFrom(byte[] data) |
static LogData |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LogData |
parseFrom(ByteBuffer data) |
static LogData |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LogData |
parseFrom(com.google.protobuf.ByteString data) |
static LogData |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LogData |
parseFrom(com.google.protobuf.CodedInputStream input) |
static LogData |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LogData |
parseFrom(InputStream input) |
static LogData |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<LogData> |
parser() |
LogData.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TIMESTAMP_FIELD_NUMBER
public static final int SERVICE_FIELD_NUMBER
public static final int SERVICEINSTANCE_FIELD_NUMBER
public static final int ENDPOINT_FIELD_NUMBER
public static final int BODY_FIELD_NUMBER
public static final int TRACECONTEXT_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER
public static final int LAYER_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 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 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 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 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static LogData parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LogData parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LogData parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LogData parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LogData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LogData parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LogData parseFrom(InputStream input) throws IOException
IOExceptionpublic static LogData parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static LogData parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static LogData parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static LogData parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static LogData parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic LogData.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static LogData.Builder newBuilder()
public static LogData.Builder newBuilder(LogData prototype)
public LogData.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected LogData.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static LogData getDefaultInstance()
public static com.google.protobuf.Parser<LogData> parser()
public com.google.protobuf.Parser<LogData> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public LogData getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 The Apache Software Foundation. All rights reserved.