Stackdriver Logging V2 Client - Class LogView (1.24.10)

Reference documentation and code samples for the Stackdriver Logging V2 Client class LogView.

Describes a view over log entries in a bucket.

Generated from protobuf message google.logging.v2.LogView

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The resource name of the view. For example: projects/my-project/locations/global/buckets/my-bucket/views/my-view

↳ description string

Describes this view.

↳ create_time Google\Protobuf\Timestamp

Output only. The creation timestamp of the view.

↳ update_time Google\Protobuf\Timestamp

Output only. The last update timestamp of the view.

↳ filter string

Filter that restricts which log entries in a bucket are visible in this view. Filters are restricted to be a logical AND of ==/!= of any of the following: - originating project/folder/organization/billing account. - resource type - log id For example: SOURCE("projects/myproject") AND resource.type = "gce_instance" AND LOG_ID("stdout")

getName

The resource name of the view.

For example: projects/my-project/locations/global/buckets/my-bucket/views/my-view

Generated from protobuf field string name = 1;

Returns
TypeDescription
string

setName

The resource name of the view.

For example: projects/my-project/locations/global/buckets/my-bucket/views/my-view

Generated from protobuf field string name = 1;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

Describes this view.

Generated from protobuf field string description = 3;

Returns
TypeDescription
string

setDescription

Describes this view.

Generated from protobuf field string description = 3;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. The creation timestamp of the view.

Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The creation timestamp of the view.

Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

Output only. The last update timestamp of the view.

Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The last update timestamp of the view.

Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getFilter

Filter that restricts which log entries in a bucket are visible in this view.

Filters are restricted to be a logical AND of ==/!= of any of the following:

  • originating project/folder/organization/billing account.
  • resource type
  • log id For example: SOURCE("projects/myproject") AND resource.type = "gce_instance" AND LOG_ID("stdout")

Generated from protobuf field string filter = 7;

Returns
TypeDescription
string

setFilter

Filter that restricts which log entries in a bucket are visible in this view.

Filters are restricted to be a logical AND of ==/!= of any of the following:

  • originating project/folder/organization/billing account.
  • resource type
  • log id For example: SOURCE("projects/myproject") AND resource.type = "gce_instance" AND LOG_ID("stdout")

Generated from protobuf field string filter = 7;

Parameter
NameDescription
var string
Returns
TypeDescription
$this