Version 4.0.24.18 (latest)
Get information about all running queries.
Request
GET
/running_queries
Datatype
Description
Request
Response
200: Running Queries.
Datatype
Description
(array)
can
lock
Operations the current user is able to perform on this object
id
lock
Unique Id
user
lock
User who initiated the query
Expand UserPublic definition...
can
lock
Operations the current user is able to perform on this object
id
lock
Unique Id
first_name
lock
First Name
last_name
lock
Last Name
display_name
lock
Full name for display (available only if both first_name and last_name are set)
avatar_url
lock
URL for the avatar image (may be generic)
url
lock
Link to get this item
query
lock
Query that was run
Expand Query definition...
can
lock
Operations the current user is able to perform on this object
id
lock
Unique Id
model
Model
view
Explore Name
fields
pivots
fill_fields
filters
Filters will contain data pertaining to complex filters that do not contain "or" conditions. When "or" conditions are present, filter data will be found on the `filter_expression` property.
filter_expression
Filter Expression
sorts
limit
Limit
column_limit
Column Limit
total
Total
row_total
Raw Total
subtotals
vis_config
Visualization configuration properties. These properties are typically opaque and differ based on the type of visualization used. There is no specified set of allowed keys. The values can be any type supported by JSON. A "type" key with a string value is often present, and is used by Looker to determine which visualization to present. Visualizations ignore unknown vis_config properties.
filter_config
The filter_config represents the state of the filter UI on the explore page for a given query. When running a query via the Looker UI, this parameter takes precedence over "filters". When creating a query or modifying an existing query, "filter_config" should be set to null. Setting it to any other value could cause unexpected filtering behavior. The format should be considered opaque.
visible_ui_sections
Visible UI Sections
slug
lock
Slug
dynamic_fields
Dynamic Fields
client_id
Client Id: used to generate shortened explore URLs. If set by client, must be a unique 22 character alphanumeric string. Otherwise one will be generated.
share_url
lock
Share Url
expanded_share_url
lock
Expanded Share Url
url
lock
Expanded Url
query_timezone
Query Timezone
has_table_calculations
lock
Has Table Calculations
sql_query
lock
SQL Query that was run
Expand SqlQuery definition...
can
lock
Operations the current user is able to perform on this object
slug
lock
The identifier of the SQL query
last_runtime
lock
Number of seconds this query took to run the most recent time it was run
run_count
lock
Number of times this query has been run
browser_limit
lock
Maximum number of rows this query will display on the SQL Runner page
sql
lock
SQL query text
last_run_at
lock
The most recent time this query was run
connection
lock
Connection this query uses
Expand DBConnectionBase definition...
can
lock
Operations the current user is able to perform on this object
name
lock
Name of the connection. Also used as the unique identifier
dialect
lock
(Read-only) SQL Dialect details
snippets
pdts_enabled
lock
True if PDTs are enabled on this connection
model_name
lock
Model name this query uses
creator
lock
User who created this SQL query
Expand UserPublic definition...
can
lock
Operations the current user is able to perform on this object
id
lock
Unique Id
first_name
lock
First Name
last_name
lock
Last Name
display_name
lock
Full name for display (available only if both first_name and last_name are set)
avatar_url
lock
URL for the avatar image (may be generic)
url
lock
Link to get this item
explore_url
lock
Explore page URL for this SQL query
plaintext
lock
Should this query be rendered as plain text
vis_config
Visualization configuration properties. These properties are typically opaque and differ based on the type of visualization used. There is no specified set of allowed keys. The values can be any type supported by JSON. A "type" key with a string value is often present, and is used by Looker to determine which visualization to present. Visualizations ignore unknown vis_config properties.
result_maker_id
ID of the ResultMakerLookup entry.
look
lock
Look of query that was run
Expand LookBasic definition...
can
lock
Operations the current user is able to perform on this object
content_metadata_id
lock
Id of content metadata
id
lock
Unique Id
title
lock
Look Title
user_id
User Id
created_at
lock
Date/Time Query was initiated
completed_at
lock
Date/Time Query was completed
query_id
lock
Query Id
source
lock
Source (look, dashboard, queryrunner, explore, etc.)
node_id
lock
Node Id
slug
lock
Slug
query_task_id
lock
ID of a Query Task
cache_key
lock
Cache Key
connection_name
lock
Connection
dialect
lock
Dialect
connection_id
lock
Connection ID
message
lock
Additional Information(Error message or verbose status)
status
lock
Status description
runtime
lock
Number of seconds elapsed running the Query
sql
lock
SQL text of the query as run
sql_interface_sql
lock
SQL text of the SQL Interface query as run
404: Not Found
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link
429: Too Many Requests
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link
Examples
Python
https://github.com/looker-open-source/sdk-codegen/blob/main/examples/python/kill_queries.py |
Ruby
https://github.com/looker-open-source/sdk-codegen/blob/main/examples/ruby/kill_all_running_queries.rb |
https://github.com/looker-open-source/sdk-codegen/blob/main/examples/ruby/stream_to_s3.rb |
Swift
https://github.com/looker-open-source/sdk-codegen/blob/main/swift/looker/Tests/lookerTests/smokeTests.swift |