Skip to content
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.

Latest commit

 

History

History
104 lines (71 loc) · 2.77 KB

RunningQueriesApi.md

File metadata and controls

104 lines (71 loc) · 2.77 KB

Looker\RunningQueriesApi

All URIs are relative to https://ethosce.looker.com:19999/api/3.1

Method HTTP request Description
allRunningQueries GET /running_queries Get All Running Queries
killQuery DELETE /running_queries/{query_task_id} Kill Running Query

allRunningQueries

\Looker\Model\RunningQueries[] allRunningQueries()

Get All Running Queries

Get information about all running queries.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Looker\Api\RunningQueriesApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);

try {
    $result = $apiInstance->allRunningQueries();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RunningQueriesApi->allRunningQueries: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

This endpoint does not need any parameter.

Return type

\Looker\Model\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]

killQuery

string killQuery($query_task_id)

Kill Running Query

Kill a query with a specific query_task_id.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Looker\Api\RunningQueriesApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$query_task_id = "query_task_id_example"; // string | Query task id.

try {
    $result = $apiInstance->killQuery($query_task_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RunningQueriesApi->killQuery: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
query_task_id string Query task id.

Return type

string

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]