ListRecentQueriesResponse

The response from recentQueries.list.

JSON representation
{
  "recentQueries": [
    {
      object (RecentQuery)
    }
  ],
  "nextPageToken": string,
  "unreachable": [
    string
  ]
}
Fields
recentQueries[]

object (RecentQuery)

A list of recent queries.

nextPageToken

string

If there might be more results than appear in this response, then nextPageToken is included. To get the next set of results, call the same method again using the value of nextPageToken as pageToken.

unreachable[]

string

The unreachable resources. Each resource can be either 1) a saved query if a specific query is unreachable or 2) a location if a specific location is unreachable.

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/recentQueries/[QUERY_ID]"
"projects/[PROJECT_ID]/locations/[LOCATION_ID]"

For example:

"projects/my-project/locations/global/recentQueries/12345678" "projects/my-project/locations/global"

If there are unreachable resources, the response will first return pages that contain recent queries, and then return pages that contain the unreachable resources.

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 query_oneof can be only one of the following:
  "loggingQuery": {
    object (LoggingQuery)
  },
  "opsAnalyticsQuery": {
    object (OpsAnalyticsQuery)
  }
  // End of list of possible types for union field query_oneof.
}
Fields
name

string

Output only. Resource name of the recent query.

In the format:

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/recentQueries/[QUERY_ID]"

For a list of supported locations, see Supported Regions

The [QUERY_ID] is a system generated alphanumeric ID.

lastRunTime

string (Timestamp format)

Output only. The timestamp when this query was last run.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

Union field query_oneof. The query that was executed. query_oneof can be only one of the following:
loggingQuery

object (LoggingQuery)

Logging query that can be executed in Logs Explorer or via Logging API.

opsAnalyticsQuery

object (OpsAnalyticsQuery)

Analytics query that can be executed in Log Analytics.