Skip to content

Latest commit

 

History

History
99 lines (66 loc) · 2.44 KB

RunningQueriesApi.md

File metadata and controls

99 lines (66 loc) · 2.44 KB

lookerpy.RunningQueriesApi

All URIs are relative to https://looker.buffer.com:19999/api/3.0

Method HTTP request Description
all_running_queries GET /running_queries get all running queries
kill_query DELETE /running_queries/{query_slug} Kill a running query

all_running_queries

list[RunningQueries] all_running_queries()

get all running queries

Get information about all running queries.

Example

import time
import lookerpy
from lookerpy.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = lookerpy.RunningQueriesApi()

try: 
    # get all running queries
    api_response = api_instance.all_running_queries()
    pprint(api_response)
except ApiException as e:
    print "Exception when calling RunningQueriesApi->all_running_queries: %s\n" % e

Parameters

This endpoint does not need any parameter.

Return type

list[RunningQueries]

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

kill_query

kill_query(query_slug)

Kill a running query

Kill a query with a specific slug.

Example

import time
import lookerpy
from lookerpy.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = lookerpy.RunningQueriesApi()
query_slug = 'query_slug_example' # str | query slug

try: 
    # Kill a running query
    api_instance.kill_query(query_slug)
except ApiException as e:
    print "Exception when calling RunningQueriesApi->kill_query: %s\n" % e

Parameters

Name Type Description Notes
query_slug str query slug

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]