recent_queries
Creates, updates, deletes, gets or lists a recent_queries resource.
Overview
| Name | recent_queries |
| Type | Resource |
| Id | google.logging.recent_queries |
Fields
The following fields are returned by SELECT queries:
- organizations_locations_recent_queries_list
- billing_accounts_locations_recent_queries_list
- projects_locations_recent_queries_list
- folders_locations_recent_queries_list
| Name | Datatype | Description |
|---|
| Name | Datatype | Description |
|---|
| Name | Datatype | Description |
|---|
| Name | Datatype | Description |
|---|
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
organizations_locations_recent_queries_list | select | organizationsId, locationsId | pageSize, pageToken, filter | Lists the RecentQueries that were created by the user making the request. |
billing_accounts_locations_recent_queries_list | select | billingAccountsId, locationsId | pageSize, filter, pageToken | Lists the RecentQueries that were created by the user making the request. |
projects_locations_recent_queries_list | select | projectsId, locationsId | filter, pageToken, pageSize | Lists the RecentQueries that were created by the user making the request. |
folders_locations_recent_queries_list | select | foldersId, locationsId | pageSize, filter, pageToken | Lists the RecentQueries that were created by the user making the request. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
billingAccountsId | string | |
foldersId | string | |
locationsId | string | |
organizationsId | string | |
projectsId | string | |
filter | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT examples
- organizations_locations_recent_queries_list
- billing_accounts_locations_recent_queries_list
- projects_locations_recent_queries_list
- folders_locations_recent_queries_list
Lists the RecentQueries that were created by the user making the request.
SELECT
*
FROM google.logging.recent_queries
WHERE organizationsId = '{{ organizationsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
;
Lists the RecentQueries that were created by the user making the request.
SELECT
*
FROM google.logging.recent_queries
WHERE billingAccountsId = '{{ billingAccountsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND filter = '{{ filter }}'
AND pageToken = '{{ pageToken }}'
;
Lists the RecentQueries that were created by the user making the request.
SELECT
*
FROM google.logging.recent_queries
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND filter = '{{ filter }}'
AND pageToken = '{{ pageToken }}'
AND pageSize = '{{ pageSize }}'
;
Lists the RecentQueries that were created by the user making the request.
SELECT
*
FROM google.logging.recent_queries
WHERE foldersId = '{{ foldersId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND filter = '{{ filter }}'
AND pageToken = '{{ pageToken }}'
;