Google Cloud Security Command Center V1 Client - Class CloudLoggingEntry (1.28.2)

Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class CloudLoggingEntry.

Metadata taken from a Cloud Logging LogEntry

Generated from protobuf message google.cloud.securitycenter.v1.CloudLoggingEntry

Namespace

Google \ Cloud \ SecurityCenter \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ insert_id string

A unique identifier for the log entry.

↳ log_id string

The type of the log (part of log_name. log_name is the resource name of the log to which this log entry belongs). For example: cloudresourcemanager.googleapis.com/activity. Note that this field is not URL-encoded, unlike the LOG_ID field in LogEntry.

↳ resource_container string

The organization, folder, or project of the monitored resource that produced this log entry.

↳ timestamp Google\Protobuf\Timestamp

The time the event described by the log entry occurred.

getInsertId

A unique identifier for the log entry.

Returns
Type Description
string

setInsertId

A unique identifier for the log entry.

Parameter
Name Description
var string
Returns
Type Description
$this

getLogId

The type of the log (part of log_name. log_name is the resource name of the log to which this log entry belongs). For example: cloudresourcemanager.googleapis.com/activity. Note that this field is not URL-encoded, unlike the LOG_ID field in LogEntry.

Returns
Type Description
string

setLogId

The type of the log (part of log_name. log_name is the resource name of the log to which this log entry belongs). For example: cloudresourcemanager.googleapis.com/activity. Note that this field is not URL-encoded, unlike the LOG_ID field in LogEntry.

Parameter
Name Description
var string
Returns
Type Description
$this

getResourceContainer

The organization, folder, or project of the monitored resource that produced this log entry.

Returns
Type Description
string

setResourceContainer

The organization, folder, or project of the monitored resource that produced this log entry.

Parameter
Name Description
var string
Returns
Type Description
$this

getTimestamp

The time the event described by the log entry occurred.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasTimestamp

clearTimestamp

setTimestamp

The time the event described by the log entry occurred.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this