Class LogEntry (1.0.0)

public sealed class LogEntry : IMessage<LogEntry>, IEquatable<LogEntry>, IDeepCloneable<LogEntry>, IBufferMessage, IMessage

An individual log entry.

Inheritance

System.Object > LogEntry

Implements

Google.Protobuf.IMessage<LogEntry>, System.IEquatable<LogEntry>, Google.Protobuf.IDeepCloneable<LogEntry>, Google.Protobuf.IBufferMessage, Google.Protobuf.IMessage

Namespace

Google.Cloud.ServiceControl.V1

Assembly

Google.Cloud.ServiceControl.V1.dll

Constructors

LogEntry()

public LogEntry()

LogEntry(LogEntry)

public LogEntry(LogEntry other)
Parameter
NameDescription
otherLogEntry

Properties

HttpRequest

public HttpRequest HttpRequest { get; set; }

Optional. Information about the HTTP request associated with this log entry, if applicable.

Property Value
TypeDescription
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
TypeDescription
System.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
TypeDescription
Google.Protobuf.Collections.MapField<System.String, System.String>

Name

public string Name { get; set; }

Required. The log to which this log entry belongs. Examples: &quot;syslog&quot;, &quot;book_log&quot;.

Property Value
TypeDescription
System.String

Operation

public LogEntryOperation Operation { get; set; }

Optional. Information about an operation associated with the log entry, if applicable.

Property Value
TypeDescription
LogEntryOperation

PayloadCase

public LogEntry.PayloadOneofCase PayloadCase { get; }
Property Value
TypeDescription
LogEntry.PayloadOneofCase

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
TypeDescription
Google.Protobuf.WellKnownTypes.Any

Severity

public LogSeverity Severity { get; set; }

The severity of the log entry. The default value is LogSeverity.DEFAULT.

Property Value
TypeDescription
Google.Cloud.Logging.Type.LogSeverity

SourceLocation

public LogEntrySourceLocation SourceLocation { get; set; }

Optional. Source code location information associated with the log entry, if any.

Property Value
TypeDescription
LogEntrySourceLocation

StructPayload

public Struct StructPayload { get; set; }

The log entry payload, represented as a structure that is expressed as a JSON object.

Property Value
TypeDescription
Google.Protobuf.WellKnownTypes.Struct

TextPayload

public string TextPayload { get; set; }

The log entry payload, represented as a Unicode string (UTF-8).

Property Value
TypeDescription
System.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
TypeDescription
Google.Protobuf.WellKnownTypes.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
TypeDescription
System.String