Show / Hide Table of Contents

Class V2LogEntry

An individual log entry.

Inheritance
object
V2LogEntry
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.ServiceControl.v2.Data
Assembly: Google.Apis.ServiceControl.v2.dll
Syntax
public class V2LogEntry : IDirectResponseSchema

Properties

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

HttpRequest

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

Declaration
[JsonProperty("httpRequest")]
public virtual V2HttpRequest HttpRequest { get; set; }
Property Value
Type Description
V2HttpRequest

InsertId

A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id.

Declaration
[JsonProperty("insertId")]
public virtual string InsertId { get; set; }
Property Value
Type Description
string

Labels

A set of user-defined (key, value) data that provides additional information about the log entry.

Declaration
[JsonProperty("labels")]
public virtual IDictionary<string, string> Labels { get; set; }
Property Value
Type Description
IDictionary<string, string>

MonitoredResourceLabels

A set of user-defined (key, value) data that provides additional information about the moniotored resource that the log entry belongs to.

Declaration
[JsonProperty("monitoredResourceLabels")]
public virtual IDictionary<string, string> MonitoredResourceLabels { get; set; }
Property Value
Type Description
IDictionary<string, string>

Name

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

Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type Description
string

Operation

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

Declaration
[JsonProperty("operation")]
public virtual V2LogEntryOperation Operation { get; set; }
Property Value
Type Description
V2LogEntryOperation

ProtoPayload

The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is AuditLog.

Declaration
[JsonProperty("protoPayload")]
public virtual IDictionary<string, object> ProtoPayload { get; set; }
Property Value
Type Description
IDictionary<string, object>

Severity

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

Declaration
[JsonProperty("severity")]
public virtual string Severity { get; set; }
Property Value
Type Description
string

SourceLocation

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

Declaration
[JsonProperty("sourceLocation")]
public virtual V2LogEntrySourceLocation SourceLocation { get; set; }
Property Value
Type Description
V2LogEntrySourceLocation

StructPayload

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

Declaration
[JsonProperty("structPayload")]
public virtual IDictionary<string, object> StructPayload { get; set; }
Property Value
Type Description
IDictionary<string, object>

TextPayload

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

Declaration
[JsonProperty("textPayload")]
public virtual string TextPayload { get; set; }
Property Value
Type Description
string

Timestamp

object representation of TimestampRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use TimestampDateTimeOffset instead.")]
public virtual object Timestamp { get; set; }
Property Value
Type Description
object

TimestampDateTimeOffset

DateTimeOffset representation of TimestampRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? TimestampDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

TimestampRaw

The time the event described by the log entry occurred. If omitted, defaults to operation start time.

Declaration
[JsonProperty("timestamp")]
public virtual string TimestampRaw { get; set; }
Property Value
Type Description
string

Trace

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

Declaration
[JsonProperty("trace")]
public virtual string Trace { get; set; }
Property Value
Type Description
string

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX