1.9.0 (latest) 1.8.0 1.7.1 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.13.0 0.12.2 0.11.0 0.10.1 0.9.0 0.8.1 0.7.0 0.6.0 0.5.6 Reference documentation and code samples for the Cloud Logging V2 API class Google::Cloud::Logging::V2::LogView.

Describes a view over log entries in a bucket.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Protobuf-Timestamp)) --- Output only. The creation timestamp of the view.

### #description

    def description() -> ::String

**Returns**

- (::String) --- Describes this view.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- Describes this view.
**Returns**

- (::String) --- Describes this view.

### #filter

    def filter() -> ::String

**Returns**

- (::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")

### #filter=

    def filter=(value) -> ::String

**Parameter**

- **value** (::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")
**Returns**

- (::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")

### #name

    def name() -> ::String

**Returns**

- (::String) --- The resource name of the view.

  For example:

  `projects/my-project/locations/global/buckets/my-bucket/views/my-view`

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- The resource name of the view.


  For example:

  `projects/my-project/locations/global/buckets/my-bucket/views/my-view`
**Returns**

- (::String) --- The resource name of the view.

  For example:

  `projects/my-project/locations/global/buckets/my-bucket/views/my-view`

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Protobuf-Timestamp)) --- Output only. The last update timestamp of the view.