Class V1LogEntry
An individual log entry.
Implements
Inherited Members
Namespace: Google.Apis.ServiceControl.v1.Data
Assembly: Google.Apis.ServiceControl.v1.dll
Syntax
public class V1LogEntry : 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 V1HttpRequest HttpRequest { get; set; }
Property Value
Type | Description |
---|---|
V1HttpRequest |
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 V1LogEntryOperation Operation { get; set; }
Property Value
Type | Description |
---|---|
V1LogEntryOperation |
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 V1LogEntrySourceLocation SourceLocation { get; set; }
Property Value
Type | Description |
---|---|
V1LogEntrySourceLocation |
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 |