public sealed class LogEntry : IMessage<LogEntry>, IEquatable<LogEntry>, IDeepCloneable<LogEntry>, IBufferMessage, IMessage
Reference documentation and code samples for the Service Control v1 API class LogEntry.
An individual log entry.
Namespace
Google.Cloud.ServiceControl.V1Assembly
Google.Cloud.ServiceControl.V1.dll
Constructors
LogEntry()
public LogEntry()
LogEntry(LogEntry)
public LogEntry(LogEntry other)
Parameter | |
---|---|
Name | Description |
other |
LogEntry |
Properties
HasTextPayload
public bool HasTextPayload { get; }
Gets whether the "text_payload" field is set
Property Value | |
---|---|
Type | Description |
bool |
HttpRequest
public HttpRequest HttpRequest { get; set; }
Optional. Information about the HTTP request associated with this log entry, if applicable.
Property Value | |
---|---|
Type | Description |
HttpRequest |
InsertId
public string InsertId { get; set; }
A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id.
Property Value | |
---|---|
Type | Description |
string |
Labels
public MapField<string, string> Labels { get; }
A set of user-defined (key, value) data that provides additional information about the log entry.
Property Value | |
---|---|
Type | Description |
MapFieldstringstring |
Name
public string Name { get; set; }
Required. The log to which this log entry belongs. Examples: "syslog"
,
"book_log"
.
Property Value | |
---|---|
Type | Description |
string |
Operation
public LogEntryOperation Operation { get; set; }
Optional. Information about an operation associated with the log entry, if applicable.
Property Value | |
---|---|
Type | Description |
LogEntryOperation |
PayloadCase
public LogEntry.PayloadOneofCase PayloadCase { get; }
Property Value | |
---|---|
Type | Description |
LogEntryPayloadOneofCase |
ProtoPayload
public Any ProtoPayload { get; set; }
The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is [AuditLog][google.cloud.audit.AuditLog].
Property Value | |
---|---|
Type | Description |
Any |
Severity
public LogSeverity Severity { get; set; }
The severity of the log entry. The default value is
LogSeverity.DEFAULT
.
Property Value | |
---|---|
Type | Description |
LogSeverity |
SourceLocation
public LogEntrySourceLocation SourceLocation { get; set; }
Optional. Source code location information associated with the log entry, if any.
Property Value | |
---|---|
Type | Description |
LogEntrySourceLocation |
StructPayload
public Struct StructPayload { get; set; }
The log entry payload, represented as a structure that is expressed as a JSON object.
Property Value | |
---|---|
Type | Description |
Struct |
TextPayload
public string TextPayload { get; set; }
The log entry payload, represented as a Unicode string (UTF-8).
Property Value | |
---|---|
Type | Description |
string |
Timestamp
public Timestamp Timestamp { get; set; }
The time the event described by the log entry occurred. If omitted, defaults to operation start time.
Property Value | |
---|---|
Type | Description |
Timestamp |
Trace
public string Trace { get; set; }
Optional. Resource name of the trace associated with the log entry, if any.
If this field contains a relative resource name, you can assume the name is
relative to //tracing.googleapis.com
. Example:
projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824
Property Value | |
---|---|
Type | Description |
string |