Reference documentation and code samples for the Google Cloud Service Control V1 Client class LogEntry.
An individual log entry.
Generated from protobuf message google.api.servicecontrol.v1.LogEntry
Namespace
Google \ Cloud \ ServiceControl \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. The log to which this log entry belongs. Examples: "syslog"
, "book_log"
.
↳ timestamp
Google\Protobuf\Timestamp
The time the event described by the log entry occurred. If omitted, defaults to operation start time.
↳ severity
int
The severity of the log entry. The default value is LogSeverity.DEFAULT
.
↳ http_request
HttpRequest
Optional. Information about the HTTP request associated with this log entry, if applicable.
↳ trace
string
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
↳ insert_id
string
A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id.
↳ labels
array| Google\Protobuf\Internal\MapField
A set of user-defined (key, value) data that provides additional information about the log entry.
↳ proto_payload
Google\Protobuf\Any
The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is AuditLog .
↳ text_payload
string
The log entry payload, represented as a Unicode string (UTF-8).
↳ struct_payload
Google\Protobuf\Struct
The log entry payload, represented as a structure that is expressed as a JSON object.
↳ operation
LogEntryOperation
Optional. Information about an operation associated with the log entry, if applicable.
↳ source_location
LogEntrySourceLocation
Optional. Source code location information associated with the log entry, if any.
getName
Required. The log to which this log entry belongs. Examples: "syslog"
, "book_log"
.
string
setName
Required. The log to which this log entry belongs. Examples: "syslog"
, "book_log"
.
var
string
$this
getTimestamp
The time the event described by the log entry occurred. If omitted, defaults to operation start time.
hasTimestamp
clearTimestamp
setTimestamp
The time the event described by the log entry occurred. If omitted, defaults to operation start time.
$this
getSeverity
The severity of the log entry. The default value is LogSeverity.DEFAULT
.
int
setSeverity
The severity of the log entry. The default value is LogSeverity.DEFAULT
.
var
int
$this
getHttpRequest
Optional. Information about the HTTP request associated with this log entry, if applicable.
hasHttpRequest
clearHttpRequest
setHttpRequest
Optional. Information about the HTTP request associated with this log entry, if applicable.
$this
getTrace
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
string
setTrace
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
var
string
$this
getInsertId
A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id.
string
setInsertId
A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id.
var
string
$this
getLabels
A set of user-defined (key, value) data that provides additional information about the log entry.
setLabels
A set of user-defined (key, value) data that provides additional information about the log entry.
$this
getProtoPayload
The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is AuditLog .
hasProtoPayload
setProtoPayload
The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is AuditLog .
$this
getTextPayload
The log entry payload, represented as a Unicode string (UTF-8).
string
hasTextPayload
setTextPayload
The log entry payload, represented as a Unicode string (UTF-8).
var
string
$this
getStructPayload
The log entry payload, represented as a structure that is expressed as a JSON object.
hasStructPayload
setStructPayload
The log entry payload, represented as a structure that is expressed as a JSON object.
$this
getOperation
Optional. Information about an operation associated with the log entry, if applicable.
hasOperation
clearOperation
setOperation
Optional. Information about an operation associated with the log entry, if applicable.
$this
getSourceLocation
Optional. Source code location information associated with the log entry, if any.
hasSourceLocation
clearSourceLocation
setSourceLocation
Optional. Source code location information associated with the log entry, if any.
$this
getPayload
string