Service Control v1 API - Class LogEntry (2.2.0)

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.

Inheritance

object > LogEntry

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

HasTextPayload

public bool HasTextPayload { get; }

Gets whether the "text_payload" field is set

Property Value
TypeDescription
bool

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
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
MapFieldstringstring

Name

public string Name { get; set; }

Required. The log to which this log entry belongs. Examples: "syslog", "book_log".

Property Value
TypeDescription
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
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
TypeDescription
Any

Severity

public LogSeverity Severity { get; set; }

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

Property Value
TypeDescription
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
Struct

TextPayload

public string TextPayload { get; set; }

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

Property Value
TypeDescription
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
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
string