接口 LogDataOrBuilder
- 所有超级接口:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- 所有已知实现类:
LogData,LogData.Builder
public interface LogDataOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
方法概要
修饰符和类型方法说明getBody()[Required] The content of the log.[Required] The content of the log.[Optional] **Endpoint**.com.google.protobuf.ByteString[Optional] **Endpoint**.getLayer()[Optional] Since 9.0.0 The layer of the service and servce instance.com.google.protobuf.ByteString[Optional] Since 9.0.0 The layer of the service and servce instance.[Required] **Service**.com.google.protobuf.ByteString[Required] **Service**.[Optional] **Service Instance**.com.google.protobuf.ByteString[Optional] **Service Instance**.getTags()[Optional] The available tags.[Optional] The available tags.long[Optional] The timestamp of the log, in millisecond.[Optional] Logs with trace context[Optional] Logs with trace contextbooleanhasBody()[Required] The content of the log.booleanhasTags()[Optional] The available tags.boolean[Optional] Logs with trace context从接口继承的方法 com.google.protobuf.MessageLiteOrBuilder
isInitialized从接口继承的方法 com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
方法详细资料
-
getTimestamp
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;- 返回:
- The timestamp.
-
getService
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;- 返回:
- The service.
-
getServiceBytes
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;- 返回:
- The bytes for service.
-
getServiceInstance
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;- 返回:
- The serviceInstance.
-
getServiceInstanceBytes
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;- 返回:
- The bytes for serviceInstance.
-
getEndpoint
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;- 返回:
- The endpoint.
-
getEndpointBytes
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;- 返回:
- The bytes for endpoint.
-
hasBody
boolean hasBody()[Required] The content of the log.
.skywalking.v3.LogDataBody body = 5;- 返回:
- Whether the body field is set.
-
getBody
LogDataBody getBody()[Required] The content of the log.
.skywalking.v3.LogDataBody body = 5;- 返回:
- The body.
-
getBodyOrBuilder
LogDataBodyOrBuilder getBodyOrBuilder()[Required] The content of the log.
.skywalking.v3.LogDataBody body = 5; -
hasTraceContext
boolean hasTraceContext()[Optional] Logs with trace context
.skywalking.v3.TraceContext traceContext = 6;- 返回:
- Whether the traceContext field is set.
-
getTraceContext
TraceContext getTraceContext()[Optional] Logs with trace context
.skywalking.v3.TraceContext traceContext = 6;- 返回:
- The traceContext.
-
getTraceContextOrBuilder
TraceContextOrBuilder getTraceContextOrBuilder()[Optional] Logs with trace context
.skywalking.v3.TraceContext traceContext = 6; -
hasTags
boolean hasTags()[Optional] The available tags. OAP server could provide search/analysis capabilities based on these.
.skywalking.v3.LogTags tags = 7;- 返回:
- Whether the tags field is set.
-
getTags
LogTags getTags()[Optional] The available tags. OAP server could provide search/analysis capabilities based on these.
.skywalking.v3.LogTags tags = 7;- 返回:
- The tags.
-
getTagsOrBuilder
LogTagsOrBuilder getTagsOrBuilder()[Optional] The available tags. OAP server could provide search/analysis capabilities based on these.
.skywalking.v3.LogTags tags = 7; -
getLayer
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;- 返回:
- The layer.
-
getLayerBytes
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;- 返回:
- The bytes for layer.
-