Class LogRecord
- Namespace
- Temporalio.Api.Cloud.AuditLog.V1
- Assembly
- Temporalio.dll
LogRecord represents an audit log entry from Temporal, structured for easy parsing and analysis.
public sealed class LogRecord : IMessage<LogRecord>, IEquatable<LogRecord>, IDeepCloneable<LogRecord>, IBufferMessage, IMessage
- Inheritance
-
LogRecord
- Inherited Members
Constructors
LogRecord()
public LogRecord()
LogRecord(LogRecord)
public LogRecord(LogRecord other)
Parameters
otherLogRecord
Fields
AsyncOperationIdFieldNumber
Field number for the "async_operation_id" field.
public const int AsyncOperationIdFieldNumber = 15
Field Value
EmitTimeFieldNumber
Field number for the "emit_time" field.
public const int EmitTimeFieldNumber = 1
Field Value
LogIdFieldNumber
Field number for the "log_id" field.
public const int LogIdFieldNumber = 10
Field Value
OperationFieldNumber
Field number for the "operation" field.
public const int OperationFieldNumber = 5
Field Value
PrincipalFieldNumber
Field number for the "principal" field.
public const int PrincipalFieldNumber = 12
Field Value
RawDetailsFieldNumber
Field number for the "raw_details" field.
public const int RawDetailsFieldNumber = 13
Field Value
StatusFieldNumber
Field number for the "status" field.
public const int StatusFieldNumber = 7
Field Value
VersionFieldNumber
Field number for the "version" field.
public const int VersionFieldNumber = 9
Field Value
XForwardedForFieldNumber
Field number for the "x_forwarded_for" field.
public const int XForwardedForFieldNumber = 14
Field Value
Properties
AsyncOperationId
The ID of the async operation.
public string AsyncOperationId { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
EmitTime
Time when the log was emitted.
public Timestamp EmitTime { get; set; }
Property Value
- Timestamp
LogId
Unique ID for the log record.
public string LogId { get; set; }
Property Value
Operation
The operation performed.
public string Operation { get; set; }
Property Value
Parser
public static MessageParser<LogRecord> Parser { get; }
Property Value
- MessageParser<LogRecord>
Principal
The principal that performed the operation.
public Principal Principal { get; set; }
Property Value
RawDetails
The raw details of the operation.
public Struct RawDetails { get; set; }
Property Value
- Struct
Status
The status of the operation.
public string Status { get; set; }
Property Value
Version
The internal version of the log message. Can be used in deduplication if needed.
public int Version { get; set; }
Property Value
XForwardedFor
The originating IP address of the request.
public string XForwardedFor { get; set; }
Property Value
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
- int
The number of bytes required to write this message to a coded output stream.
Clone()
Creates a deep clone of this object.
public LogRecord Clone()
Returns
- LogRecord
A deep clone of this object.
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object other)
Parameters
otherobject
Returns
Equals(LogRecord)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(LogRecord other)
Parameters
otherLogRecordAn object to compare with this object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
inputCodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(LogRecord)
Merges the given message into this one.
public void MergeFrom(LogRecord other)
Parameters
otherLogRecord
Remarks
See the user guide for precise merge semantics.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
outputCodedOutputStreamCoded output stream to write the data to. Must not be null.