---
title: Getting Started with Datadog
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > Infrastructure > Datadog Resource Catalog
---

# gcp_logging_saved_query{% #gcp_logging_saved_query %}

## `ancestors`{% #ancestors %}

**Type**: `UNORDERED_LIST_STRING`

## `create_time`{% #create_time %}

**Type**: `TIMESTAMP`**Provider name**: `createTime`**Description**: Output only. The timestamp when the saved query was created.

## `description`{% #description %}

**Type**: `STRING`**Provider name**: `description`**Description**: Optional. A human readable description of the saved query.

## `gcp_display_name`{% #gcp_display_name %}

**Type**: `STRING`**Provider name**: `displayName`**Description**: Required. The user specified title for the SavedQuery.

## `labels`{% #labels %}

**Type**: `UNORDERED_LIST_STRING`

## `logging_query`{% #logging_query %}

**Type**: `STRUCT`**Provider name**: `loggingQuery`**Description**: Logging query that can be executed in Logs Explorer or via Logging API.

- `filter`**Type**: `STRING`**Provider name**: `filter`**Description**: Required. An advanced query using the Logging Query Language ([https://cloud.google.com/logging/docs/view/logging-query-language)](https://cloud.google.com/logging/docs/view/logging-query-language%29). The maximum length of the filter is 20000 characters.
- `summary_field_end`**Type**: `INT32`**Provider name**: `summaryFieldEnd`**Description**: Characters will be counted from the end of the string.
- `summary_field_start`**Type**: `INT32`**Provider name**: `summaryFieldStart`**Description**: Characters will be counted from the start of the string.
- `summary_fields`**Type**: `UNORDERED_LIST_STRUCT`**Provider name**: `summaryFields`**Description**: Optional. The set of summary fields to display for this saved query.
  - `field`**Type**: `STRING`**Provider name**: `field`**Description**: Optional. The field from the LogEntry to include in the summary line, for example resource.type or jsonPayload.name.

## `name`{% #name %}

**Type**: `STRING`**Provider name**: `name`**Description**: Output only. Resource name of the saved query.In the format: "projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" For a list of supported locations, see Supported Regions ([https://cloud.google.com/logging/docs/region-support#bucket-regions)After](https://cloud.google.com/logging/docs/region-support#bucket-regions%29After) the saved query is created, the location cannot be changed.If the user doesn't provide a QUERY_ID, the system will generate an alphanumeric ID.

## `ops_analytics_query`{% #ops_analytics_query %}

**Type**: `STRUCT`**Provider name**: `opsAnalyticsQuery`**Description**: Analytics query that can be executed in Log Analytics.

- `sql_query_text`**Type**: `STRING`**Provider name**: `sqlQueryText`**Description**: Required. A logs analytics SQL query, which generally follows BigQuery format.This is the SQL query that appears in the Log Analytics UI's query editor.

## `organization_id`{% #organization_id %}

**Type**: `STRING`

## `parent`{% #parent %}

**Type**: `STRING`

## `project_id`{% #project_id %}

**Type**: `STRING`

## `project_number`{% #project_number %}

**Type**: `STRING`

## `region_id`{% #region_id %}

**Type**: `STRING`

## `resource_name`{% #resource_name %}

**Type**: `STRING`

## `tags`{% #tags %}

**Type**: `UNORDERED_LIST_STRING`

## `update_time`{% #update_time %}

**Type**: `TIMESTAMP`**Provider name**: `updateTime`**Description**: Output only. The timestamp when the saved query was last updated.

## `visibility`{% #visibility %}

**Type**: `STRING`**Provider name**: `visibility`**Description**: Required. The visibility status of this query, which determines its ownership.**Possible values**:

- `VISIBILITY_UNSPECIFIED` - The saved query visibility is unspecified. A CreateSavedQuery request with an unspecified visibility will be rejected.
- `PRIVATE` - The saved query is only visible to the user that created it.
- `SHARED` - The saved query is visible to anyone in the project.

## `zone_id`{% #zone_id %}

**Type**: `STRING`
