Package feast.common.logging.entry
Class MessageAuditLogEntry
- java.lang.Object
-
- feast.common.logging.entry.AuditLogEntry
-
- feast.common.logging.entry.MessageAuditLogEntry
-
public abstract class MessageAuditLogEntry extends AuditLogEntry
MessageAuditLogEntry records the handling of a Protobuf message by a service call.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMessageAuditLogEntry.Builder
-
Field Summary
-
Fields inherited from class feast.common.logging.entry.AuditLogEntry
application, logType
-
-
Constructor Summary
Constructors Constructor Description MessageAuditLogEntry()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract UUIDgetId()Id used to identify the service call that the log entry is recordingabstract StringgetIdentity()The authenticated identity that was assumed during the handling of the service call.abstract StringgetMethod()The name of the method that was used to handle the service call.abstract com.google.protobuf.MessagegetRequest()The request ProtobufMessagethat was passed to the Service in the service call.abstract com.google.protobuf.MessagegetResponse()The response ProtobufMessagethat was passed to the Service in the service call.abstract StringgetService()The name of the service that was used to handle the service call.abstract io.grpc.Status.CodegetStatusCode()The result status code of the service call.static MessageAuditLogEntry.BuildernewBuilder()StringtoJSON()Return a structured JSON representation of thisAuditLogEntry-
Methods inherited from class feast.common.logging.entry.AuditLogEntry
getComponent, getKind, getVersion
-
-
-
-
Method Detail
-
getId
public abstract UUID getId()
Id used to identify the service call that the log entry is recording
-
getService
public abstract String getService()
The name of the service that was used to handle the service call.
-
getMethod
public abstract String getMethod()
The name of the method that was used to handle the service call.
-
getRequest
public abstract com.google.protobuf.Message getRequest()
The request ProtobufMessagethat was passed to the Service in the service call.
-
getResponse
public abstract com.google.protobuf.Message getResponse()
The response ProtobufMessagethat was passed to the Service in the service call. May be anEmptyprotobuf no request could be collected due to an error.
-
getIdentity
public abstract String getIdentity()
The authenticated identity that was assumed during the handling of the service call. For example, the user id or email that identifies the user making the call. Empty if the service call is not authenticated.
-
getStatusCode
public abstract io.grpc.Status.Code getStatusCode()
The result status code of the service call.
-
newBuilder
public static MessageAuditLogEntry.Builder newBuilder()
-
toJSON
public String toJSON()
Description copied from class:AuditLogEntryReturn a structured JSON representation of thisAuditLogEntry- Overrides:
toJSONin classAuditLogEntry
-
-