# Cloud Monitoring Dashboards V1 API - Class Google::Cloud::Monitoring::Dashboard::V1::LogsPanel (v1.7.0)

1.7.0 (latest) 1.6.0 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.1 0.16.0 0.15.0 0.14.2 0.13.0 0.12.1 0.11.0 0.10.0 0.9.1 0.8.0 0.7.0 0.6.6 Reference documentation and code samples for the Cloud Monitoring Dashboards V1 API class Google::Cloud::Monitoring::Dashboard::V1::LogsPanel.

A widget that displays a stream of log.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #filter

    def filter() -> ::String

**Returns**

- (::String) --- A filter that chooses which log entries to return. See [Advanced Logs
  Queries](https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries that match the filter are returned. An empty filter matches all log entries.

### #filter=

    def filter=(value) -> ::String

**Parameter**

- **value** (::String) --- A filter that chooses which log entries to return. See [Advanced Logs
  Queries](https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries that match the filter are returned. An empty filter matches all log entries.
**Returns**

- (::String) --- A filter that chooses which log entries to return. See [Advanced Logs
  Queries](https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries that match the filter are returned. An empty filter matches all log entries.

### #resource_names

    def resource_names() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- The names of logging resources to collect logs for. Currently only projects are supported. If empty, the widget will default to the host project.

### #resource_names=

    def resource_names=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- The names of logging resources to collect logs for. Currently only projects are supported. If empty, the widget will default to the host project.
**Returns**

- (::Array\<::String\>) --- The names of logging resources to collect logs for. Currently only projects are supported. If empty, the widget will default to the host project.