REST Resource: projects.locations.recentQueries Stay organized with collections Save and categorize content based on your preferences.
Resource: RecentQuery
Describes a recent query executed on the Logs Explorer or Log Analytics page within the last ~ 30 days.
| JSON representation |
|---|
{"name":string,"lastRunTime":string,// Union field |
| Fields | |
|---|---|
name |
Output only. Resource name of the recent query. In the format: For a list of supported locations, seeSupported Regions The [QUERY_ID] is a system generated alphanumeric ID. |
lastRunTime |
Output only. The timestamp when this query was last run. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
Union fieldquery_oneof. The query that was executed.query_oneof can be only one of the following: | |
loggingQuery |
Logging query that can be executed in Logs Explorer or via Logging API. |
opsAnalyticsQuery |
Analytics query that can be executed in Log Analytics. |
Methods | |
|---|---|
| Lists the RecentQueries that were created by the user making the request. |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-12 UTC.