From 8308a4e46ed8e5671b75459adb01e89d482857fe Mon Sep 17 00:00:00 2001 From: Sentio Bot Date: Fri, 29 Nov 2024 09:54:32 +0000 Subject: [PATCH] chore: update --- doc/index.html | 9186 +++++++++-------- openapi.json | 284 +- src/DataApi.md | 451 +- src/DefaultApi.md | 237 + src/apis/DataApi.ts | 410 +- src/apis/DefaultApi.ts | 192 + src/index.ts | 2 +- ...viceAnalyticServiceExecuteSQLAsyncBody.ts} | 45 +- ...ticServiceAnalyticServiceExecuteSQLBody.ts | 7 - ...ServiceAnalyticServiceRerunSQLQueryBody.ts | 3 + ...alyticServiceAnalyticServiceSaveSQLBody.ts | 14 - .../AnalyticServiceAsyncExecuteSQLResponse.ts | 58 + .../AnalyticServiceRerunSQLQueryRequest.ts | 3 + .../AnalyticServiceRerunSQLQueryResponse.ts | 3 + src/models/AnalyticServiceSQLQuery.ts | 13 + src/models/AnalyticServiceSaveSQLResponse.ts | 15 - src/models/ObjectSerializer.ts | 11 +- src/models/all.ts | 3 +- src/types/ObjectParamAPI.ts | 284 +- src/types/ObservableAPI.ts | 267 +- src/types/PromiseAPI.ts | 190 +- 21 files changed, 5940 insertions(+), 5738 deletions(-) create mode 100755 src/DefaultApi.md create mode 100755 src/apis/DefaultApi.ts rename src/models/{AnalyticServiceSaveSQLRequest.ts => AnalyticServiceAnalyticServiceExecuteSQLAsyncBody.ts} (59%) create mode 100755 src/models/AnalyticServiceAsyncExecuteSQLResponse.ts diff --git a/doc/index.html b/doc/index.html index 37fb00f..f982a15 100755 --- a/doc/index.html +++ b/doc/index.html @@ -1226,7 +1226,7 @@ } } }; - defs["analytic_service.AnalyticService.ExecuteSQLBody"] = { + defs["analytic_service.AnalyticService.ExecuteSQLAsyncBody"] = { "type" : "object", "properties" : { "projectId" : { @@ -1245,9 +1245,34 @@ "title" : "cursor for pagination", "type" : "string" }, - "bypassCache" : { - "title" : "deprecated, use cachePolicy instead", - "type" : "boolean" + "cachePolicy" : { + "$ref" : "#/components/schemas/common.CachePolicy" + } + }, + "example" : { + "sqlQuery" : { + "sql" : "SELECT uniq(distinct_id) FROM `Transfer`" + } + } +}; + defs["analytic_service.AnalyticService.ExecuteSQLBody"] = { + "type" : "object", + "properties" : { + "projectId" : { + "title" : "use project id if project_owner and project_slug are not provided", + "type" : "string" + }, + "version" : { + "title" : "version of the datasource, default to the active version if not provided", + "type" : "integer", + "format" : "int32" + }, + "sqlQuery" : { + "$ref" : "#/components/schemas/analytic_service.SQLQuery" + }, + "cursor" : { + "title" : "cursor for pagination", + "type" : "string" }, "cachePolicy" : { "$ref" : "#/components/schemas/common.CachePolicy" @@ -1277,7 +1302,8 @@ "sqlQuery" : { "$ref" : "#/components/schemas/analytic_service.SQLQuery" } - } + }, + "description" : "Deprecated: will drop in the future." }; defs["analytic_service.AnalyticService.SaveSQLBody"] = { "type" : "object", @@ -1296,14 +1322,24 @@ }, "source" : { "$ref" : "#/components/schemas/analytic_service.Source" - }, - "runImmediately" : { - "title" : "run the query immediately or not", - "type" : "boolean" - }, + } + } +}; + defs["analytic_service.AsyncExecuteSQLResponse"] = { + "type" : "object", + "properties" : { "queryId" : { - "title" : "the query id to save the query", "type" : "string" + }, + "executionId" : { + "type" : "string" + }, + "queueLength" : { + "type" : "integer", + "format" : "int32" + }, + "executionInfo" : { + "$ref" : "#/components/schemas/analytic_service.ExecutionInfo" } } }; @@ -1432,7 +1468,8 @@ "sqlQuery" : { "$ref" : "#/components/schemas/analytic_service.SQLQuery" } - } + }, + "description" : "Deprecated: will drop in the future." }; defs["analytic_service.RerunSQLQueryResponse"] = { "type" : "object", @@ -1444,7 +1481,8 @@ "executionInfo" : { "$ref" : "#/components/schemas/analytic_service.ExecutionInfo" } - } + }, + "description" : "Deprecated: will drop in the future." }; defs["analytic_service.SQLQuery"] = { "type" : "object", @@ -1462,57 +1500,18 @@ "$ref" : "#/components/schemas/common.RichStruct" }, "name" : { - "title" : "the name of the query", - "type" : "string" - } - } -}; - defs["analytic_service.SaveSQLRequest"] = { - "type" : "object", - "properties" : { - "projectOwner" : { - "title" : "username or organization name", - "type" : "string" - }, - "projectSlug" : { - "title" : "project slug", - "type" : "string" - }, - "projectId" : { - "title" : "use project id if project_owner and project_slug are not provided", - "type" : "string" - }, - "version" : { - "title" : "version of the datasource, default to the active version if not provided", - "type" : "integer", - "format" : "int32" - }, - "sqlQuery" : { - "$ref" : "#/components/schemas/analytic_service.SQLQuery" - }, - "source" : { - "$ref" : "#/components/schemas/analytic_service.Source" - }, - "runImmediately" : { - "title" : "run the query immediately or not", - "type" : "boolean" + "type" : "string", + "description" : "the name of the query, if sql is empty and name not empty, the query will be fetched by the name." }, "queryId" : { - "title" : "the query id to save the query", - "type" : "string" + "type" : "string", + "description" : "the id of the query, if sql and name both empty, the query will be fetched by the id." } } }; defs["analytic_service.SaveSQLResponse"] = { "type" : "object", "properties" : { - "queueLength" : { - "type" : "integer", - "format" : "int32" - }, - "executionInfo" : { - "$ref" : "#/components/schemas/analytic_service.ExecutionInfo" - }, "queryId" : { "type" : "string" } @@ -5647,6 +5646,9 @@
  • executeSQL
  • +
  • + executeSQLAsync +
  • getMetrics
  • @@ -5674,15 +5676,6 @@
  • querySQLResult
  • -
  • - querySQLResult2 -
  • -
  • - rerunSQLQuery -
  • -
  • - rerunSQLQuery2 -
  • retention
  • @@ -5723,6 +5716,13 @@
  • simulateTransactionBundle
  • + +
  • + rerunSQLQuery +
  • +
  • + rerunSQLQuery2 +
  • createFork @@ -8517,47 +8517,49 @@


    -
    -
    +
    +
    -

    getMetrics

    -

    Get a list of metrics in a project

    +

    executeSQLAsync

    +

    Execute SQL by Async

    -

    +

    Execute SQL in a project asynchronously.


    -
    /api/v1/metrics
    +
    /api/v1/analytics/{owner}/{slug}/sql/execute/async

    Usage and SDK Samples

    -
    -
    curl -X GET \
    +                          
    +
    curl -X POST \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
    - "https://app.sentio.xyz/api/v1/metrics?projectId=projectId_example&name=name_example&version=56"
    + -H "Content-Type: application/json" \
    + "https://app.sentio.xyz/api/v1/analytics/{owner}/{slug}/sql/execute/async" \
    + -d ''
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -8578,15 +8580,15 @@ 

    Usage and SDK Samples

    // Create an instance of the API class DataApi apiInstance = new DataApi(); - String projectId = projectId_example; // String | - String name = name_example; // String | - Integer version = 56; // Integer | + String owner = owner_example; // String | username or organization name + String slug = slug_example; // String | project slug + AnalyticServiceAnalyticServiceExecuteSQLAsyncBody body = ; // AnalyticServiceAnalyticServiceExecuteSQLAsyncBody | try { - metrics_service.GetMetricsResponse result = apiInstance.getMetrics(projectId, name, version); + analytic_service.AsyncExecuteSQLResponse result = apiInstance.executeSQLAsync(owner, slug, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DataApi#getMetrics"); + System.err.println("Exception when calling DataApi#executeSQLAsync"); e.printStackTrace(); } } @@ -8594,50 +8596,50 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
     
    -final String projectId = new String(); // String | 
    -final String name = new String(); // String | 
    -final Integer version = new Integer(); // Integer | 
    +final String owner = new String(); // String | username or organization name
    +final String slug = new String(); // String | project slug
    +final AnalyticServiceAnalyticServiceExecuteSQLAsyncBody body = new AnalyticServiceAnalyticServiceExecuteSQLAsyncBody(); // AnalyticServiceAnalyticServiceExecuteSQLAsyncBody | 
     
     try {
    -    final result = await api_instance.getMetrics(projectId, name, version);
    +    final result = await api_instance.executeSQLAsync(owner, slug, body);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->getMetrics: $e\n');
    +    print('Exception when calling DefaultApi->executeSQLAsync: $e\n');
     }
     
     
    -
    +
    import org.openapitools.client.api.DataApi;
     
     public class DataApiExample {
         public static void main(String[] args) {
             DataApi apiInstance = new DataApi();
    -        String projectId = projectId_example; // String | 
    -        String name = name_example; // String | 
    -        Integer version = 56; // Integer | 
    +        String owner = owner_example; // String | username or organization name
    +        String slug = slug_example; // String | project slug
    +        AnalyticServiceAnalyticServiceExecuteSQLAsyncBody body = ; // AnalyticServiceAnalyticServiceExecuteSQLAsyncBody | 
     
             try {
    -            metrics_service.GetMetricsResponse result = apiInstance.getMetrics(projectId, name, version);
    +            analytic_service.AsyncExecuteSQLResponse result = apiInstance.executeSQLAsync(owner, slug, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DataApi#getMetrics");
    +            System.err.println("Exception when calling DataApi#executeSQLAsync");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -8648,15 +8650,15 @@ 

    Usage and SDK Samples

    // Create an instance of the API class DataApi *apiInstance = [[DataApi alloc] init]; -String *projectId = projectId_example; // (optional) (default to null) -String *name = name_example; // (optional) (default to null) -Integer *version = 56; // (optional) (default to null) +String *owner = owner_example; // username or organization name (default to null) +String *slug = slug_example; // project slug (default to null) +AnalyticServiceAnalyticServiceExecuteSQLAsyncBody *body = ; // -// Get a list of metrics in a project -[apiInstance getMetricsWith:projectId - name:name - version:version - completionHandler: ^(metrics_service.GetMetricsResponse output, NSError* error) { +// Execute SQL by Async +[apiInstance executeSQLAsyncWith:owner + slug:slug + body:body + completionHandler: ^(analytic_service.AsyncExecuteSQLResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -8667,7 +8669,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -8679,11 +8681,9 @@ 

    Usage and SDK Samples

    // Create an instance of the API class var api = new SentioApi.DataApi() -var opts = { - 'projectId': projectId_example, // {String} - 'name': name_example, // {String} - 'version': 56 // {Integer} -}; +var owner = owner_example; // {String} username or organization name +var slug = slug_example; // {String} project slug +var body = ; // {AnalyticServiceAnalyticServiceExecuteSQLAsyncBody} var callback = function(error, data, response) { if (error) { @@ -8692,14 +8692,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.getMetrics(opts, callback); +api.executeSQLAsync(owner, slug, body, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -8708,7 +8708,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class getMetricsExample + public class executeSQLAsyncExample { public void main() { @@ -8719,16 +8719,16 @@

    Usage and SDK Samples

    // Create an instance of the API class var apiInstance = new DataApi(); - var projectId = projectId_example; // String | (optional) (default to null) - var name = name_example; // String | (optional) (default to null) - var version = 56; // Integer | (optional) (default to null) + var owner = owner_example; // String | username or organization name (default to null) + var slug = slug_example; // String | project slug (default to null) + var body = new AnalyticServiceAnalyticServiceExecuteSQLAsyncBody(); // AnalyticServiceAnalyticServiceExecuteSQLAsyncBody | try { - // Get a list of metrics in a project - metrics_service.GetMetricsResponse result = apiInstance.getMetrics(projectId, name, version); + // Execute SQL by Async + analytic_service.AsyncExecuteSQLResponse result = apiInstance.executeSQLAsync(owner, slug, body); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DataApi.getMetrics: " + e.Message ); + Debug.Print("Exception when calling DataApi.executeSQLAsync: " + e.Message ); } } } @@ -8736,7 +8736,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -8747,20 +8747,20 @@ 

    Usage and SDK Samples

    // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\DataApi(); -$projectId = projectId_example; // String | -$name = name_example; // String | -$version = 56; // Integer | +$owner = owner_example; // String | username or organization name +$slug = slug_example; // String | project slug +$body = ; // AnalyticServiceAnalyticServiceExecuteSQLAsyncBody | try { - $result = $api_instance->getMetrics($projectId, $name, $version); + $result = $api_instance->executeSQLAsync($owner, $slug, $body); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DataApi->getMetrics: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DataApi->executeSQLAsync: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DataApi;
    @@ -8772,20 +8772,20 @@ 

    Usage and SDK Samples

    # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::DataApi->new(); -my $projectId = projectId_example; # String | -my $name = name_example; # String | -my $version = 56; # Integer | +my $owner = owner_example; # String | username or organization name +my $slug = slug_example; # String | project slug +my $body = WWW::OPenAPIClient::Object::AnalyticServiceAnalyticServiceExecuteSQLAsyncBody->new(); # AnalyticServiceAnalyticServiceExecuteSQLAsyncBody | eval { - my $result = $api_instance->getMetrics(projectId => $projectId, name => $name, version => $version); + my $result = $api_instance->executeSQLAsync(owner => $owner, slug => $slug, body => $body); print Dumper($result); }; if ($@) { - warn "Exception when calling DataApi->getMetrics: $@\n"; + warn "Exception when calling DataApi->executeSQLAsync: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -8799,28 +8799,28 @@ 

    Usage and SDK Samples

    # Create an instance of the API class api_instance = openapi_client.DataApi() -projectId = projectId_example # String | (optional) (default to null) -name = name_example # String | (optional) (default to null) -version = 56 # Integer | (optional) (default to null) +owner = owner_example # String | username or organization name (default to null) +slug = slug_example # String | project slug (default to null) +body = # AnalyticServiceAnalyticServiceExecuteSQLAsyncBody | try: - # Get a list of metrics in a project - api_response = api_instance.get_metrics(projectId=projectId, name=name, version=version) + # Execute SQL by Async + api_response = api_instance.execute_sql_async(owner, slug, body) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->getMetrics: %s\n" % e)
    + print("Exception when calling DataApi->executeSQLAsync: %s\n" % e)
    -
    +
    extern crate DataApi;
     
     pub fn main() {
    -    let projectId = projectId_example; // String
    -    let name = name_example; // String
    -    let version = 56; // Integer
    +    let owner = owner_example; // String
    +    let slug = slug_example; // String
    +    let body = ; // AnalyticServiceAnalyticServiceExecuteSQLAsyncBody
     
         let mut context = DataApi::Context::default();
    -    let result = client.getMetrics(projectId, name, version, &context).wait();
    +    let result = client.executeSQLAsync(owner, slug, body, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -8835,90 +8835,130 @@ 

    Scopes

    Parameters

    - - - - -
    Query parameters
    +
    Path parameters
    - - - - - + + + + + - + - -
    NameDescription
    projectId
    NameDescription
    owner* -
    +
    String +
    +username or organization name +
    +
    + Required +
    name
    slug* -
    +
    String +
    +project slug +
    +
    + Required +
    version +
    -
    -
    -
    - - Integer - - - (int32) - +
    Body parameters
    + + + + + + +
    NameDescription
    body * +

    + +
    + +

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    listCoins

    -

    List coins

    +

    getMetrics

    +

    Get a list of metrics in a project

    -

    Get a list of coins in a project.

    +


    -
    /api/v1/insights/{owner}/{slug}/coins
    +
    /api/v1/metrics

    Usage and SDK Samples

    -
    +
    curl -X GET \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
    - "https://app.sentio.xyz/api/v1/insights/{owner}/{slug}/coins?projectId=projectId_example&version=56&limit=56&offset=56&searchQuery=searchQuery_example"
    + "https://app.sentio.xyz/api/v1/metrics?projectId=projectId_example&name=name_example&version=56"
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -9042,19 +9082,15 @@ 

    Usage and SDK Samples

    // Create an instance of the API class DataApi apiInstance = new DataApi(); - String owner = owner_example; // String | - String slug = slug_example; // String | String projectId = projectId_example; // String | + String name = name_example; // String | Integer version = 56; // Integer | - Integer limit = 56; // Integer | - Integer offset = 56; // Integer | - String searchQuery = searchQuery_example; // String | try { - insights_service.ListCoinsResponse result = apiInstance.listCoins(owner, slug, projectId, version, limit, offset, searchQuery); + metrics_service.GetMetricsResponse result = apiInstance.getMetrics(projectId, name, version); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DataApi#listCoins"); + System.err.println("Exception when calling DataApi#getMetrics"); e.printStackTrace(); } } @@ -9062,58 +9098,50 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
     
    -final String owner = new String(); // String | 
    -final String slug = new String(); // String | 
     final String projectId = new String(); // String | 
    +final String name = new String(); // String | 
     final Integer version = new Integer(); // Integer | 
    -final Integer limit = new Integer(); // Integer | 
    -final Integer offset = new Integer(); // Integer | 
    -final String searchQuery = new String(); // String | 
     
     try {
    -    final result = await api_instance.listCoins(owner, slug, projectId, version, limit, offset, searchQuery);
    +    final result = await api_instance.getMetrics(projectId, name, version);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->listCoins: $e\n');
    +    print('Exception when calling DefaultApi->getMetrics: $e\n');
     }
     
     
    -
    +
    import org.openapitools.client.api.DataApi;
     
     public class DataApiExample {
         public static void main(String[] args) {
             DataApi apiInstance = new DataApi();
    -        String owner = owner_example; // String | 
    -        String slug = slug_example; // String | 
             String projectId = projectId_example; // String | 
    +        String name = name_example; // String | 
             Integer version = 56; // Integer | 
    -        Integer limit = 56; // Integer | 
    -        Integer offset = 56; // Integer | 
    -        String searchQuery = searchQuery_example; // String | 
     
             try {
    -            insights_service.ListCoinsResponse result = apiInstance.listCoins(owner, slug, projectId, version, limit, offset, searchQuery);
    +            metrics_service.GetMetricsResponse result = apiInstance.getMetrics(projectId, name, version);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DataApi#listCoins");
    +            System.err.println("Exception when calling DataApi#getMetrics");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -9124,23 +9152,15 @@ 

    Usage and SDK Samples

    // Create an instance of the API class DataApi *apiInstance = [[DataApi alloc] init]; -String *owner = owner_example; // (default to null) -String *slug = slug_example; // (default to null) String *projectId = projectId_example; // (optional) (default to null) +String *name = name_example; // (optional) (default to null) Integer *version = 56; // (optional) (default to null) -Integer *limit = 56; // (optional) (default to null) -Integer *offset = 56; // (optional) (default to null) -String *searchQuery = searchQuery_example; // (optional) (default to null) -// List coins -[apiInstance listCoinsWith:owner - slug:slug - projectId:projectId +// Get a list of metrics in a project +[apiInstance getMetricsWith:projectId + name:name version:version - limit:limit - offset:offset - searchQuery:searchQuery - completionHandler: ^(insights_service.ListCoinsResponse output, NSError* error) { + completionHandler: ^(metrics_service.GetMetricsResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -9151,7 +9171,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -9163,14 +9183,10 @@ 

    Usage and SDK Samples

    // Create an instance of the API class var api = new SentioApi.DataApi() -var owner = owner_example; // {String} -var slug = slug_example; // {String} var opts = { 'projectId': projectId_example, // {String} - 'version': 56, // {Integer} - 'limit': 56, // {Integer} - 'offset': 56, // {Integer} - 'searchQuery': searchQuery_example // {String} + 'name': name_example, // {String} + 'version': 56 // {Integer} }; var callback = function(error, data, response) { @@ -9180,14 +9196,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.listCoins(owner, slug, opts, callback); +api.getMetrics(opts, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -9196,7 +9212,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class listCoinsExample + public class getMetricsExample { public void main() { @@ -9207,20 +9223,16 @@

    Usage and SDK Samples

    // Create an instance of the API class var apiInstance = new DataApi(); - var owner = owner_example; // String | (default to null) - var slug = slug_example; // String | (default to null) var projectId = projectId_example; // String | (optional) (default to null) + var name = name_example; // String | (optional) (default to null) var version = 56; // Integer | (optional) (default to null) - var limit = 56; // Integer | (optional) (default to null) - var offset = 56; // Integer | (optional) (default to null) - var searchQuery = searchQuery_example; // String | (optional) (default to null) try { - // List coins - insights_service.ListCoinsResponse result = apiInstance.listCoins(owner, slug, projectId, version, limit, offset, searchQuery); + // Get a list of metrics in a project + metrics_service.GetMetricsResponse result = apiInstance.getMetrics(projectId, name, version); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DataApi.listCoins: " + e.Message ); + Debug.Print("Exception when calling DataApi.getMetrics: " + e.Message ); } } } @@ -9228,7 +9240,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -9239,24 +9251,20 @@ 

    Usage and SDK Samples

    // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\DataApi(); -$owner = owner_example; // String | -$slug = slug_example; // String | $projectId = projectId_example; // String | +$name = name_example; // String | $version = 56; // Integer | -$limit = 56; // Integer | -$offset = 56; // Integer | -$searchQuery = searchQuery_example; // String | try { - $result = $api_instance->listCoins($owner, $slug, $projectId, $version, $limit, $offset, $searchQuery); + $result = $api_instance->getMetrics($projectId, $name, $version); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DataApi->listCoins: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DataApi->getMetrics: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DataApi;
    @@ -9268,24 +9276,20 @@ 

    Usage and SDK Samples

    # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::DataApi->new(); -my $owner = owner_example; # String | -my $slug = slug_example; # String | my $projectId = projectId_example; # String | +my $name = name_example; # String | my $version = 56; # Integer | -my $limit = 56; # Integer | -my $offset = 56; # Integer | -my $searchQuery = searchQuery_example; # String | eval { - my $result = $api_instance->listCoins(owner => $owner, slug => $slug, projectId => $projectId, version => $version, limit => $limit, offset => $offset, searchQuery => $searchQuery); + my $result = $api_instance->getMetrics(projectId => $projectId, name => $name, version => $version); print Dumper($result); }; if ($@) { - warn "Exception when calling DataApi->listCoins: $@\n"; + warn "Exception when calling DataApi->getMetrics: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -9299,36 +9303,28 @@ 

    Usage and SDK Samples

    # Create an instance of the API class api_instance = openapi_client.DataApi() -owner = owner_example # String | (default to null) -slug = slug_example # String | (default to null) projectId = projectId_example # String | (optional) (default to null) +name = name_example # String | (optional) (default to null) version = 56 # Integer | (optional) (default to null) -limit = 56 # Integer | (optional) (default to null) -offset = 56 # Integer | (optional) (default to null) -searchQuery = searchQuery_example # String | (optional) (default to null) try: - # List coins - api_response = api_instance.list_coins(owner, slug, projectId=projectId, version=version, limit=limit, offset=offset, searchQuery=searchQuery) + # Get a list of metrics in a project + api_response = api_instance.get_metrics(projectId=projectId, name=name, version=version) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->listCoins: %s\n" % e)
    + print("Exception when calling DataApi->getMetrics: %s\n" % e)
    -
    +
    extern crate DataApi;
     
     pub fn main() {
    -    let owner = owner_example; // String
    -    let slug = slug_example; // String
         let projectId = projectId_example; // String
    +    let name = name_example; // String
         let version = 56; // Integer
    -    let limit = 56; // Integer
    -    let offset = 56; // Integer
    -    let searchQuery = searchQuery_example; // String
     
         let mut context = DataApi::Context::default();
    -    let result = client.listCoins(owner, slug, projectId, version, limit, offset, searchQuery, &context).wait();
    +    let result = client.getMetrics(projectId, name, version, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -9343,53 +9339,6 @@ 

    Scopes

    Parameters

    -
    Path parameters
    - - - - - - - - - - - - - -
    NameDescription
    owner* - - -
    -
    -
    - - String - - -
    -
    - Required -
    -
    -
    -
    slug* - - -
    -
    -
    - - String - - -
    -
    - Required -
    -
    -
    -
    @@ -9404,7 +9353,7 @@

    Parameters

    -
    +
    @@ -9417,39 +9366,16 @@

    Parameters

    - version - - - -
    -
    -
    - - Integer - - - (int32) - - -
    -
    -
    - - - - limit + name -
    +
    - Integer + String - - (int32) -
    @@ -9457,11 +9383,11 @@

    Parameters

    - offset + version -
    +
    @@ -9475,45 +9401,28 @@

    Parameters

    - - - searchQuery - - - -
    -
    -
    - - String - - -
    -
    -
    -

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    listCoins2

    +

    listCoins

    List coins

    @@ -9588,35 +9497,35 @@

    listCoins2

    Get a list of coins in a project.


    -
    /api/v1/insights/coins
    +
    /api/v1/insights/{owner}/{slug}/coins

    Usage and SDK Samples

    -
    +
    curl -X GET \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
    - "https://app.sentio.xyz/api/v1/insights/coins?projectOwner=projectOwner_example&projectSlug=projectSlug_example&projectId=projectId_example&version=56&limit=56&offset=56&searchQuery=searchQuery_example"
    + "https://app.sentio.xyz/api/v1/insights/{owner}/{slug}/coins?projectId=projectId_example&version=56&limit=56&offset=56&searchQuery=searchQuery_example"
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -9637,8 +9546,8 @@ 

    Usage and SDK Samples

    // Create an instance of the API class DataApi apiInstance = new DataApi(); - String projectOwner = projectOwner_example; // String | - String projectSlug = projectSlug_example; // String | + String owner = owner_example; // String | + String slug = slug_example; // String | String projectId = projectId_example; // String | Integer version = 56; // Integer | Integer limit = 56; // Integer | @@ -9646,10 +9555,10 @@

    Usage and SDK Samples

    String searchQuery = searchQuery_example; // String | try { - insights_service.ListCoinsResponse result = apiInstance.listCoins2(projectOwner, projectSlug, projectId, version, limit, offset, searchQuery); + insights_service.ListCoinsResponse result = apiInstance.listCoins(owner, slug, projectId, version, limit, offset, searchQuery); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DataApi#listCoins2"); + System.err.println("Exception when calling DataApi#listCoins"); e.printStackTrace(); } } @@ -9657,13 +9566,13 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
     
    -final String projectOwner = new String(); // String | 
    -final String projectSlug = new String(); // String | 
    +final String owner = new String(); // String | 
    +final String slug = new String(); // String | 
     final String projectId = new String(); // String | 
     final Integer version = new Integer(); // Integer | 
     final Integer limit = new Integer(); // Integer | 
    @@ -9671,23 +9580,23 @@ 

    Usage and SDK Samples

    final String searchQuery = new String(); // String | try { - final result = await api_instance.listCoins2(projectOwner, projectSlug, projectId, version, limit, offset, searchQuery); + final result = await api_instance.listCoins(owner, slug, projectId, version, limit, offset, searchQuery); print(result); } catch (e) { - print('Exception when calling DefaultApi->listCoins2: $e\n'); + print('Exception when calling DefaultApi->listCoins: $e\n'); }
    -
    +
    import org.openapitools.client.api.DataApi;
     
     public class DataApiExample {
         public static void main(String[] args) {
             DataApi apiInstance = new DataApi();
    -        String projectOwner = projectOwner_example; // String | 
    -        String projectSlug = projectSlug_example; // String | 
    +        String owner = owner_example; // String | 
    +        String slug = slug_example; // String | 
             String projectId = projectId_example; // String | 
             Integer version = 56; // Integer | 
             Integer limit = 56; // Integer | 
    @@ -9695,20 +9604,20 @@ 

    Usage and SDK Samples

    String searchQuery = searchQuery_example; // String | try { - insights_service.ListCoinsResponse result = apiInstance.listCoins2(projectOwner, projectSlug, projectId, version, limit, offset, searchQuery); + insights_service.ListCoinsResponse result = apiInstance.listCoins(owner, slug, projectId, version, limit, offset, searchQuery); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DataApi#listCoins2"); + System.err.println("Exception when calling DataApi#listCoins"); e.printStackTrace(); } } }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -9719,8 +9628,8 @@ 

    Usage and SDK Samples

    // Create an instance of the API class DataApi *apiInstance = [[DataApi alloc] init]; -String *projectOwner = projectOwner_example; // (optional) (default to null) -String *projectSlug = projectSlug_example; // (optional) (default to null) +String *owner = owner_example; // (default to null) +String *slug = slug_example; // (default to null) String *projectId = projectId_example; // (optional) (default to null) Integer *version = 56; // (optional) (default to null) Integer *limit = 56; // (optional) (default to null) @@ -9728,8 +9637,8 @@

    Usage and SDK Samples

    String *searchQuery = searchQuery_example; // (optional) (default to null) // List coins -[apiInstance listCoins2With:projectOwner - projectSlug:projectSlug +[apiInstance listCoinsWith:owner + slug:slug projectId:projectId version:version limit:limit @@ -9746,7 +9655,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -9758,9 +9667,9 @@ 

    Usage and SDK Samples

    // Create an instance of the API class var api = new SentioApi.DataApi() +var owner = owner_example; // {String} +var slug = slug_example; // {String} var opts = { - 'projectOwner': projectOwner_example, // {String} - 'projectSlug': projectSlug_example, // {String} 'projectId': projectId_example, // {String} 'version': 56, // {Integer} 'limit': 56, // {Integer} @@ -9775,14 +9684,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.listCoins2(opts, callback); +api.listCoins(owner, slug, opts, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -9791,7 +9700,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class listCoins2Example + public class listCoinsExample { public void main() { @@ -9802,8 +9711,8 @@

    Usage and SDK Samples

    // Create an instance of the API class var apiInstance = new DataApi(); - var projectOwner = projectOwner_example; // String | (optional) (default to null) - var projectSlug = projectSlug_example; // String | (optional) (default to null) + var owner = owner_example; // String | (default to null) + var slug = slug_example; // String | (default to null) var projectId = projectId_example; // String | (optional) (default to null) var version = 56; // Integer | (optional) (default to null) var limit = 56; // Integer | (optional) (default to null) @@ -9812,10 +9721,10 @@

    Usage and SDK Samples

    try { // List coins - insights_service.ListCoinsResponse result = apiInstance.listCoins2(projectOwner, projectSlug, projectId, version, limit, offset, searchQuery); + insights_service.ListCoinsResponse result = apiInstance.listCoins(owner, slug, projectId, version, limit, offset, searchQuery); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DataApi.listCoins2: " + e.Message ); + Debug.Print("Exception when calling DataApi.listCoins: " + e.Message ); } } } @@ -9823,7 +9732,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -9834,8 +9743,8 @@ 

    Usage and SDK Samples

    // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\DataApi(); -$projectOwner = projectOwner_example; // String | -$projectSlug = projectSlug_example; // String | +$owner = owner_example; // String | +$slug = slug_example; // String | $projectId = projectId_example; // String | $version = 56; // Integer | $limit = 56; // Integer | @@ -9843,15 +9752,15 @@

    Usage and SDK Samples

    $searchQuery = searchQuery_example; // String | try { - $result = $api_instance->listCoins2($projectOwner, $projectSlug, $projectId, $version, $limit, $offset, $searchQuery); + $result = $api_instance->listCoins($owner, $slug, $projectId, $version, $limit, $offset, $searchQuery); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DataApi->listCoins2: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DataApi->listCoins: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DataApi;
    @@ -9863,8 +9772,8 @@ 

    Usage and SDK Samples

    # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::DataApi->new(); -my $projectOwner = projectOwner_example; # String | -my $projectSlug = projectSlug_example; # String | +my $owner = owner_example; # String | +my $slug = slug_example; # String | my $projectId = projectId_example; # String | my $version = 56; # Integer | my $limit = 56; # Integer | @@ -9872,15 +9781,15 @@

    Usage and SDK Samples

    my $searchQuery = searchQuery_example; # String | eval { - my $result = $api_instance->listCoins2(projectOwner => $projectOwner, projectSlug => $projectSlug, projectId => $projectId, version => $version, limit => $limit, offset => $offset, searchQuery => $searchQuery); + my $result = $api_instance->listCoins(owner => $owner, slug => $slug, projectId => $projectId, version => $version, limit => $limit, offset => $offset, searchQuery => $searchQuery); print Dumper($result); }; if ($@) { - warn "Exception when calling DataApi->listCoins2: $@\n"; + warn "Exception when calling DataApi->listCoins: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -9894,8 +9803,8 @@ 

    Usage and SDK Samples

    # Create an instance of the API class api_instance = openapi_client.DataApi() -projectOwner = projectOwner_example # String | (optional) (default to null) -projectSlug = projectSlug_example # String | (optional) (default to null) +owner = owner_example # String | (default to null) +slug = slug_example # String | (default to null) projectId = projectId_example # String | (optional) (default to null) version = 56 # Integer | (optional) (default to null) limit = 56 # Integer | (optional) (default to null) @@ -9904,18 +9813,18 @@

    Usage and SDK Samples

    try: # List coins - api_response = api_instance.list_coins2(projectOwner=projectOwner, projectSlug=projectSlug, projectId=projectId, version=version, limit=limit, offset=offset, searchQuery=searchQuery) + api_response = api_instance.list_coins(owner, slug, projectId=projectId, version=version, limit=limit, offset=offset, searchQuery=searchQuery) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->listCoins2: %s\n" % e)
    + print("Exception when calling DataApi->listCoins: %s\n" % e)
    -
    +
    extern crate DataApi;
     
     pub fn main() {
    -    let projectOwner = projectOwner_example; // String
    -    let projectSlug = projectSlug_example; // String
    +    let owner = owner_example; // String
    +    let slug = slug_example; // String
         let projectId = projectId_example; // String
         let version = 56; // Integer
         let limit = 56; // Integer
    @@ -9923,7 +9832,7 @@ 

    Usage and SDK Samples

    let searchQuery = searchQuery_example; // String let mut context = DataApi::Context::default(); - let result = client.listCoins2(projectOwner, projectSlug, projectId, version, limit, offset, searchQuery, &context).wait(); + let result = client.listCoins(owner, slug, projectId, version, limit, offset, searchQuery, &context).wait(); println!("{:?}", result); } @@ -9938,21 +9847,17 @@

    Scopes

    Parameters

    - - - - -
    Query parameters
    +
    Path parameters
    - - - - - + + + + + - + +
    NameDescription
    projectOwner
    NameDescription
    owner* -
    +
    @@ -9960,16 +9865,19 @@

    Parameters

    +
    + Required +
    projectSlug
    slug* -
    +
    @@ -9977,16 +9885,30 @@

    Parameters

    +
    + Required +
    + + + + +
    Query parameters
    + + + + +
    NameDescription
    projectId -
    +
    @@ -10003,7 +9925,7 @@

    Parameters

    -
    +
    @@ -10023,7 +9945,7 @@

    Parameters

    -
    +
    @@ -10043,7 +9965,7 @@

    Parameters

    -
    +
    @@ -10063,7 +9985,7 @@

    Parameters

    -
    +
    @@ -10079,23 +10001,23 @@

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    query

    -

    Insight Query

    +

    listCoins2

    +

    List coins

    -

    Query for metrics,event logs and coin prices in a project.

    +

    Get a list of coins in a project.


    -
    /api/v1/insights/{owner}/{slug}/query
    +
    /api/v1/insights/coins

    Usage and SDK Samples

    -
    -
    curl -X POST \
    +                          
    +
    curl -X GET \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
    - -H "Content-Type: application/json" \
    - "https://app.sentio.xyz/api/v1/insights/{owner}/{slug}/query" \
    - -d ''
    + "https://app.sentio.xyz/api/v1/insights/coins?projectOwner=projectOwner_example&projectSlug=projectSlug_example&projectId=projectId_example&version=56&limit=56&offset=56&searchQuery=searchQuery_example"
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -10221,15 +10141,19 @@ 

    Usage and SDK Samples

    // Create an instance of the API class DataApi apiInstance = new DataApi(); - String owner = owner_example; // String | username or organization name - String slug = slug_example; // String | project slug - InsightsServiceInsightsServiceQueryBody body = ; // InsightsServiceInsightsServiceQueryBody | + String projectOwner = projectOwner_example; // String | + String projectSlug = projectSlug_example; // String | + String projectId = projectId_example; // String | + Integer version = 56; // Integer | + Integer limit = 56; // Integer | + Integer offset = 56; // Integer | + String searchQuery = searchQuery_example; // String | try { - insights_service.QueryResponse result = apiInstance.query(owner, slug, body); + insights_service.ListCoinsResponse result = apiInstance.listCoins2(projectOwner, projectSlug, projectId, version, limit, offset, searchQuery); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DataApi#query"); + System.err.println("Exception when calling DataApi#listCoins2"); e.printStackTrace(); } } @@ -10237,50 +10161,58 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
     
    -final String owner = new String(); // String | username or organization name
    -final String slug = new String(); // String | project slug
    -final InsightsServiceInsightsServiceQueryBody body = new InsightsServiceInsightsServiceQueryBody(); // InsightsServiceInsightsServiceQueryBody | 
    +final String projectOwner = new String(); // String | 
    +final String projectSlug = new String(); // String | 
    +final String projectId = new String(); // String | 
    +final Integer version = new Integer(); // Integer | 
    +final Integer limit = new Integer(); // Integer | 
    +final Integer offset = new Integer(); // Integer | 
    +final String searchQuery = new String(); // String | 
     
     try {
    -    final result = await api_instance.query(owner, slug, body);
    +    final result = await api_instance.listCoins2(projectOwner, projectSlug, projectId, version, limit, offset, searchQuery);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->query: $e\n');
    +    print('Exception when calling DefaultApi->listCoins2: $e\n');
     }
     
     
    -
    +
    import org.openapitools.client.api.DataApi;
     
     public class DataApiExample {
         public static void main(String[] args) {
             DataApi apiInstance = new DataApi();
    -        String owner = owner_example; // String | username or organization name
    -        String slug = slug_example; // String | project slug
    -        InsightsServiceInsightsServiceQueryBody body = ; // InsightsServiceInsightsServiceQueryBody | 
    +        String projectOwner = projectOwner_example; // String | 
    +        String projectSlug = projectSlug_example; // String | 
    +        String projectId = projectId_example; // String | 
    +        Integer version = 56; // Integer | 
    +        Integer limit = 56; // Integer | 
    +        Integer offset = 56; // Integer | 
    +        String searchQuery = searchQuery_example; // String | 
     
             try {
    -            insights_service.QueryResponse result = apiInstance.query(owner, slug, body);
    +            insights_service.ListCoinsResponse result = apiInstance.listCoins2(projectOwner, projectSlug, projectId, version, limit, offset, searchQuery);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DataApi#query");
    +            System.err.println("Exception when calling DataApi#listCoins2");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -10291,15 +10223,23 @@ 

    Usage and SDK Samples

    // Create an instance of the API class DataApi *apiInstance = [[DataApi alloc] init]; -String *owner = owner_example; // username or organization name (default to null) -String *slug = slug_example; // project slug (default to null) -InsightsServiceInsightsServiceQueryBody *body = ; // +String *projectOwner = projectOwner_example; // (optional) (default to null) +String *projectSlug = projectSlug_example; // (optional) (default to null) +String *projectId = projectId_example; // (optional) (default to null) +Integer *version = 56; // (optional) (default to null) +Integer *limit = 56; // (optional) (default to null) +Integer *offset = 56; // (optional) (default to null) +String *searchQuery = searchQuery_example; // (optional) (default to null) -// Insight Query -[apiInstance queryWith:owner - slug:slug - body:body - completionHandler: ^(insights_service.QueryResponse output, NSError* error) { +// List coins +[apiInstance listCoins2With:projectOwner + projectSlug:projectSlug + projectId:projectId + version:version + limit:limit + offset:offset + searchQuery:searchQuery + completionHandler: ^(insights_service.ListCoinsResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -10310,7 +10250,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -10322,9 +10262,15 @@ 

    Usage and SDK Samples

    // Create an instance of the API class var api = new SentioApi.DataApi() -var owner = owner_example; // {String} username or organization name -var slug = slug_example; // {String} project slug -var body = ; // {InsightsServiceInsightsServiceQueryBody} +var opts = { + 'projectOwner': projectOwner_example, // {String} + 'projectSlug': projectSlug_example, // {String} + 'projectId': projectId_example, // {String} + 'version': 56, // {Integer} + 'limit': 56, // {Integer} + 'offset': 56, // {Integer} + 'searchQuery': searchQuery_example // {String} +}; var callback = function(error, data, response) { if (error) { @@ -10333,14 +10279,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.query(owner, slug, body, callback); +api.listCoins2(opts, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -10349,7 +10295,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class queryExample + public class listCoins2Example { public void main() { @@ -10360,16 +10306,20 @@

    Usage and SDK Samples

    // Create an instance of the API class var apiInstance = new DataApi(); - var owner = owner_example; // String | username or organization name (default to null) - var slug = slug_example; // String | project slug (default to null) - var body = new InsightsServiceInsightsServiceQueryBody(); // InsightsServiceInsightsServiceQueryBody | + var projectOwner = projectOwner_example; // String | (optional) (default to null) + var projectSlug = projectSlug_example; // String | (optional) (default to null) + var projectId = projectId_example; // String | (optional) (default to null) + var version = 56; // Integer | (optional) (default to null) + var limit = 56; // Integer | (optional) (default to null) + var offset = 56; // Integer | (optional) (default to null) + var searchQuery = searchQuery_example; // String | (optional) (default to null) try { - // Insight Query - insights_service.QueryResponse result = apiInstance.query(owner, slug, body); + // List coins + insights_service.ListCoinsResponse result = apiInstance.listCoins2(projectOwner, projectSlug, projectId, version, limit, offset, searchQuery); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DataApi.query: " + e.Message ); + Debug.Print("Exception when calling DataApi.listCoins2: " + e.Message ); } } } @@ -10377,7 +10327,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -10388,20 +10338,24 @@ 

    Usage and SDK Samples

    // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\DataApi(); -$owner = owner_example; // String | username or organization name -$slug = slug_example; // String | project slug -$body = ; // InsightsServiceInsightsServiceQueryBody | +$projectOwner = projectOwner_example; // String | +$projectSlug = projectSlug_example; // String | +$projectId = projectId_example; // String | +$version = 56; // Integer | +$limit = 56; // Integer | +$offset = 56; // Integer | +$searchQuery = searchQuery_example; // String | try { - $result = $api_instance->query($owner, $slug, $body); + $result = $api_instance->listCoins2($projectOwner, $projectSlug, $projectId, $version, $limit, $offset, $searchQuery); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DataApi->query: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DataApi->listCoins2: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DataApi;
    @@ -10413,20 +10367,24 @@ 

    Usage and SDK Samples

    # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::DataApi->new(); -my $owner = owner_example; # String | username or organization name -my $slug = slug_example; # String | project slug -my $body = WWW::OPenAPIClient::Object::InsightsServiceInsightsServiceQueryBody->new(); # InsightsServiceInsightsServiceQueryBody | - -eval { - my $result = $api_instance->query(owner => $owner, slug => $slug, body => $body); +my $projectOwner = projectOwner_example; # String | +my $projectSlug = projectSlug_example; # String | +my $projectId = projectId_example; # String | +my $version = 56; # Integer | +my $limit = 56; # Integer | +my $offset = 56; # Integer | +my $searchQuery = searchQuery_example; # String | + +eval { + my $result = $api_instance->listCoins2(projectOwner => $projectOwner, projectSlug => $projectSlug, projectId => $projectId, version => $version, limit => $limit, offset => $offset, searchQuery => $searchQuery); print Dumper($result); }; if ($@) { - warn "Exception when calling DataApi->query: $@\n"; + warn "Exception when calling DataApi->listCoins2: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -10440,28 +10398,36 @@ 

    Usage and SDK Samples

    # Create an instance of the API class api_instance = openapi_client.DataApi() -owner = owner_example # String | username or organization name (default to null) -slug = slug_example # String | project slug (default to null) -body = # InsightsServiceInsightsServiceQueryBody | +projectOwner = projectOwner_example # String | (optional) (default to null) +projectSlug = projectSlug_example # String | (optional) (default to null) +projectId = projectId_example # String | (optional) (default to null) +version = 56 # Integer | (optional) (default to null) +limit = 56 # Integer | (optional) (default to null) +offset = 56 # Integer | (optional) (default to null) +searchQuery = searchQuery_example # String | (optional) (default to null) try: - # Insight Query - api_response = api_instance.query(owner, slug, body) + # List coins + api_response = api_instance.list_coins2(projectOwner=projectOwner, projectSlug=projectSlug, projectId=projectId, version=version, limit=limit, offset=offset, searchQuery=searchQuery) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->query: %s\n" % e)
    + print("Exception when calling DataApi->listCoins2: %s\n" % e)
    -
    +
    extern crate DataApi;
     
     pub fn main() {
    -    let owner = owner_example; // String
    -    let slug = slug_example; // String
    -    let body = ; // InsightsServiceInsightsServiceQueryBody
    +    let projectOwner = projectOwner_example; // String
    +    let projectSlug = projectSlug_example; // String
    +    let projectId = projectId_example; // String
    +    let version = 56; // Integer
    +    let limit = 56; // Integer
    +    let offset = 56; // Integer
    +    let searchQuery = searchQuery_example; // String
     
         let mut context = DataApi::Context::default();
    -    let result = client.query(owner, slug, body, &context).wait();
    +    let result = client.listCoins2(projectOwner, projectSlug, projectId, version, limit, offset, searchQuery, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -10476,130 +10442,164 @@ 

    Scopes

    Parameters

    -
    Path parameters
    + + + + +
    Query parameters
    - - - - - + + + + + - + -
    NameDescription
    owner*
    NameDescription
    projectOwner -
    +
    String -
    -username or organization name -
    -
    - Required -
    slug*
    projectSlug -
    +
    String -
    -project slug -
    -
    - Required -
    + projectId + -
    Body parameters
    - - - - - - +
    +
    +
    + + String + + +
    +
    +
    + + + + -
    NameDescription
    body *
    version -

    - -
    +
    +
    +
    + + Integer + + + (int32) + + +
    +
    +
    + limit + + + +
    +
    +
    + + Integer + + + (int32) + + +
    +
    +
    + + + + offset + + + +
    +
    +
    + + Integer + + + (int32) + + +
    +
    +
    + + + + searchQuery + +
    +
    +
    + + String + + +
    +
    +
    + + + +

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    queryInstant

    -

    Metric instant queries

    +

    query

    +

    Insight Query

    -

    +

    Query for metrics,event logs and coin prices in a project.


    -
    /api/v1/metrics/{owner}/{slug}/query
    +
    /api/v1/insights/{owner}/{slug}/query

    Usage and SDK Samples

    -
    +
    curl -X POST \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
      -H "Content-Type: application/json" \
    - "https://app.sentio.xyz/api/v1/metrics/{owner}/{slug}/query" \
    + "https://app.sentio.xyz/api/v1/insights/{owner}/{slug}/query" \
      -d ''
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -10727,13 +10727,13 @@ 

    Usage and SDK Samples

    DataApi apiInstance = new DataApi(); String owner = owner_example; // String | username or organization name String slug = slug_example; // String | project slug - MetricsServiceObservabilityServiceQueryBody body = ; // MetricsServiceObservabilityServiceQueryBody | + InsightsServiceInsightsServiceQueryBody body = ; // InsightsServiceInsightsServiceQueryBody | try { - metrics_service.QueryValueResponse result = apiInstance.queryInstant(owner, slug, body); + insights_service.QueryResponse result = apiInstance.query(owner, slug, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DataApi#queryInstant"); + System.err.println("Exception when calling DataApi#query"); e.printStackTrace(); } } @@ -10741,26 +10741,26 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
     
     final String owner = new String(); // String | username or organization name
     final String slug = new String(); // String | project slug
    -final MetricsServiceObservabilityServiceQueryBody body = new MetricsServiceObservabilityServiceQueryBody(); // MetricsServiceObservabilityServiceQueryBody | 
    +final InsightsServiceInsightsServiceQueryBody body = new InsightsServiceInsightsServiceQueryBody(); // InsightsServiceInsightsServiceQueryBody | 
     
     try {
    -    final result = await api_instance.queryInstant(owner, slug, body);
    +    final result = await api_instance.query(owner, slug, body);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->queryInstant: $e\n');
    +    print('Exception when calling DefaultApi->query: $e\n');
     }
     
     
    -
    +
    import org.openapitools.client.api.DataApi;
     
     public class DataApiExample {
    @@ -10768,23 +10768,23 @@ 

    Usage and SDK Samples

    DataApi apiInstance = new DataApi(); String owner = owner_example; // String | username or organization name String slug = slug_example; // String | project slug - MetricsServiceObservabilityServiceQueryBody body = ; // MetricsServiceObservabilityServiceQueryBody | + InsightsServiceInsightsServiceQueryBody body = ; // InsightsServiceInsightsServiceQueryBody | try { - metrics_service.QueryValueResponse result = apiInstance.queryInstant(owner, slug, body); + insights_service.QueryResponse result = apiInstance.query(owner, slug, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DataApi#queryInstant"); + System.err.println("Exception when calling DataApi#query"); e.printStackTrace(); } } }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -10797,13 +10797,13 @@ 

    Usage and SDK Samples

    DataApi *apiInstance = [[DataApi alloc] init]; String *owner = owner_example; // username or organization name (default to null) String *slug = slug_example; // project slug (default to null) -MetricsServiceObservabilityServiceQueryBody *body = ; // +InsightsServiceInsightsServiceQueryBody *body = ; // -// Metric instant queries -[apiInstance queryInstantWith:owner +// Insight Query +[apiInstance queryWith:owner slug:slug body:body - completionHandler: ^(metrics_service.QueryValueResponse output, NSError* error) { + completionHandler: ^(insights_service.QueryResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -10814,7 +10814,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -10828,7 +10828,7 @@ 

    Usage and SDK Samples

    var api = new SentioApi.DataApi() var owner = owner_example; // {String} username or organization name var slug = slug_example; // {String} project slug -var body = ; // {MetricsServiceObservabilityServiceQueryBody} +var body = ; // {InsightsServiceInsightsServiceQueryBody} var callback = function(error, data, response) { if (error) { @@ -10837,14 +10837,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.queryInstant(owner, slug, body, callback); +api.query(owner, slug, body, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -10853,7 +10853,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class queryInstantExample + public class queryExample { public void main() { @@ -10866,14 +10866,14 @@

    Usage and SDK Samples

    var apiInstance = new DataApi(); var owner = owner_example; // String | username or organization name (default to null) var slug = slug_example; // String | project slug (default to null) - var body = new MetricsServiceObservabilityServiceQueryBody(); // MetricsServiceObservabilityServiceQueryBody | + var body = new InsightsServiceInsightsServiceQueryBody(); // InsightsServiceInsightsServiceQueryBody | try { - // Metric instant queries - metrics_service.QueryValueResponse result = apiInstance.queryInstant(owner, slug, body); + // Insight Query + insights_service.QueryResponse result = apiInstance.query(owner, slug, body); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DataApi.queryInstant: " + e.Message ); + Debug.Print("Exception when calling DataApi.query: " + e.Message ); } } } @@ -10881,7 +10881,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -10894,18 +10894,18 @@ 

    Usage and SDK Samples

    $api_instance = new OpenAPITools\Client\Api\DataApi(); $owner = owner_example; // String | username or organization name $slug = slug_example; // String | project slug -$body = ; // MetricsServiceObservabilityServiceQueryBody | +$body = ; // InsightsServiceInsightsServiceQueryBody | try { - $result = $api_instance->queryInstant($owner, $slug, $body); + $result = $api_instance->query($owner, $slug, $body); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DataApi->queryInstant: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DataApi->query: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DataApi;
    @@ -10919,18 +10919,18 @@ 

    Usage and SDK Samples

    my $api_instance = WWW::OPenAPIClient::DataApi->new(); my $owner = owner_example; # String | username or organization name my $slug = slug_example; # String | project slug -my $body = WWW::OPenAPIClient::Object::MetricsServiceObservabilityServiceQueryBody->new(); # MetricsServiceObservabilityServiceQueryBody | +my $body = WWW::OPenAPIClient::Object::InsightsServiceInsightsServiceQueryBody->new(); # InsightsServiceInsightsServiceQueryBody | eval { - my $result = $api_instance->queryInstant(owner => $owner, slug => $slug, body => $body); + my $result = $api_instance->query(owner => $owner, slug => $slug, body => $body); print Dumper($result); }; if ($@) { - warn "Exception when calling DataApi->queryInstant: $@\n"; + warn "Exception when calling DataApi->query: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -10946,26 +10946,26 @@ 

    Usage and SDK Samples

    api_instance = openapi_client.DataApi() owner = owner_example # String | username or organization name (default to null) slug = slug_example # String | project slug (default to null) -body = # MetricsServiceObservabilityServiceQueryBody | +body = # InsightsServiceInsightsServiceQueryBody | try: - # Metric instant queries - api_response = api_instance.query_instant(owner, slug, body) + # Insight Query + api_response = api_instance.query(owner, slug, body) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->queryInstant: %s\n" % e)
    + print("Exception when calling DataApi->query: %s\n" % e)
    -
    +
    extern crate DataApi;
     
     pub fn main() {
         let owner = owner_example; // String
         let slug = slug_example; // String
    -    let body = ; // MetricsServiceObservabilityServiceQueryBody
    +    let body = ; // InsightsServiceInsightsServiceQueryBody
     
         let mut context = DataApi::Context::default();
    -    let result = client.queryInstant(owner, slug, body, &context).wait();
    +    let result = client.query(owner, slug, body, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -10990,7 +10990,7 @@ 

    Parameters

    -
    +
    @@ -11013,7 +11013,7 @@

    Parameters

    -
    +
    @@ -11050,7 +11050,7 @@

    Parameters

    "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/metrics_service.ObservabilityService.QueryBody" + "$ref" : "#/components/schemas/insights_service.InsightsService.QueryBody" } } }, @@ -11073,12 +11073,12 @@

    Parameters

    } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_queryInstant_body'); + var result = $('#d2e199_query_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -11087,23 +11087,23 @@

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    queryLog

    -

    Query event logs

    +

    queryInstant

    +

    Metric instant queries

    @@ -11178,37 +11178,37 @@

    queryLog


    -
    /api/v1/eventlogs/{owner}/{slug}
    +
    /api/v1/metrics/{owner}/{slug}/query

    Usage and SDK Samples

    -
    +
    curl -X POST \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
      -H "Content-Type: application/json" \
    - "https://app.sentio.xyz/api/v1/eventlogs/{owner}/{slug}" \
    + "https://app.sentio.xyz/api/v1/metrics/{owner}/{slug}/query" \
      -d ''
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -11229,15 +11229,15 @@ 

    Usage and SDK Samples

    // Create an instance of the API class DataApi apiInstance = new DataApi(); - String owner = owner_example; // String | - String slug = slug_example; // String | - AnalyticServiceSearchServiceQueryLogBody body = ; // AnalyticServiceSearchServiceQueryLogBody | + String owner = owner_example; // String | username or organization name + String slug = slug_example; // String | project slug + MetricsServiceObservabilityServiceQueryBody body = ; // MetricsServiceObservabilityServiceQueryBody | try { - analytic_service.LogQueryResponse result = apiInstance.queryLog(owner, slug, body); + metrics_service.QueryValueResponse result = apiInstance.queryInstant(owner, slug, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DataApi#queryLog"); + System.err.println("Exception when calling DataApi#queryInstant"); e.printStackTrace(); } } @@ -11245,50 +11245,50 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
     
    -final String owner = new String(); // String | 
    -final String slug = new String(); // String | 
    -final AnalyticServiceSearchServiceQueryLogBody body = new AnalyticServiceSearchServiceQueryLogBody(); // AnalyticServiceSearchServiceQueryLogBody | 
    +final String owner = new String(); // String | username or organization name
    +final String slug = new String(); // String | project slug
    +final MetricsServiceObservabilityServiceQueryBody body = new MetricsServiceObservabilityServiceQueryBody(); // MetricsServiceObservabilityServiceQueryBody | 
     
     try {
    -    final result = await api_instance.queryLog(owner, slug, body);
    +    final result = await api_instance.queryInstant(owner, slug, body);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->queryLog: $e\n');
    +    print('Exception when calling DefaultApi->queryInstant: $e\n');
     }
     
     
    -
    +
    import org.openapitools.client.api.DataApi;
     
     public class DataApiExample {
         public static void main(String[] args) {
             DataApi apiInstance = new DataApi();
    -        String owner = owner_example; // String | 
    -        String slug = slug_example; // String | 
    -        AnalyticServiceSearchServiceQueryLogBody body = ; // AnalyticServiceSearchServiceQueryLogBody | 
    +        String owner = owner_example; // String | username or organization name
    +        String slug = slug_example; // String | project slug
    +        MetricsServiceObservabilityServiceQueryBody body = ; // MetricsServiceObservabilityServiceQueryBody | 
     
             try {
    -            analytic_service.LogQueryResponse result = apiInstance.queryLog(owner, slug, body);
    +            metrics_service.QueryValueResponse result = apiInstance.queryInstant(owner, slug, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DataApi#queryLog");
    +            System.err.println("Exception when calling DataApi#queryInstant");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -11299,15 +11299,15 @@ 

    Usage and SDK Samples

    // Create an instance of the API class DataApi *apiInstance = [[DataApi alloc] init]; -String *owner = owner_example; // (default to null) -String *slug = slug_example; // (default to null) -AnalyticServiceSearchServiceQueryLogBody *body = ; // +String *owner = owner_example; // username or organization name (default to null) +String *slug = slug_example; // project slug (default to null) +MetricsServiceObservabilityServiceQueryBody *body = ; // -// Query event logs -[apiInstance queryLogWith:owner +// Metric instant queries +[apiInstance queryInstantWith:owner slug:slug body:body - completionHandler: ^(analytic_service.LogQueryResponse output, NSError* error) { + completionHandler: ^(metrics_service.QueryValueResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -11318,7 +11318,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -11330,9 +11330,9 @@ 

    Usage and SDK Samples

    // Create an instance of the API class var api = new SentioApi.DataApi() -var owner = owner_example; // {String} -var slug = slug_example; // {String} -var body = ; // {AnalyticServiceSearchServiceQueryLogBody} +var owner = owner_example; // {String} username or organization name +var slug = slug_example; // {String} project slug +var body = ; // {MetricsServiceObservabilityServiceQueryBody} var callback = function(error, data, response) { if (error) { @@ -11341,14 +11341,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.queryLog(owner, slug, body, callback); +api.queryInstant(owner, slug, body, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -11357,7 +11357,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class queryLogExample + public class queryInstantExample { public void main() { @@ -11368,16 +11368,16 @@

    Usage and SDK Samples

    // Create an instance of the API class var apiInstance = new DataApi(); - var owner = owner_example; // String | (default to null) - var slug = slug_example; // String | (default to null) - var body = new AnalyticServiceSearchServiceQueryLogBody(); // AnalyticServiceSearchServiceQueryLogBody | + var owner = owner_example; // String | username or organization name (default to null) + var slug = slug_example; // String | project slug (default to null) + var body = new MetricsServiceObservabilityServiceQueryBody(); // MetricsServiceObservabilityServiceQueryBody | try { - // Query event logs - analytic_service.LogQueryResponse result = apiInstance.queryLog(owner, slug, body); + // Metric instant queries + metrics_service.QueryValueResponse result = apiInstance.queryInstant(owner, slug, body); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DataApi.queryLog: " + e.Message ); + Debug.Print("Exception when calling DataApi.queryInstant: " + e.Message ); } } } @@ -11385,7 +11385,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -11396,20 +11396,20 @@ 

    Usage and SDK Samples

    // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\DataApi(); -$owner = owner_example; // String | -$slug = slug_example; // String | -$body = ; // AnalyticServiceSearchServiceQueryLogBody | +$owner = owner_example; // String | username or organization name +$slug = slug_example; // String | project slug +$body = ; // MetricsServiceObservabilityServiceQueryBody | try { - $result = $api_instance->queryLog($owner, $slug, $body); + $result = $api_instance->queryInstant($owner, $slug, $body); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DataApi->queryLog: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DataApi->queryInstant: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DataApi;
    @@ -11421,20 +11421,20 @@ 

    Usage and SDK Samples

    # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::DataApi->new(); -my $owner = owner_example; # String | -my $slug = slug_example; # String | -my $body = WWW::OPenAPIClient::Object::AnalyticServiceSearchServiceQueryLogBody->new(); # AnalyticServiceSearchServiceQueryLogBody | +my $owner = owner_example; # String | username or organization name +my $slug = slug_example; # String | project slug +my $body = WWW::OPenAPIClient::Object::MetricsServiceObservabilityServiceQueryBody->new(); # MetricsServiceObservabilityServiceQueryBody | eval { - my $result = $api_instance->queryLog(owner => $owner, slug => $slug, body => $body); + my $result = $api_instance->queryInstant(owner => $owner, slug => $slug, body => $body); print Dumper($result); }; if ($@) { - warn "Exception when calling DataApi->queryLog: $@\n"; + warn "Exception when calling DataApi->queryInstant: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -11448,28 +11448,28 @@ 

    Usage and SDK Samples

    # Create an instance of the API class api_instance = openapi_client.DataApi() -owner = owner_example # String | (default to null) -slug = slug_example # String | (default to null) -body = # AnalyticServiceSearchServiceQueryLogBody | +owner = owner_example # String | username or organization name (default to null) +slug = slug_example # String | project slug (default to null) +body = # MetricsServiceObservabilityServiceQueryBody | try: - # Query event logs - api_response = api_instance.query_log(owner, slug, body) + # Metric instant queries + api_response = api_instance.query_instant(owner, slug, body) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->queryLog: %s\n" % e)
    + print("Exception when calling DataApi->queryInstant: %s\n" % e)
    -
    +
    extern crate DataApi;
     
     pub fn main() {
         let owner = owner_example; // String
         let slug = slug_example; // String
    -    let body = ; // AnalyticServiceSearchServiceQueryLogBody
    +    let body = ; // MetricsServiceObservabilityServiceQueryBody
     
         let mut context = DataApi::Context::default();
    -    let result = client.queryLog(owner, slug, body, &context).wait();
    +    let result = client.queryInstant(owner, slug, body, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -11494,13 +11494,16 @@ 

    Parameters

    -
    +
    String +
    +username or organization name +
    Required @@ -11514,13 +11517,16 @@

    Parameters

    -
    +
    String +
    +project slug +
    Required @@ -11548,7 +11554,7 @@

    Parameters

    "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/analytic_service.SearchService.QueryLogBody" + "$ref" : "#/components/schemas/metrics_service.ObservabilityService.QueryBody" } } }, @@ -11571,12 +11577,12 @@

    Parameters

    } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_queryLog_body'); + var result = $('#d2e199_queryInstant_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -11585,23 +11591,23 @@

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    queryLog2

    +

    queryLog

    Query event logs

    @@ -11676,35 +11682,37 @@

    queryLog2


    -
    /api/v1/eventlogs/{owner}/{slug}/query
    +
    /api/v1/eventlogs/{owner}/{slug}

    Usage and SDK Samples

    -
    -
    curl -X GET \
    +                          
    +
    curl -X POST \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
    - "https://app.sentio.xyz/api/v1/eventlogs/{owner}/{slug}/query?projectId=projectId_example&query=query_example&timeRange.start.relativeTime.unit=timeRangePeriodstartPeriodrelativeTimePeriodunit_example&timeRange.start.relativeTime.value=56&timeRange.start.relativeTime.align=timeRangePeriodstartPeriodrelativeTimePeriodalign_example&timeRange.start.absoluteTime=timeRangePeriodstartPeriodabsoluteTime_example&timeRange.end.relativeTime.unit=timeRangePeriodendPeriodrelativeTimePeriodunit_example&timeRange.end.relativeTime.value=56&timeRange.end.relativeTime.align=timeRangePeriodendPeriodrelativeTimePeriodalign_example&timeRange.end.absoluteTime=timeRangePeriodendPeriodabsoluteTime_example&timeRange.step=timeRangePeriodstep_example&timeRange.interval.value=1.2&timeRange.interval.unit=timeRangePeriodintervalPeriodunit_example&timeRange.timezone=timeRangePeriodtimezone_example&limit=56&offset=56&version=56"
    + -H "Content-Type: application/json" \
    + "https://app.sentio.xyz/api/v1/eventlogs/{owner}/{slug}" \
    + -d ''
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -11727,29 +11735,13 @@ 

    Usage and SDK Samples

    DataApi apiInstance = new DataApi(); String owner = owner_example; // String | String slug = slug_example; // String | - String projectId = projectId_example; // String | - String query = query_example; // String | - String timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; // String | - Integer timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; // Integer | - String timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; // String | - String timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; // String | - String timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; // String | - Integer timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; // Integer | - String timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; // String | - String timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; // String | - String timeRangePeriodstep = timeRangePeriodstep_example; // String | - Double timeRangePeriodintervalPeriodvalue = 1.2; // Double | - String timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; // String | - String timeRangePeriodtimezone = timeRangePeriodtimezone_example; // String | - Integer limit = 56; // Integer | - Integer offset = 56; // Integer | - Integer version = 56; // Integer | + AnalyticServiceSearchServiceQueryLogBody body = ; // AnalyticServiceSearchServiceQueryLogBody | try { - analytic_service.LogQueryResponse result = apiInstance.queryLog2(owner, slug, projectId, query, timeRangePeriodstartPeriodrelativeTimePeriodunit, timeRangePeriodstartPeriodrelativeTimePeriodvalue, timeRangePeriodstartPeriodrelativeTimePeriodalign, timeRangePeriodstartPeriodabsoluteTime, timeRangePeriodendPeriodrelativeTimePeriodunit, timeRangePeriodendPeriodrelativeTimePeriodvalue, timeRangePeriodendPeriodrelativeTimePeriodalign, timeRangePeriodendPeriodabsoluteTime, timeRangePeriodstep, timeRangePeriodintervalPeriodvalue, timeRangePeriodintervalPeriodunit, timeRangePeriodtimezone, limit, offset, version); + analytic_service.LogQueryResponse result = apiInstance.queryLog(owner, slug, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DataApi#queryLog2"); + System.err.println("Exception when calling DataApi#queryLog"); e.printStackTrace(); } } @@ -11757,42 +11749,26 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
     
     final String owner = new String(); // String | 
     final String slug = new String(); // String | 
    -final String projectId = new String(); // String | 
    -final String query = new String(); // String | 
    -final String timeRangePeriodstartPeriodrelativeTimePeriodunit = new String(); // String | 
    -final Integer timeRangePeriodstartPeriodrelativeTimePeriodvalue = new Integer(); // Integer | 
    -final String timeRangePeriodstartPeriodrelativeTimePeriodalign = new String(); // String | 
    -final String timeRangePeriodstartPeriodabsoluteTime = new String(); // String | 
    -final String timeRangePeriodendPeriodrelativeTimePeriodunit = new String(); // String | 
    -final Integer timeRangePeriodendPeriodrelativeTimePeriodvalue = new Integer(); // Integer | 
    -final String timeRangePeriodendPeriodrelativeTimePeriodalign = new String(); // String | 
    -final String timeRangePeriodendPeriodabsoluteTime = new String(); // String | 
    -final String timeRangePeriodstep = new String(); // String | 
    -final Double timeRangePeriodintervalPeriodvalue = new Double(); // Double | 
    -final String timeRangePeriodintervalPeriodunit = new String(); // String | 
    -final String timeRangePeriodtimezone = new String(); // String | 
    -final Integer limit = new Integer(); // Integer | 
    -final Integer offset = new Integer(); // Integer | 
    -final Integer version = new Integer(); // Integer | 
    +final AnalyticServiceSearchServiceQueryLogBody body = new AnalyticServiceSearchServiceQueryLogBody(); // AnalyticServiceSearchServiceQueryLogBody | 
     
     try {
    -    final result = await api_instance.queryLog2(owner, slug, projectId, query, timeRangePeriodstartPeriodrelativeTimePeriodunit, timeRangePeriodstartPeriodrelativeTimePeriodvalue, timeRangePeriodstartPeriodrelativeTimePeriodalign, timeRangePeriodstartPeriodabsoluteTime, timeRangePeriodendPeriodrelativeTimePeriodunit, timeRangePeriodendPeriodrelativeTimePeriodvalue, timeRangePeriodendPeriodrelativeTimePeriodalign, timeRangePeriodendPeriodabsoluteTime, timeRangePeriodstep, timeRangePeriodintervalPeriodvalue, timeRangePeriodintervalPeriodunit, timeRangePeriodtimezone, limit, offset, version);
    +    final result = await api_instance.queryLog(owner, slug, body);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->queryLog2: $e\n');
    +    print('Exception when calling DefaultApi->queryLog: $e\n');
     }
     
     
    -
    +
    import org.openapitools.client.api.DataApi;
     
     public class DataApiExample {
    @@ -11800,39 +11776,23 @@ 

    Usage and SDK Samples

    DataApi apiInstance = new DataApi(); String owner = owner_example; // String | String slug = slug_example; // String | - String projectId = projectId_example; // String | - String query = query_example; // String | - String timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; // String | - Integer timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; // Integer | - String timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; // String | - String timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; // String | - String timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; // String | - Integer timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; // Integer | - String timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; // String | - String timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; // String | - String timeRangePeriodstep = timeRangePeriodstep_example; // String | - Double timeRangePeriodintervalPeriodvalue = 1.2; // Double | - String timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; // String | - String timeRangePeriodtimezone = timeRangePeriodtimezone_example; // String | - Integer limit = 56; // Integer | - Integer offset = 56; // Integer | - Integer version = 56; // Integer | + AnalyticServiceSearchServiceQueryLogBody body = ; // AnalyticServiceSearchServiceQueryLogBody | try { - analytic_service.LogQueryResponse result = apiInstance.queryLog2(owner, slug, projectId, query, timeRangePeriodstartPeriodrelativeTimePeriodunit, timeRangePeriodstartPeriodrelativeTimePeriodvalue, timeRangePeriodstartPeriodrelativeTimePeriodalign, timeRangePeriodstartPeriodabsoluteTime, timeRangePeriodendPeriodrelativeTimePeriodunit, timeRangePeriodendPeriodrelativeTimePeriodvalue, timeRangePeriodendPeriodrelativeTimePeriodalign, timeRangePeriodendPeriodabsoluteTime, timeRangePeriodstep, timeRangePeriodintervalPeriodvalue, timeRangePeriodintervalPeriodunit, timeRangePeriodtimezone, limit, offset, version); + analytic_service.LogQueryResponse result = apiInstance.queryLog(owner, slug, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DataApi#queryLog2"); + System.err.println("Exception when calling DataApi#queryLog"); e.printStackTrace(); } } }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -11845,44 +11805,12 @@ 

    Usage and SDK Samples

    DataApi *apiInstance = [[DataApi alloc] init]; String *owner = owner_example; // (default to null) String *slug = slug_example; // (default to null) -String *projectId = projectId_example; // (optional) (default to null) -String *query = query_example; // (optional) (default to null) -String *timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; // (optional) (default to null) -Integer *timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; // (optional) (default to null) -String *timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; // (optional) (default to null) -String *timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; // (optional) (default to null) -String *timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; // (optional) (default to null) -Integer *timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; // (optional) (default to null) -String *timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; // (optional) (default to null) -String *timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; // (optional) (default to null) -String *timeRangePeriodstep = timeRangePeriodstep_example; // (optional) (default to null) -Double *timeRangePeriodintervalPeriodvalue = 1.2; // (optional) (default to null) -String *timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; // (optional) (default to null) -String *timeRangePeriodtimezone = timeRangePeriodtimezone_example; // (optional) (default to null) -Integer *limit = 56; // (optional) (default to null) -Integer *offset = 56; // (optional) (default to null) -Integer *version = 56; // (optional) (default to null) +AnalyticServiceSearchServiceQueryLogBody *body = ; // // Query event logs -[apiInstance queryLog2With:owner +[apiInstance queryLogWith:owner slug:slug - projectId:projectId - query:query - timeRangePeriodstartPeriodrelativeTimePeriodunit:timeRangePeriodstartPeriodrelativeTimePeriodunit - timeRangePeriodstartPeriodrelativeTimePeriodvalue:timeRangePeriodstartPeriodrelativeTimePeriodvalue - timeRangePeriodstartPeriodrelativeTimePeriodalign:timeRangePeriodstartPeriodrelativeTimePeriodalign - timeRangePeriodstartPeriodabsoluteTime:timeRangePeriodstartPeriodabsoluteTime - timeRangePeriodendPeriodrelativeTimePeriodunit:timeRangePeriodendPeriodrelativeTimePeriodunit - timeRangePeriodendPeriodrelativeTimePeriodvalue:timeRangePeriodendPeriodrelativeTimePeriodvalue - timeRangePeriodendPeriodrelativeTimePeriodalign:timeRangePeriodendPeriodrelativeTimePeriodalign - timeRangePeriodendPeriodabsoluteTime:timeRangePeriodendPeriodabsoluteTime - timeRangePeriodstep:timeRangePeriodstep - timeRangePeriodintervalPeriodvalue:timeRangePeriodintervalPeriodvalue - timeRangePeriodintervalPeriodunit:timeRangePeriodintervalPeriodunit - timeRangePeriodtimezone:timeRangePeriodtimezone - limit:limit - offset:offset - version:version + body:body completionHandler: ^(analytic_service.LogQueryResponse output, NSError* error) { if (output) { NSLog(@"%@", output); @@ -11894,7 +11822,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -11908,25 +11836,7 @@ 

    Usage and SDK Samples

    var api = new SentioApi.DataApi() var owner = owner_example; // {String} var slug = slug_example; // {String} -var opts = { - 'projectId': projectId_example, // {String} - 'query': query_example, // {String} - 'timeRangePeriodstartPeriodrelativeTimePeriodunit': timeRangePeriodstartPeriodrelativeTimePeriodunit_example, // {String} - 'timeRangePeriodstartPeriodrelativeTimePeriodvalue': 56, // {Integer} - 'timeRangePeriodstartPeriodrelativeTimePeriodalign': timeRangePeriodstartPeriodrelativeTimePeriodalign_example, // {String} - 'timeRangePeriodstartPeriodabsoluteTime': timeRangePeriodstartPeriodabsoluteTime_example, // {String} - 'timeRangePeriodendPeriodrelativeTimePeriodunit': timeRangePeriodendPeriodrelativeTimePeriodunit_example, // {String} - 'timeRangePeriodendPeriodrelativeTimePeriodvalue': 56, // {Integer} - 'timeRangePeriodendPeriodrelativeTimePeriodalign': timeRangePeriodendPeriodrelativeTimePeriodalign_example, // {String} - 'timeRangePeriodendPeriodabsoluteTime': timeRangePeriodendPeriodabsoluteTime_example, // {String} - 'timeRangePeriodstep': timeRangePeriodstep_example, // {String} - 'timeRangePeriodintervalPeriodvalue': 1.2, // {Double} - 'timeRangePeriodintervalPeriodunit': timeRangePeriodintervalPeriodunit_example, // {String} - 'timeRangePeriodtimezone': timeRangePeriodtimezone_example, // {String} - 'limit': 56, // {Integer} - 'offset': 56, // {Integer} - 'version': 56 // {Integer} -}; +var body = ; // {AnalyticServiceSearchServiceQueryLogBody} var callback = function(error, data, response) { if (error) { @@ -11935,14 +11845,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.queryLog2(owner, slug, opts, callback); +api.queryLog(owner, slug, body, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -11951,7 +11861,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class queryLog2Example + public class queryLogExample { public void main() { @@ -11964,30 +11874,14 @@

    Usage and SDK Samples

    var apiInstance = new DataApi(); var owner = owner_example; // String | (default to null) var slug = slug_example; // String | (default to null) - var projectId = projectId_example; // String | (optional) (default to null) - var query = query_example; // String | (optional) (default to null) - var timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; // String | (optional) (default to null) - var timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; // Integer | (optional) (default to null) - var timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; // String | (optional) (default to null) - var timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; // String | (optional) (default to null) - var timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; // String | (optional) (default to null) - var timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; // Integer | (optional) (default to null) - var timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; // String | (optional) (default to null) - var timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; // String | (optional) (default to null) - var timeRangePeriodstep = timeRangePeriodstep_example; // String | (optional) (default to null) - var timeRangePeriodintervalPeriodvalue = 1.2; // Double | (optional) (default to null) - var timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; // String | (optional) (default to null) - var timeRangePeriodtimezone = timeRangePeriodtimezone_example; // String | (optional) (default to null) - var limit = 56; // Integer | (optional) (default to null) - var offset = 56; // Integer | (optional) (default to null) - var version = 56; // Integer | (optional) (default to null) + var body = new AnalyticServiceSearchServiceQueryLogBody(); // AnalyticServiceSearchServiceQueryLogBody | try { // Query event logs - analytic_service.LogQueryResponse result = apiInstance.queryLog2(owner, slug, projectId, query, timeRangePeriodstartPeriodrelativeTimePeriodunit, timeRangePeriodstartPeriodrelativeTimePeriodvalue, timeRangePeriodstartPeriodrelativeTimePeriodalign, timeRangePeriodstartPeriodabsoluteTime, timeRangePeriodendPeriodrelativeTimePeriodunit, timeRangePeriodendPeriodrelativeTimePeriodvalue, timeRangePeriodendPeriodrelativeTimePeriodalign, timeRangePeriodendPeriodabsoluteTime, timeRangePeriodstep, timeRangePeriodintervalPeriodvalue, timeRangePeriodintervalPeriodunit, timeRangePeriodtimezone, limit, offset, version); + analytic_service.LogQueryResponse result = apiInstance.queryLog(owner, slug, body); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DataApi.queryLog2: " + e.Message ); + Debug.Print("Exception when calling DataApi.queryLog: " + e.Message ); } } } @@ -11995,7 +11889,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -12008,34 +11902,18 @@ 

    Usage and SDK Samples

    $api_instance = new OpenAPITools\Client\Api\DataApi(); $owner = owner_example; // String | $slug = slug_example; // String | -$projectId = projectId_example; // String | -$query = query_example; // String | -$timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; // String | -$timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; // Integer | -$timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; // String | -$timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; // String | -$timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; // String | -$timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; // Integer | -$timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; // String | -$timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; // String | -$timeRangePeriodstep = timeRangePeriodstep_example; // String | -$timeRangePeriodintervalPeriodvalue = 1.2; // Double | -$timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; // String | -$timeRangePeriodtimezone = timeRangePeriodtimezone_example; // String | -$limit = 56; // Integer | -$offset = 56; // Integer | -$version = 56; // Integer | +$body = ; // AnalyticServiceSearchServiceQueryLogBody | try { - $result = $api_instance->queryLog2($owner, $slug, $projectId, $query, $timeRangePeriodstartPeriodrelativeTimePeriodunit, $timeRangePeriodstartPeriodrelativeTimePeriodvalue, $timeRangePeriodstartPeriodrelativeTimePeriodalign, $timeRangePeriodstartPeriodabsoluteTime, $timeRangePeriodendPeriodrelativeTimePeriodunit, $timeRangePeriodendPeriodrelativeTimePeriodvalue, $timeRangePeriodendPeriodrelativeTimePeriodalign, $timeRangePeriodendPeriodabsoluteTime, $timeRangePeriodstep, $timeRangePeriodintervalPeriodvalue, $timeRangePeriodintervalPeriodunit, $timeRangePeriodtimezone, $limit, $offset, $version); + $result = $api_instance->queryLog($owner, $slug, $body); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DataApi->queryLog2: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DataApi->queryLog: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DataApi;
    @@ -12049,34 +11927,18 @@ 

    Usage and SDK Samples

    my $api_instance = WWW::OPenAPIClient::DataApi->new(); my $owner = owner_example; # String | my $slug = slug_example; # String | -my $projectId = projectId_example; # String | -my $query = query_example; # String | -my $timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; # String | -my $timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; # Integer | -my $timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; # String | -my $timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; # String | -my $timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; # String | -my $timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; # Integer | -my $timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; # String | -my $timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; # String | -my $timeRangePeriodstep = timeRangePeriodstep_example; # String | -my $timeRangePeriodintervalPeriodvalue = 1.2; # Double | -my $timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; # String | -my $timeRangePeriodtimezone = timeRangePeriodtimezone_example; # String | -my $limit = 56; # Integer | -my $offset = 56; # Integer | -my $version = 56; # Integer | +my $body = WWW::OPenAPIClient::Object::AnalyticServiceSearchServiceQueryLogBody->new(); # AnalyticServiceSearchServiceQueryLogBody | eval { - my $result = $api_instance->queryLog2(owner => $owner, slug => $slug, projectId => $projectId, query => $query, timeRangePeriodstartPeriodrelativeTimePeriodunit => $timeRangePeriodstartPeriodrelativeTimePeriodunit, timeRangePeriodstartPeriodrelativeTimePeriodvalue => $timeRangePeriodstartPeriodrelativeTimePeriodvalue, timeRangePeriodstartPeriodrelativeTimePeriodalign => $timeRangePeriodstartPeriodrelativeTimePeriodalign, timeRangePeriodstartPeriodabsoluteTime => $timeRangePeriodstartPeriodabsoluteTime, timeRangePeriodendPeriodrelativeTimePeriodunit => $timeRangePeriodendPeriodrelativeTimePeriodunit, timeRangePeriodendPeriodrelativeTimePeriodvalue => $timeRangePeriodendPeriodrelativeTimePeriodvalue, timeRangePeriodendPeriodrelativeTimePeriodalign => $timeRangePeriodendPeriodrelativeTimePeriodalign, timeRangePeriodendPeriodabsoluteTime => $timeRangePeriodendPeriodabsoluteTime, timeRangePeriodstep => $timeRangePeriodstep, timeRangePeriodintervalPeriodvalue => $timeRangePeriodintervalPeriodvalue, timeRangePeriodintervalPeriodunit => $timeRangePeriodintervalPeriodunit, timeRangePeriodtimezone => $timeRangePeriodtimezone, limit => $limit, offset => $offset, version => $version); + my $result = $api_instance->queryLog(owner => $owner, slug => $slug, body => $body); print Dumper($result); }; if ($@) { - warn "Exception when calling DataApi->queryLog2: $@\n"; + warn "Exception when calling DataApi->queryLog: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -12092,58 +11954,26 @@ 

    Usage and SDK Samples

    api_instance = openapi_client.DataApi() owner = owner_example # String | (default to null) slug = slug_example # String | (default to null) -projectId = projectId_example # String | (optional) (default to null) -query = query_example # String | (optional) (default to null) -timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example # String | (optional) (default to null) -timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56 # Integer | (optional) (default to null) -timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example # String | (optional) (default to null) -timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example # String | (optional) (default to null) -timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example # String | (optional) (default to null) -timeRangePeriodendPeriodrelativeTimePeriodvalue = 56 # Integer | (optional) (default to null) -timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example # String | (optional) (default to null) -timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example # String | (optional) (default to null) -timeRangePeriodstep = timeRangePeriodstep_example # String | (optional) (default to null) -timeRangePeriodintervalPeriodvalue = 1.2 # Double | (optional) (default to null) -timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example # String | (optional) (default to null) -timeRangePeriodtimezone = timeRangePeriodtimezone_example # String | (optional) (default to null) -limit = 56 # Integer | (optional) (default to null) -offset = 56 # Integer | (optional) (default to null) -version = 56 # Integer | (optional) (default to null) +body = # AnalyticServiceSearchServiceQueryLogBody | try: # Query event logs - api_response = api_instance.query_log2(owner, slug, projectId=projectId, query=query, timeRangePeriodstartPeriodrelativeTimePeriodunit=timeRangePeriodstartPeriodrelativeTimePeriodunit, timeRangePeriodstartPeriodrelativeTimePeriodvalue=timeRangePeriodstartPeriodrelativeTimePeriodvalue, timeRangePeriodstartPeriodrelativeTimePeriodalign=timeRangePeriodstartPeriodrelativeTimePeriodalign, timeRangePeriodstartPeriodabsoluteTime=timeRangePeriodstartPeriodabsoluteTime, timeRangePeriodendPeriodrelativeTimePeriodunit=timeRangePeriodendPeriodrelativeTimePeriodunit, timeRangePeriodendPeriodrelativeTimePeriodvalue=timeRangePeriodendPeriodrelativeTimePeriodvalue, timeRangePeriodendPeriodrelativeTimePeriodalign=timeRangePeriodendPeriodrelativeTimePeriodalign, timeRangePeriodendPeriodabsoluteTime=timeRangePeriodendPeriodabsoluteTime, timeRangePeriodstep=timeRangePeriodstep, timeRangePeriodintervalPeriodvalue=timeRangePeriodintervalPeriodvalue, timeRangePeriodintervalPeriodunit=timeRangePeriodintervalPeriodunit, timeRangePeriodtimezone=timeRangePeriodtimezone, limit=limit, offset=offset, version=version) + api_response = api_instance.query_log(owner, slug, body) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->queryLog2: %s\n" % e)
    + print("Exception when calling DataApi->queryLog: %s\n" % e)
    -
    +
    extern crate DataApi;
     
     pub fn main() {
         let owner = owner_example; // String
         let slug = slug_example; // String
    -    let projectId = projectId_example; // String
    -    let query = query_example; // String
    -    let timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; // String
    -    let timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; // Integer
    -    let timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; // String
    -    let timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; // String
    -    let timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; // String
    -    let timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; // Integer
    -    let timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; // String
    -    let timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; // String
    -    let timeRangePeriodstep = timeRangePeriodstep_example; // String
    -    let timeRangePeriodintervalPeriodvalue = 1.2; // Double
    -    let timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; // String
    -    let timeRangePeriodtimezone = timeRangePeriodtimezone_example; // String
    -    let limit = 56; // Integer
    -    let offset = 56; // Integer
    -    let version = 56; // Integer
    +    let body = ; // AnalyticServiceSearchServiceQueryLogBody
     
         let mut context = DataApi::Context::default();
    -    let result = client.queryLog2(owner, slug, projectId, query, timeRangePeriodstartPeriodrelativeTimePeriodunit, timeRangePeriodstartPeriodrelativeTimePeriodvalue, timeRangePeriodstartPeriodrelativeTimePeriodalign, timeRangePeriodstartPeriodabsoluteTime, timeRangePeriodendPeriodrelativeTimePeriodunit, timeRangePeriodendPeriodrelativeTimePeriodvalue, timeRangePeriodendPeriodrelativeTimePeriodalign, timeRangePeriodendPeriodabsoluteTime, timeRangePeriodstep, timeRangePeriodintervalPeriodvalue, timeRangePeriodintervalPeriodunit, timeRangePeriodtimezone, limit, offset, version, &context).wait();
    +    let result = client.queryLog(owner, slug, body, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -12168,7 +11998,7 @@ 

    Parameters

    -
    +
    @@ -12188,7 +12018,7 @@

    Parameters

    -
    +
    @@ -12207,361 +12037,86 @@

    Parameters

    - - -
    Query parameters
    +
    Body parameters
    - + - -
    Name Description
    projectId
    body * +

    + +
    query +
    -
    -
    -
    - - String - -
    -
    -
    - - +

    Responses

    +

    +

    + - timeRange.start.relativeTime.unit - + -
    -
    -
    - - Integer - - - (int32) - -
    -
    -
    - - - - timeRange.start.relativeTime.align - - - -
    -
    -
    - - String - - -
    -
    -
    - - - - timeRange.start.absoluteTime - - - -
    -
    -
    - - String - - - (int64) - - -
    -
    -
    - - - - timeRange.end.relativeTime.unit - - - -
    -
    -
    - - String - - -
    -
    -
    - - - - timeRange.end.relativeTime.value - - - -
    -
    -
    - - Integer - - - (int32) - - -
    -
    -
    - - - - timeRange.end.relativeTime.align - - - -
    -
    -
    - - String - - -
    -
    -
    - - - - timeRange.end.absoluteTime - - - -
    -
    -
    - - String - - - (int64) - - -
    -
    -
    - - - - timeRange.step - - - -
    -
    -
    - - String - - - (int64) - - -
    -
    -
    - - - - timeRange.interval.value - - - -
    -
    -
    - - Double - - - (double) - - -
    -
    -
    - - - - timeRange.interval.unit - - - -
    -
    -
    - - String - - -
    -
    -
    - - - - timeRange.timezone - - - -
    -
    -
    - - String - - -
    -
    -
    - - - - limit - - - -
    -
    -
    - - Integer - - - (int32) - - -
    -
    -
    - - - - offset - - - -
    -
    -
    - - Integer - - - (int32) - - -
    -
    -
    - - - - version - - - -
    -
    -
    - - Integer - - - (int32) - - -
    -
    -
    - - - - - -

    Responses

    -

    -

    - - - - - - -
    -
    -
    +
    +
    +
    - +

    -
    -
    +
    +
    -

    queryRange

    -

    Metric range queries

    +

    queryLog2

    +

    Query event logs

    -

    The easiest way to build query is through UI, you could first create an insight chart, and then **Export as cURL**. - -![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(101).png)

    +


    -
    /api/v1/metrics/{owner}/{slug}/query_range
    +
    /api/v1/eventlogs/{owner}/{slug}/query

    Usage and SDK Samples

    -
    -
    curl -X POST \
    +                          
    +
    curl -X GET \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
    - -H "Content-Type: application/json" \
    - "https://app.sentio.xyz/api/v1/metrics/{owner}/{slug}/query_range" \
    - -d ''
    + "https://app.sentio.xyz/api/v1/eventlogs/{owner}/{slug}/query?projectId=projectId_example&query=query_example&timeRange.start.relativeTime.unit=timeRangePeriodstartPeriodrelativeTimePeriodunit_example&timeRange.start.relativeTime.value=56&timeRange.start.relativeTime.align=timeRangePeriodstartPeriodrelativeTimePeriodalign_example&timeRange.start.absoluteTime=timeRangePeriodstartPeriodabsoluteTime_example&timeRange.end.relativeTime.unit=timeRangePeriodendPeriodrelativeTimePeriodunit_example&timeRange.end.relativeTime.value=56&timeRange.end.relativeTime.align=timeRangePeriodendPeriodrelativeTimePeriodalign_example&timeRange.end.absoluteTime=timeRangePeriodendPeriodabsoluteTime_example&timeRange.step=timeRangePeriodstep_example&timeRange.interval.value=1.2&timeRange.interval.unit=timeRangePeriodintervalPeriodunit_example&timeRange.timezone=timeRangePeriodtimezone_example&limit=56&offset=56&version=56"
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -12678,15 +12229,31 @@ 

    Usage and SDK Samples

    // Create an instance of the API class DataApi apiInstance = new DataApi(); - String owner = owner_example; // String | username or organization name - String slug = slug_example; // String | project slug - MetricsServiceObservabilityServiceQueryRangeBody body = ; // MetricsServiceObservabilityServiceQueryRangeBody | + String owner = owner_example; // String | + String slug = slug_example; // String | + String projectId = projectId_example; // String | + String query = query_example; // String | + String timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; // String | + Integer timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; // Integer | + String timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; // String | + String timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; // String | + String timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; // String | + Integer timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; // Integer | + String timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; // String | + String timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; // String | + String timeRangePeriodstep = timeRangePeriodstep_example; // String | + Double timeRangePeriodintervalPeriodvalue = 1.2; // Double | + String timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; // String | + String timeRangePeriodtimezone = timeRangePeriodtimezone_example; // String | + Integer limit = 56; // Integer | + Integer offset = 56; // Integer | + Integer version = 56; // Integer | try { - metrics_service.MetricsQueryResponse result = apiInstance.queryRange(owner, slug, body); + analytic_service.LogQueryResponse result = apiInstance.queryLog2(owner, slug, projectId, query, timeRangePeriodstartPeriodrelativeTimePeriodunit, timeRangePeriodstartPeriodrelativeTimePeriodvalue, timeRangePeriodstartPeriodrelativeTimePeriodalign, timeRangePeriodstartPeriodabsoluteTime, timeRangePeriodendPeriodrelativeTimePeriodunit, timeRangePeriodendPeriodrelativeTimePeriodvalue, timeRangePeriodendPeriodrelativeTimePeriodalign, timeRangePeriodendPeriodabsoluteTime, timeRangePeriodstep, timeRangePeriodintervalPeriodvalue, timeRangePeriodintervalPeriodunit, timeRangePeriodtimezone, limit, offset, version); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DataApi#queryRange"); + System.err.println("Exception when calling DataApi#queryLog2"); e.printStackTrace(); } } @@ -12694,50 +12261,82 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
     
    -final String owner = new String(); // String | username or organization name
    -final String slug = new String(); // String | project slug
    -final MetricsServiceObservabilityServiceQueryRangeBody body = new MetricsServiceObservabilityServiceQueryRangeBody(); // MetricsServiceObservabilityServiceQueryRangeBody | 
    +final String owner = new String(); // String | 
    +final String slug = new String(); // String | 
    +final String projectId = new String(); // String | 
    +final String query = new String(); // String | 
    +final String timeRangePeriodstartPeriodrelativeTimePeriodunit = new String(); // String | 
    +final Integer timeRangePeriodstartPeriodrelativeTimePeriodvalue = new Integer(); // Integer | 
    +final String timeRangePeriodstartPeriodrelativeTimePeriodalign = new String(); // String | 
    +final String timeRangePeriodstartPeriodabsoluteTime = new String(); // String | 
    +final String timeRangePeriodendPeriodrelativeTimePeriodunit = new String(); // String | 
    +final Integer timeRangePeriodendPeriodrelativeTimePeriodvalue = new Integer(); // Integer | 
    +final String timeRangePeriodendPeriodrelativeTimePeriodalign = new String(); // String | 
    +final String timeRangePeriodendPeriodabsoluteTime = new String(); // String | 
    +final String timeRangePeriodstep = new String(); // String | 
    +final Double timeRangePeriodintervalPeriodvalue = new Double(); // Double | 
    +final String timeRangePeriodintervalPeriodunit = new String(); // String | 
    +final String timeRangePeriodtimezone = new String(); // String | 
    +final Integer limit = new Integer(); // Integer | 
    +final Integer offset = new Integer(); // Integer | 
    +final Integer version = new Integer(); // Integer | 
     
     try {
    -    final result = await api_instance.queryRange(owner, slug, body);
    +    final result = await api_instance.queryLog2(owner, slug, projectId, query, timeRangePeriodstartPeriodrelativeTimePeriodunit, timeRangePeriodstartPeriodrelativeTimePeriodvalue, timeRangePeriodstartPeriodrelativeTimePeriodalign, timeRangePeriodstartPeriodabsoluteTime, timeRangePeriodendPeriodrelativeTimePeriodunit, timeRangePeriodendPeriodrelativeTimePeriodvalue, timeRangePeriodendPeriodrelativeTimePeriodalign, timeRangePeriodendPeriodabsoluteTime, timeRangePeriodstep, timeRangePeriodintervalPeriodvalue, timeRangePeriodintervalPeriodunit, timeRangePeriodtimezone, limit, offset, version);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->queryRange: $e\n');
    +    print('Exception when calling DefaultApi->queryLog2: $e\n');
     }
     
     
    -
    +
    import org.openapitools.client.api.DataApi;
     
     public class DataApiExample {
         public static void main(String[] args) {
             DataApi apiInstance = new DataApi();
    -        String owner = owner_example; // String | username or organization name
    -        String slug = slug_example; // String | project slug
    -        MetricsServiceObservabilityServiceQueryRangeBody body = ; // MetricsServiceObservabilityServiceQueryRangeBody | 
    +        String owner = owner_example; // String | 
    +        String slug = slug_example; // String | 
    +        String projectId = projectId_example; // String | 
    +        String query = query_example; // String | 
    +        String timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; // String | 
    +        Integer timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; // Integer | 
    +        String timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; // String | 
    +        String timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; // String | 
    +        String timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; // String | 
    +        Integer timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; // Integer | 
    +        String timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; // String | 
    +        String timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; // String | 
    +        String timeRangePeriodstep = timeRangePeriodstep_example; // String | 
    +        Double timeRangePeriodintervalPeriodvalue = 1.2; // Double | 
    +        String timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; // String | 
    +        String timeRangePeriodtimezone = timeRangePeriodtimezone_example; // String | 
    +        Integer limit = 56; // Integer | 
    +        Integer offset = 56; // Integer | 
    +        Integer version = 56; // Integer | 
     
             try {
    -            metrics_service.MetricsQueryResponse result = apiInstance.queryRange(owner, slug, body);
    +            analytic_service.LogQueryResponse result = apiInstance.queryLog2(owner, slug, projectId, query, timeRangePeriodstartPeriodrelativeTimePeriodunit, timeRangePeriodstartPeriodrelativeTimePeriodvalue, timeRangePeriodstartPeriodrelativeTimePeriodalign, timeRangePeriodstartPeriodabsoluteTime, timeRangePeriodendPeriodrelativeTimePeriodunit, timeRangePeriodendPeriodrelativeTimePeriodvalue, timeRangePeriodendPeriodrelativeTimePeriodalign, timeRangePeriodendPeriodabsoluteTime, timeRangePeriodstep, timeRangePeriodintervalPeriodvalue, timeRangePeriodintervalPeriodunit, timeRangePeriodtimezone, limit, offset, version);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DataApi#queryRange");
    +            System.err.println("Exception when calling DataApi#queryLog2");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -12748,15 +12347,47 @@ 

    Usage and SDK Samples

    // Create an instance of the API class DataApi *apiInstance = [[DataApi alloc] init]; -String *owner = owner_example; // username or organization name (default to null) -String *slug = slug_example; // project slug (default to null) -MetricsServiceObservabilityServiceQueryRangeBody *body = ; // +String *owner = owner_example; // (default to null) +String *slug = slug_example; // (default to null) +String *projectId = projectId_example; // (optional) (default to null) +String *query = query_example; // (optional) (default to null) +String *timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; // (optional) (default to null) +Integer *timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; // (optional) (default to null) +String *timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; // (optional) (default to null) +String *timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; // (optional) (default to null) +String *timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; // (optional) (default to null) +Integer *timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; // (optional) (default to null) +String *timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; // (optional) (default to null) +String *timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; // (optional) (default to null) +String *timeRangePeriodstep = timeRangePeriodstep_example; // (optional) (default to null) +Double *timeRangePeriodintervalPeriodvalue = 1.2; // (optional) (default to null) +String *timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; // (optional) (default to null) +String *timeRangePeriodtimezone = timeRangePeriodtimezone_example; // (optional) (default to null) +Integer *limit = 56; // (optional) (default to null) +Integer *offset = 56; // (optional) (default to null) +Integer *version = 56; // (optional) (default to null) -// Metric range queries -[apiInstance queryRangeWith:owner +// Query event logs +[apiInstance queryLog2With:owner slug:slug - body:body - completionHandler: ^(metrics_service.MetricsQueryResponse output, NSError* error) { + projectId:projectId + query:query + timeRangePeriodstartPeriodrelativeTimePeriodunit:timeRangePeriodstartPeriodrelativeTimePeriodunit + timeRangePeriodstartPeriodrelativeTimePeriodvalue:timeRangePeriodstartPeriodrelativeTimePeriodvalue + timeRangePeriodstartPeriodrelativeTimePeriodalign:timeRangePeriodstartPeriodrelativeTimePeriodalign + timeRangePeriodstartPeriodabsoluteTime:timeRangePeriodstartPeriodabsoluteTime + timeRangePeriodendPeriodrelativeTimePeriodunit:timeRangePeriodendPeriodrelativeTimePeriodunit + timeRangePeriodendPeriodrelativeTimePeriodvalue:timeRangePeriodendPeriodrelativeTimePeriodvalue + timeRangePeriodendPeriodrelativeTimePeriodalign:timeRangePeriodendPeriodrelativeTimePeriodalign + timeRangePeriodendPeriodabsoluteTime:timeRangePeriodendPeriodabsoluteTime + timeRangePeriodstep:timeRangePeriodstep + timeRangePeriodintervalPeriodvalue:timeRangePeriodintervalPeriodvalue + timeRangePeriodintervalPeriodunit:timeRangePeriodintervalPeriodunit + timeRangePeriodtimezone:timeRangePeriodtimezone + limit:limit + offset:offset + version:version + completionHandler: ^(analytic_service.LogQueryResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -12767,7 +12398,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -12779,9 +12410,27 @@ 

    Usage and SDK Samples

    // Create an instance of the API class var api = new SentioApi.DataApi() -var owner = owner_example; // {String} username or organization name -var slug = slug_example; // {String} project slug -var body = ; // {MetricsServiceObservabilityServiceQueryRangeBody} +var owner = owner_example; // {String} +var slug = slug_example; // {String} +var opts = { + 'projectId': projectId_example, // {String} + 'query': query_example, // {String} + 'timeRangePeriodstartPeriodrelativeTimePeriodunit': timeRangePeriodstartPeriodrelativeTimePeriodunit_example, // {String} + 'timeRangePeriodstartPeriodrelativeTimePeriodvalue': 56, // {Integer} + 'timeRangePeriodstartPeriodrelativeTimePeriodalign': timeRangePeriodstartPeriodrelativeTimePeriodalign_example, // {String} + 'timeRangePeriodstartPeriodabsoluteTime': timeRangePeriodstartPeriodabsoluteTime_example, // {String} + 'timeRangePeriodendPeriodrelativeTimePeriodunit': timeRangePeriodendPeriodrelativeTimePeriodunit_example, // {String} + 'timeRangePeriodendPeriodrelativeTimePeriodvalue': 56, // {Integer} + 'timeRangePeriodendPeriodrelativeTimePeriodalign': timeRangePeriodendPeriodrelativeTimePeriodalign_example, // {String} + 'timeRangePeriodendPeriodabsoluteTime': timeRangePeriodendPeriodabsoluteTime_example, // {String} + 'timeRangePeriodstep': timeRangePeriodstep_example, // {String} + 'timeRangePeriodintervalPeriodvalue': 1.2, // {Double} + 'timeRangePeriodintervalPeriodunit': timeRangePeriodintervalPeriodunit_example, // {String} + 'timeRangePeriodtimezone': timeRangePeriodtimezone_example, // {String} + 'limit': 56, // {Integer} + 'offset': 56, // {Integer} + 'version': 56 // {Integer} +}; var callback = function(error, data, response) { if (error) { @@ -12790,14 +12439,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.queryRange(owner, slug, body, callback); +api.queryLog2(owner, slug, opts, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -12806,7 +12455,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class queryRangeExample + public class queryLog2Example { public void main() { @@ -12817,736 +12466,540 @@

    Usage and SDK Samples

    // Create an instance of the API class var apiInstance = new DataApi(); - var owner = owner_example; // String | username or organization name (default to null) - var slug = slug_example; // String | project slug (default to null) - var body = new MetricsServiceObservabilityServiceQueryRangeBody(); // MetricsServiceObservabilityServiceQueryRangeBody | - - try { - // Metric range queries - metrics_service.MetricsQueryResponse result = apiInstance.queryRange(owner, slug, body); - Debug.WriteLine(result); - } catch (Exception e) { - Debug.Print("Exception when calling DataApi.queryRange: " + e.Message ); - } - } - } -} -
    -
    - -
    -
    <?php
    -require_once(__DIR__ . '/vendor/autoload.php');
    -
    -// Configure API key authorization: ApiKeyAuth
    -OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
    -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    -// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
    -
    -// Create an instance of the API class
    -$api_instance = new OpenAPITools\Client\Api\DataApi();
    -$owner = owner_example; // String | username or organization name
    -$slug = slug_example; // String | project slug
    -$body = ; // MetricsServiceObservabilityServiceQueryRangeBody | 
    -
    -try {
    -    $result = $api_instance->queryRange($owner, $slug, $body);
    -    print_r($result);
    -} catch (Exception $e) {
    -    echo 'Exception when calling DataApi->queryRange: ', $e->getMessage(), PHP_EOL;
    -}
    -?>
    -
    - -
    -
    use Data::Dumper;
    -use WWW::OPenAPIClient::Configuration;
    -use WWW::OPenAPIClient::DataApi;
    -
    -# Configure API key authorization: ApiKeyAuth
    -$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
    -# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    -#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
    -
    -# Create an instance of the API class
    -my $api_instance = WWW::OPenAPIClient::DataApi->new();
    -my $owner = owner_example; # String | username or organization name
    -my $slug = slug_example; # String | project slug
    -my $body = WWW::OPenAPIClient::Object::MetricsServiceObservabilityServiceQueryRangeBody->new(); # MetricsServiceObservabilityServiceQueryRangeBody | 
    -
    -eval {
    -    my $result = $api_instance->queryRange(owner => $owner, slug => $slug, body => $body);
    -    print Dumper($result);
    -};
    -if ($@) {
    -    warn "Exception when calling DataApi->queryRange: $@\n";
    -}
    -
    - -
    -
    from __future__ import print_statement
    -import time
    -import openapi_client
    -from openapi_client.rest import ApiException
    -from pprint import pprint
    -
    -# Configure API key authorization: ApiKeyAuth
    -openapi_client.configuration.api_key['api-key'] = 'YOUR_API_KEY'
    -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    -# openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer'
    -
    -# Create an instance of the API class
    -api_instance = openapi_client.DataApi()
    -owner = owner_example # String | username or organization name (default to null)
    -slug = slug_example # String | project slug (default to null)
    -body =  # MetricsServiceObservabilityServiceQueryRangeBody | 
    -
    -try:
    -    # Metric range queries
    -    api_response = api_instance.query_range(owner, slug, body)
    -    pprint(api_response)
    -except ApiException as e:
    -    print("Exception when calling DataApi->queryRange: %s\n" % e)
    -
    - -
    -
    extern crate DataApi;
    -
    -pub fn main() {
    -    let owner = owner_example; // String
    -    let slug = slug_example; // String
    -    let body = ; // MetricsServiceObservabilityServiceQueryRangeBody
    -
    -    let mut context = DataApi::Context::default();
    -    let result = client.queryRange(owner, slug, body, &context).wait();
    -
    -    println!("{:?}", result);
    -}
    -
    -
    -
    - -

    Scopes

    - - -
    - -

    Parameters

    - -
    Path parameters
    - - - - - - - - - - - - - -
    NameDescription
    owner* - - -
    -
    -
    - - String - - -
    -username or organization name -
    -
    -
    - Required -
    -
    -
    -
    slug* - - -
    -
    -
    - - String - - -
    -project slug -
    -
    -
    - Required -
    -
    -
    -
    - - -
    Body parameters
    - - - - - - - - +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
     
    -                            
    NameDescription
    body * -

    - -
    -
    +// Configure API key authorization: ApiKeyAuth +OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); +// Create an instance of the API class +$api_instance = new OpenAPITools\Client\Api\DataApi(); +$owner = owner_example; // String | +$slug = slug_example; // String | +$projectId = projectId_example; // String | +$query = query_example; // String | +$timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; // String | +$timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; // Integer | +$timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; // String | +$timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; // String | +$timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; // String | +$timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; // Integer | +$timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; // String | +$timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; // String | +$timeRangePeriodstep = timeRangePeriodstep_example; // String | +$timeRangePeriodintervalPeriodvalue = 1.2; // Double | +$timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; // String | +$timeRangePeriodtimezone = timeRangePeriodtimezone_example; // String | +$limit = 56; // Integer | +$offset = 56; // Integer | +$version = 56; // Integer | +try { + $result = $api_instance->queryLog2($owner, $slug, $projectId, $query, $timeRangePeriodstartPeriodrelativeTimePeriodunit, $timeRangePeriodstartPeriodrelativeTimePeriodvalue, $timeRangePeriodstartPeriodrelativeTimePeriodalign, $timeRangePeriodstartPeriodabsoluteTime, $timeRangePeriodendPeriodrelativeTimePeriodunit, $timeRangePeriodendPeriodrelativeTimePeriodvalue, $timeRangePeriodendPeriodrelativeTimePeriodalign, $timeRangePeriodendPeriodabsoluteTime, $timeRangePeriodstep, $timeRangePeriodintervalPeriodvalue, $timeRangePeriodintervalPeriodunit, $timeRangePeriodtimezone, $limit, $offset, $version); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling DataApi->queryLog2: ', $e->getMessage(), PHP_EOL; +} +?>
    +
    -

    Responses

    -

    -

    - +
    +
    use Data::Dumper;
    +use WWW::OPenAPIClient::Configuration;
    +use WWW::OPenAPIClient::DataApi;
     
    +# Configure API key authorization: ApiKeyAuth
    +$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
     
    -                            
    +
    +
    +
    from __future__ import print_statement
    +import time
    +import openapi_client
    +from openapi_client.rest import ApiException
    +from pprint import pprint
     
    +# Configure API key authorization: ApiKeyAuth
    +openapi_client.configuration.api_key['api-key'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer'
     
    -                            
    +# Create an instance of the API class
    +api_instance = openapi_client.DataApi()
    +owner = owner_example # String |  (default to null)
    +slug = slug_example # String |  (default to null)
    +projectId = projectId_example # String |  (optional) (default to null)
    +query = query_example # String |  (optional) (default to null)
    +timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example # String |  (optional) (default to null)
    +timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56 # Integer |  (optional) (default to null)
    +timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example # String |  (optional) (default to null)
    +timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example # String |  (optional) (default to null)
    +timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example # String |  (optional) (default to null)
    +timeRangePeriodendPeriodrelativeTimePeriodvalue = 56 # Integer |  (optional) (default to null)
    +timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example # String |  (optional) (default to null)
    +timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example # String |  (optional) (default to null)
    +timeRangePeriodstep = timeRangePeriodstep_example # String |  (optional) (default to null)
    +timeRangePeriodintervalPeriodvalue = 1.2 # Double |  (optional) (default to null)
    +timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example # String |  (optional) (default to null)
    +timeRangePeriodtimezone = timeRangePeriodtimezone_example # String |  (optional) (default to null)
    +limit = 56 # Integer |  (optional) (default to null)
    +offset = 56 # Integer |  (optional) (default to null)
    +version = 56 # Integer |  (optional) (default to null)
     
    +try:
    +    # Query event logs
    +    api_response = api_instance.query_log2(owner, slug, projectId=projectId, query=query, timeRangePeriodstartPeriodrelativeTimePeriodunit=timeRangePeriodstartPeriodrelativeTimePeriodunit, timeRangePeriodstartPeriodrelativeTimePeriodvalue=timeRangePeriodstartPeriodrelativeTimePeriodvalue, timeRangePeriodstartPeriodrelativeTimePeriodalign=timeRangePeriodstartPeriodrelativeTimePeriodalign, timeRangePeriodstartPeriodabsoluteTime=timeRangePeriodstartPeriodabsoluteTime, timeRangePeriodendPeriodrelativeTimePeriodunit=timeRangePeriodendPeriodrelativeTimePeriodunit, timeRangePeriodendPeriodrelativeTimePeriodvalue=timeRangePeriodendPeriodrelativeTimePeriodvalue, timeRangePeriodendPeriodrelativeTimePeriodalign=timeRangePeriodendPeriodrelativeTimePeriodalign, timeRangePeriodendPeriodabsoluteTime=timeRangePeriodendPeriodabsoluteTime, timeRangePeriodstep=timeRangePeriodstep, timeRangePeriodintervalPeriodvalue=timeRangePeriodintervalPeriodvalue, timeRangePeriodintervalPeriodunit=timeRangePeriodintervalPeriodunit, timeRangePeriodtimezone=timeRangePeriodtimezone, limit=limit, offset=offset, version=version)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling DataApi->queryLog2: %s\n" % e)
    +
    -
    -
    -
    - -
    - -
    -
    -
    -
    -
    -
    -
    -
    -

    querySQLResult

    -

    Query SQL Result

    -
    -
    -
    -

    -

    Query the result of a SQL query by execution_id.

    -

    -
    -
    /api/v1/analytics/{owner}/{slug}/sql/query_result
    -

    -

    Usage and SDK Samples

    -

    - +pub fn main() { + let owner = owner_example; // String + let slug = slug_example; // String + let projectId = projectId_example; // String + let query = query_example; // String + let timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; // String + let timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; // Integer + let timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; // String + let timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; // String + let timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; // String + let timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; // Integer + let timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; // String + let timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; // String + let timeRangePeriodstep = timeRangePeriodstep_example; // String + let timeRangePeriodintervalPeriodvalue = 1.2; // Double + let timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; // String + let timeRangePeriodtimezone = timeRangePeriodtimezone_example; // String + let limit = 56; // Integer + let offset = 56; // Integer + let version = 56; // Integer -
    -
    -
    curl -X GET \
    --H "api-key: [[apiKey]]" \
    - -H "Accept: application/json" \
    - "https://app.sentio.xyz/api/v1/analytics/{owner}/{slug}/sql/query_result?projectId=projectId_example&version=56&executionId=executionId_example"
    +    let mut context = DataApi::Context::default();
    +    let result = client.queryLog2(owner, slug, projectId, query, timeRangePeriodstartPeriodrelativeTimePeriodunit, timeRangePeriodstartPeriodrelativeTimePeriodvalue, timeRangePeriodstartPeriodrelativeTimePeriodalign, timeRangePeriodstartPeriodabsoluteTime, timeRangePeriodendPeriodrelativeTimePeriodunit, timeRangePeriodendPeriodrelativeTimePeriodvalue, timeRangePeriodendPeriodrelativeTimePeriodalign, timeRangePeriodendPeriodabsoluteTime, timeRangePeriodstep, timeRangePeriodintervalPeriodvalue, timeRangePeriodintervalPeriodunit, timeRangePeriodtimezone, limit, offset, version, &context).wait();
    +
    +    println!("{:?}", result);
    +}
     
    +
    -
    -
    import org.openapitools.client.*;
    -import org.openapitools.client.auth.*;
    -import org.openapitools.client.model.*;
    -import org.openapitools.client.api.DataApi;
     
    -import java.io.File;
    -import java.util.*;
    +                          

    Scopes

    + + +
    -public class DataApiExample { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); +

    Parameters

    - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); +
    Path parameters
    + + + + + + + + -final api_instance = DefaultApi(); + + + -
    -
    import org.openapitools.client.api.DataApi;
    +                            
    NameDescription
    owner* - // Create an instance of the API class - DataApi apiInstance = new DataApi(); - String owner = owner_example; // String | username or organization name - String slug = slug_example; // String | project slug - String projectId = projectId_example; // String | use project id if project_owner and project_slug are not provided - Integer version = 56; // Integer | version of the datasource, default to the active version if not provided - String executionId = executionId_example; // String | - try { - analytic_service.QuerySQLResultResponse result = apiInstance.querySQLResult(owner, slug, projectId, version, executionId); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DataApi#querySQLResult"); - e.printStackTrace(); - } - } -} - - +
    +
    +
    + + String + -
    -
    import 'package:openapi/api.dart';
    +            
    +
    + Required +
    +
    +
    +
    slug* -final String owner = new String(); // String | username or organization name -final String slug = new String(); // String | project slug -final String projectId = new String(); // String | use project id if project_owner and project_slug are not provided -final Integer version = new Integer(); // Integer | version of the datasource, default to the active version if not provided -final String executionId = new String(); // String | -try { - final result = await api_instance.querySQLResult(owner, slug, projectId, version, executionId); - print(result); -} catch (e) { - print('Exception when calling DefaultApi->querySQLResult: $e\n'); -} +
    +
    +
    + + String + - -
    +
    +
    + Required +
    +
    + +
    -public class DataApiExample { - public static void main(String[] args) { - DataApi apiInstance = new DataApi(); - String owner = owner_example; // String | username or organization name - String slug = slug_example; // String | project slug - String projectId = projectId_example; // String | use project id if project_owner and project_slug are not provided - Integer version = 56; // Integer | version of the datasource, default to the active version if not provided - String executionId = executionId_example; // String | - try { - analytic_service.QuerySQLResultResponse result = apiInstance.querySQLResult(owner, slug, projectId, version, executionId); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DataApi#querySQLResult"); - e.printStackTrace(); - } - } -}
    -
    - -
    -
    Configuration *apiConfig = [Configuration sharedConfig];
     
    -// Configure API key authorization: (authentication scheme: ApiKeyAuth)
    -[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-key"];
    -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    -//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-key"];
     
    +                            
    Query parameters
    + + + + + + + + + + + + + + + + + + + + + + + + -
    -
    var SentioApi = require('sentio_api');
    -var defaultClient = SentioApi.ApiClient.instance;
    +                                
    + + - -
    -
    using System;
    -using System.Diagnostics;
    -using Org.OpenAPITools.Api;
    -using Org.OpenAPITools.Client;
    -using Org.OpenAPITools.Model;
    +                                
    + + -
    -
    <?php
    -require_once(__DIR__ . '/vendor/autoload.php');
    +                                
    + + -
    -
    use Data::Dumper;
    -use WWW::OPenAPIClient::Configuration;
    -use WWW::OPenAPIClient::DataApi;
    +                                
    + + -
    -
    from __future__ import print_statement
    -import time
    -import openapi_client
    -from openapi_client.rest import ApiException
    -from pprint import pprint
    +                                
    + + -
    -
    extern crate DataApi;
    +                                
    + + -

    Scopes

    -
    NameDescription
    projectId -// Create an instance of the API class -DataApi *apiInstance = [[DataApi alloc] init]; -String *owner = owner_example; // username or organization name (default to null) -String *slug = slug_example; // project slug (default to null) -String *projectId = projectId_example; // use project id if project_owner and project_slug are not provided (optional) (default to null) -Integer *version = 56; // version of the datasource, default to the active version if not provided (optional) (default to null) -String *executionId = executionId_example; // (optional) (default to null) -// Query SQL Result -[apiInstance querySQLResultWith:owner - slug:slug - projectId:projectId - version:version - executionId:executionId - completionHandler: ^(analytic_service.QuerySQLResultResponse output, NSError* error) { - if (output) { - NSLog(@"%@", output); - } - if (error) { - NSLog(@"Error: %@", error); - } -}]; - - +
    +
    +
    + + String + + +
    +
    +
    +
    query + + +
    +
    +
    + + String + + +
    +
    +
    +
    timeRange.start.relativeTime.unit + + +
    +
    +
    + + String + + +
    +
    +
    +
    timeRange.start.relativeTime.value + + +
    +
    +
    + + Integer + + + (int32) + + +
    +
    +
    +
    timeRange.start.relativeTime.align + + +
    +
    +
    + + String + + +
    +
    +
    +
    timeRange.start.absoluteTime -// Configure API key authorization: ApiKeyAuth -var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; -ApiKeyAuth.apiKey = "YOUR API KEY"; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//ApiKeyAuth.apiKeyPrefix['api-key'] = "Token"; -// Create an instance of the API class -var api = new SentioApi.DataApi() -var owner = owner_example; // {String} username or organization name -var slug = slug_example; // {String} project slug -var opts = { - 'projectId': projectId_example, // {String} use project id if project_owner and project_slug are not provided - 'version': 56, // {Integer} version of the datasource, default to the active version if not provided - 'executionId': executionId_example // {String} -}; +
    +
    +
    + + String + + + (int64) + -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -api.querySQLResult(owner, slug, opts, callback); - -
    +
    +
    + +
    timeRange.end.relativeTime.unit -namespace Example -{ - public class querySQLResultExample - { - public void main() - { - // Configure API key authorization: ApiKeyAuth - Configuration.Default.ApiKey.Add("api-key", "YOUR_API_KEY"); - // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed - // Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer"); - // Create an instance of the API class - var apiInstance = new DataApi(); - var owner = owner_example; // String | username or organization name (default to null) - var slug = slug_example; // String | project slug (default to null) - var projectId = projectId_example; // String | use project id if project_owner and project_slug are not provided (optional) (default to null) - var version = 56; // Integer | version of the datasource, default to the active version if not provided (optional) (default to null) - var executionId = executionId_example; // String | (optional) (default to null) +
    +
    +
    + + String + - try { - // Query SQL Result - analytic_service.QuerySQLResultResponse result = apiInstance.querySQLResult(owner, slug, projectId, version, executionId); - Debug.WriteLine(result); - } catch (Exception e) { - Debug.Print("Exception when calling DataApi.querySQLResult: " + e.Message ); - } - } - } -} - -
    +
    +
    + +
    timeRange.end.relativeTime.value -// Configure API key authorization: ApiKeyAuth -OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); -// Create an instance of the API class -$api_instance = new OpenAPITools\Client\Api\DataApi(); -$owner = owner_example; // String | username or organization name -$slug = slug_example; // String | project slug -$projectId = projectId_example; // String | use project id if project_owner and project_slug are not provided -$version = 56; // Integer | version of the datasource, default to the active version if not provided -$executionId = executionId_example; // String | +
    +
    +
    + + Integer + + + (int32) + -try { - $result = $api_instance->querySQLResult($owner, $slug, $projectId, $version, $executionId); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling DataApi->querySQLResult: ', $e->getMessage(), PHP_EOL; -} -?> -
    +
    +
    + +
    timeRange.end.relativeTime.align -# Configure API key authorization: ApiKeyAuth -$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY'; -# uncomment below to setup prefix (e.g. Bearer) for API key, if needed -#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer"; -# Create an instance of the API class -my $api_instance = WWW::OPenAPIClient::DataApi->new(); -my $owner = owner_example; # String | username or organization name -my $slug = slug_example; # String | project slug -my $projectId = projectId_example; # String | use project id if project_owner and project_slug are not provided -my $version = 56; # Integer | version of the datasource, default to the active version if not provided -my $executionId = executionId_example; # String | +
    +
    +
    + + String + -eval { - my $result = $api_instance->querySQLResult(owner => $owner, slug => $slug, projectId => $projectId, version => $version, executionId => $executionId); - print Dumper($result); -}; -if ($@) { - warn "Exception when calling DataApi->querySQLResult: $@\n"; -} -
    +
    +
    + +
    timeRange.end.absoluteTime -# Configure API key authorization: ApiKeyAuth -openapi_client.configuration.api_key['api-key'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer' -# Create an instance of the API class -api_instance = openapi_client.DataApi() -owner = owner_example # String | username or organization name (default to null) -slug = slug_example # String | project slug (default to null) -projectId = projectId_example # String | use project id if project_owner and project_slug are not provided (optional) (default to null) -version = 56 # Integer | version of the datasource, default to the active version if not provided (optional) (default to null) -executionId = executionId_example # String | (optional) (default to null) +
    +
    +
    + + String + + + (int64) + -try: - # Query SQL Result - api_response = api_instance.query_sql_result(owner, slug, projectId=projectId, version=version, executionId=executionId) - pprint(api_response) -except ApiException as e: - print("Exception when calling DataApi->querySQLResult: %s\n" % e) -
    +
    +
    + +
    timeRange.step -pub fn main() { - let owner = owner_example; // String - let slug = slug_example; // String - let projectId = projectId_example; // String - let version = 56; // Integer - let executionId = executionId_example; // String - let mut context = DataApi::Context::default(); - let result = client.querySQLResult(owner, slug, projectId, version, executionId, &context).wait(); +
    +
    +
    + + String + + + (int64) + - println!("{:?}", result); -} - -
    -
    +
    + + +
    - -
    + timeRange.interval.value + -

    Parameters

    -
    Path parameters
    - - - - - - +
    +
    +
    + + Double + + + (double) + + +
    +
    +
    + + + + - + -
    NameDescription
    owner*
    timeRange.interval.unit -
    +
    String -
    -username or organization name -
    -
    - Required -
    slug*
    timeRange.timezone -
    +
    String -
    -project slug -
    -
    - Required -
    - - - - -
    Query parameters
    - - - - - - + - + - +
    NameDescription
    projectId
    limit -
    +
    - String + Integer + + (int32) + -
    -use project id if project_owner and project_slug are not provided -
    version
    offset -
    +
    @@ -13556,25 +13009,25 @@

    Parameters

    (int32)
    -
    -version of the datasource, default to the active version if not provided -
    executionId
    version -
    +
    - String + Integer + + (int32) +
    @@ -13585,23 +13038,23 @@

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    querySQLResult2

    -

    Query SQL Result

    +

    queryRange

    +

    Metric range queries

    -

    Query the result of a SQL query by execution_id.

    +

    The easiest way to build query is through UI, you could first create an insight chart, and then **Export as cURL**. + +![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(101).png)


    -
    /api/v1/analytics/sql/query_result
    +
    /api/v1/metrics/{owner}/{slug}/query_range

    Usage and SDK Samples

    -
    -
    curl -X GET \
    +                          
    +
    curl -X POST \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
    - "https://app.sentio.xyz/api/v1/analytics/sql/query_result?projectOwner=projectOwner_example&projectSlug=projectSlug_example&projectId=projectId_example&version=56&executionId=executionId_example"
    + -H "Content-Type: application/json" \
    + "https://app.sentio.xyz/api/v1/metrics/{owner}/{slug}/query_range" \
    + -d ''
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -13725,17 +13182,15 @@ 

    Usage and SDK Samples

    // Create an instance of the API class DataApi apiInstance = new DataApi(); - String projectOwner = projectOwner_example; // String | username or organization name - String projectSlug = projectSlug_example; // String | project slug - String projectId = projectId_example; // String | use project id if project_owner and project_slug are not provided - Integer version = 56; // Integer | version of the datasource, default to the active version if not provided - String executionId = executionId_example; // String | + String owner = owner_example; // String | username or organization name + String slug = slug_example; // String | project slug + MetricsServiceObservabilityServiceQueryRangeBody body = ; // MetricsServiceObservabilityServiceQueryRangeBody | try { - analytic_service.QuerySQLResultResponse result = apiInstance.querySQLResult2(projectOwner, projectSlug, projectId, version, executionId); + metrics_service.MetricsQueryResponse result = apiInstance.queryRange(owner, slug, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DataApi#querySQLResult2"); + System.err.println("Exception when calling DataApi#queryRange"); e.printStackTrace(); } } @@ -13743,54 +13198,50 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
     
    -final String projectOwner = new String(); // String | username or organization name
    -final String projectSlug = new String(); // String | project slug
    -final String projectId = new String(); // String | use project id if project_owner and project_slug are not provided
    -final Integer version = new Integer(); // Integer | version of the datasource, default to the active version if not provided
    -final String executionId = new String(); // String | 
    +final String owner = new String(); // String | username or organization name
    +final String slug = new String(); // String | project slug
    +final MetricsServiceObservabilityServiceQueryRangeBody body = new MetricsServiceObservabilityServiceQueryRangeBody(); // MetricsServiceObservabilityServiceQueryRangeBody | 
     
     try {
    -    final result = await api_instance.querySQLResult2(projectOwner, projectSlug, projectId, version, executionId);
    +    final result = await api_instance.queryRange(owner, slug, body);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->querySQLResult2: $e\n');
    +    print('Exception when calling DefaultApi->queryRange: $e\n');
     }
     
     
    -
    +
    import org.openapitools.client.api.DataApi;
     
     public class DataApiExample {
         public static void main(String[] args) {
             DataApi apiInstance = new DataApi();
    -        String projectOwner = projectOwner_example; // String | username or organization name
    -        String projectSlug = projectSlug_example; // String | project slug
    -        String projectId = projectId_example; // String | use project id if project_owner and project_slug are not provided
    -        Integer version = 56; // Integer | version of the datasource, default to the active version if not provided
    -        String executionId = executionId_example; // String | 
    +        String owner = owner_example; // String | username or organization name
    +        String slug = slug_example; // String | project slug
    +        MetricsServiceObservabilityServiceQueryRangeBody body = ; // MetricsServiceObservabilityServiceQueryRangeBody | 
     
             try {
    -            analytic_service.QuerySQLResultResponse result = apiInstance.querySQLResult2(projectOwner, projectSlug, projectId, version, executionId);
    +            metrics_service.MetricsQueryResponse result = apiInstance.queryRange(owner, slug, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DataApi#querySQLResult2");
    +            System.err.println("Exception when calling DataApi#queryRange");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -13801,19 +13252,15 @@ 

    Usage and SDK Samples

    // Create an instance of the API class DataApi *apiInstance = [[DataApi alloc] init]; -String *projectOwner = projectOwner_example; // username or organization name (optional) (default to null) -String *projectSlug = projectSlug_example; // project slug (optional) (default to null) -String *projectId = projectId_example; // use project id if project_owner and project_slug are not provided (optional) (default to null) -Integer *version = 56; // version of the datasource, default to the active version if not provided (optional) (default to null) -String *executionId = executionId_example; // (optional) (default to null) +String *owner = owner_example; // username or organization name (default to null) +String *slug = slug_example; // project slug (default to null) +MetricsServiceObservabilityServiceQueryRangeBody *body = ; // -// Query SQL Result -[apiInstance querySQLResult2With:projectOwner - projectSlug:projectSlug - projectId:projectId - version:version - executionId:executionId - completionHandler: ^(analytic_service.QuerySQLResultResponse output, NSError* error) { +// Metric range queries +[apiInstance queryRangeWith:owner + slug:slug + body:body + completionHandler: ^(metrics_service.MetricsQueryResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -13824,7 +13271,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -13836,13 +13283,9 @@ 

    Usage and SDK Samples

    // Create an instance of the API class var api = new SentioApi.DataApi() -var opts = { - 'projectOwner': projectOwner_example, // {String} username or organization name - 'projectSlug': projectSlug_example, // {String} project slug - 'projectId': projectId_example, // {String} use project id if project_owner and project_slug are not provided - 'version': 56, // {Integer} version of the datasource, default to the active version if not provided - 'executionId': executionId_example // {String} -}; +var owner = owner_example; // {String} username or organization name +var slug = slug_example; // {String} project slug +var body = ; // {MetricsServiceObservabilityServiceQueryRangeBody} var callback = function(error, data, response) { if (error) { @@ -13851,14 +13294,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.querySQLResult2(opts, callback); +api.queryRange(owner, slug, body, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -13867,7 +13310,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class querySQLResult2Example + public class queryRangeExample { public void main() { @@ -13878,18 +13321,16 @@

    Usage and SDK Samples

    // Create an instance of the API class var apiInstance = new DataApi(); - var projectOwner = projectOwner_example; // String | username or organization name (optional) (default to null) - var projectSlug = projectSlug_example; // String | project slug (optional) (default to null) - var projectId = projectId_example; // String | use project id if project_owner and project_slug are not provided (optional) (default to null) - var version = 56; // Integer | version of the datasource, default to the active version if not provided (optional) (default to null) - var executionId = executionId_example; // String | (optional) (default to null) + var owner = owner_example; // String | username or organization name (default to null) + var slug = slug_example; // String | project slug (default to null) + var body = new MetricsServiceObservabilityServiceQueryRangeBody(); // MetricsServiceObservabilityServiceQueryRangeBody | try { - // Query SQL Result - analytic_service.QuerySQLResultResponse result = apiInstance.querySQLResult2(projectOwner, projectSlug, projectId, version, executionId); + // Metric range queries + metrics_service.MetricsQueryResponse result = apiInstance.queryRange(owner, slug, body); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DataApi.querySQLResult2: " + e.Message ); + Debug.Print("Exception when calling DataApi.queryRange: " + e.Message ); } } } @@ -13897,7 +13338,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -13908,22 +13349,20 @@ 

    Usage and SDK Samples

    // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\DataApi(); -$projectOwner = projectOwner_example; // String | username or organization name -$projectSlug = projectSlug_example; // String | project slug -$projectId = projectId_example; // String | use project id if project_owner and project_slug are not provided -$version = 56; // Integer | version of the datasource, default to the active version if not provided -$executionId = executionId_example; // String | +$owner = owner_example; // String | username or organization name +$slug = slug_example; // String | project slug +$body = ; // MetricsServiceObservabilityServiceQueryRangeBody | try { - $result = $api_instance->querySQLResult2($projectOwner, $projectSlug, $projectId, $version, $executionId); + $result = $api_instance->queryRange($owner, $slug, $body); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DataApi->querySQLResult2: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DataApi->queryRange: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DataApi;
    @@ -13935,22 +13374,20 @@ 

    Usage and SDK Samples

    # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::DataApi->new(); -my $projectOwner = projectOwner_example; # String | username or organization name -my $projectSlug = projectSlug_example; # String | project slug -my $projectId = projectId_example; # String | use project id if project_owner and project_slug are not provided -my $version = 56; # Integer | version of the datasource, default to the active version if not provided -my $executionId = executionId_example; # String | +my $owner = owner_example; # String | username or organization name +my $slug = slug_example; # String | project slug +my $body = WWW::OPenAPIClient::Object::MetricsServiceObservabilityServiceQueryRangeBody->new(); # MetricsServiceObservabilityServiceQueryRangeBody | eval { - my $result = $api_instance->querySQLResult2(projectOwner => $projectOwner, projectSlug => $projectSlug, projectId => $projectId, version => $version, executionId => $executionId); + my $result = $api_instance->queryRange(owner => $owner, slug => $slug, body => $body); print Dumper($result); }; if ($@) { - warn "Exception when calling DataApi->querySQLResult2: $@\n"; + warn "Exception when calling DataApi->queryRange: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -13964,32 +13401,28 @@ 

    Usage and SDK Samples

    # Create an instance of the API class api_instance = openapi_client.DataApi() -projectOwner = projectOwner_example # String | username or organization name (optional) (default to null) -projectSlug = projectSlug_example # String | project slug (optional) (default to null) -projectId = projectId_example # String | use project id if project_owner and project_slug are not provided (optional) (default to null) -version = 56 # Integer | version of the datasource, default to the active version if not provided (optional) (default to null) -executionId = executionId_example # String | (optional) (default to null) +owner = owner_example # String | username or organization name (default to null) +slug = slug_example # String | project slug (default to null) +body = # MetricsServiceObservabilityServiceQueryRangeBody | try: - # Query SQL Result - api_response = api_instance.query_sql_result2(projectOwner=projectOwner, projectSlug=projectSlug, projectId=projectId, version=version, executionId=executionId) + # Metric range queries + api_response = api_instance.query_range(owner, slug, body) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->querySQLResult2: %s\n" % e)
    + print("Exception when calling DataApi->queryRange: %s\n" % e)
    -
    +
    extern crate DataApi;
     
     pub fn main() {
    -    let projectOwner = projectOwner_example; // String
    -    let projectSlug = projectSlug_example; // String
    -    let projectId = projectId_example; // String
    -    let version = 56; // Integer
    -    let executionId = executionId_example; // String
    +    let owner = owner_example; // String
    +    let slug = slug_example; // String
    +    let body = ; // MetricsServiceObservabilityServiceQueryRangeBody
     
         let mut context = DataApi::Context::default();
    -    let result = client.querySQLResult2(projectOwner, projectSlug, projectId, version, executionId, &context).wait();
    +    let result = client.queryRange(owner, slug, body, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -14004,41 +13437,17 @@ 

    Scopes

    Parameters

    - - - - -
    Query parameters
    +
    Path parameters
    - - - - - - - - - + + + + + - + - -
    NameDescription
    projectOwner - - -
    -
    -
    - - String - - -
    -username or organization name -
    -
    -
    -
    -
    projectSlug
    NameDescription
    owner* -
    +
    @@ -14046,19 +13455,22 @@

    Parameters

    -project slug +username or organization name
    +
    + Required +
    projectId
    slug* -
    +
    @@ -14066,74 +13478,89 @@

    Parameters

    -use project id if project_owner and project_slug are not provided +project slug
    +
    + Required +
    version - - -
    -
    -
    - - Integer - - - (int32) - +
    -
    -version of the datasource, default to the active version if not provided -
    -
    -
    -
    - - - executionId +
    Body parameters
    + + + + + +
    NameDescription
    body * +

    + +
    + +

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    rerunSQLQuery

    -

    Rerun SQL

    +

    querySQLResult

    +

    Query SQL Result

    -

    Rerun your SQL query by query_id, you can also update the query and run it. - -It will return execution_id, use it to query the result.

    +

    Query the result of a SQL query by execution_id.


    -
    /api/v1/analytics/{owner}/{slug}/sql/rerun_query
    +
    /api/v1/analytics/{owner}/{slug}/sql/query_result/{executionId}

    Usage and SDK Samples

    -
    -
    curl -X POST \
    +                          
    +
    curl -X GET \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
    - -H "Content-Type: application/json" \
    - "https://app.sentio.xyz/api/v1/analytics/{owner}/{slug}/sql/rerun_query" \
    - -d ''
    + "https://app.sentio.xyz/api/v1/analytics/{owner}/{slug}/sql/query_result/{executionId}?projectId=projectId_example&version=56"
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -14263,13 +13686,15 @@ 

    Usage and SDK Samples

    DataApi apiInstance = new DataApi(); String owner = owner_example; // String | username or organization name String slug = slug_example; // String | project slug - AnalyticServiceAnalyticServiceRerunSQLQueryBody body = ; // AnalyticServiceAnalyticServiceRerunSQLQueryBody | + String executionId = executionId_example; // String | + String projectId = projectId_example; // String | use project id if project_owner and project_slug are not provided + Integer version = 56; // Integer | version of the datasource, default to the active version if not provided try { - analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery(owner, slug, body); + analytic_service.QuerySQLResultResponse result = apiInstance.querySQLResult(owner, slug, executionId, projectId, version); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DataApi#rerunSQLQuery"); + System.err.println("Exception when calling DataApi#querySQLResult"); e.printStackTrace(); } } @@ -14277,26 +13702,28 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
     
     final String owner = new String(); // String | username or organization name
     final String slug = new String(); // String | project slug
    -final AnalyticServiceAnalyticServiceRerunSQLQueryBody body = new AnalyticServiceAnalyticServiceRerunSQLQueryBody(); // AnalyticServiceAnalyticServiceRerunSQLQueryBody | 
    +final String executionId = new String(); // String | 
    +final String projectId = new String(); // String | use project id if project_owner and project_slug are not provided
    +final Integer version = new Integer(); // Integer | version of the datasource, default to the active version if not provided
     
     try {
    -    final result = await api_instance.rerunSQLQuery(owner, slug, body);
    +    final result = await api_instance.querySQLResult(owner, slug, executionId, projectId, version);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->rerunSQLQuery: $e\n');
    +    print('Exception when calling DefaultApi->querySQLResult: $e\n');
     }
     
     
    -
    +
    import org.openapitools.client.api.DataApi;
     
     public class DataApiExample {
    @@ -14304,23 +13731,25 @@ 

    Usage and SDK Samples

    DataApi apiInstance = new DataApi(); String owner = owner_example; // String | username or organization name String slug = slug_example; // String | project slug - AnalyticServiceAnalyticServiceRerunSQLQueryBody body = ; // AnalyticServiceAnalyticServiceRerunSQLQueryBody | + String executionId = executionId_example; // String | + String projectId = projectId_example; // String | use project id if project_owner and project_slug are not provided + Integer version = 56; // Integer | version of the datasource, default to the active version if not provided try { - analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery(owner, slug, body); + analytic_service.QuerySQLResultResponse result = apiInstance.querySQLResult(owner, slug, executionId, projectId, version); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DataApi#rerunSQLQuery"); + System.err.println("Exception when calling DataApi#querySQLResult"); e.printStackTrace(); } } }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -14333,13 +13762,17 @@ 

    Usage and SDK Samples

    DataApi *apiInstance = [[DataApi alloc] init]; String *owner = owner_example; // username or organization name (default to null) String *slug = slug_example; // project slug (default to null) -AnalyticServiceAnalyticServiceRerunSQLQueryBody *body = ; // +String *executionId = executionId_example; // (default to null) +String *projectId = projectId_example; // use project id if project_owner and project_slug are not provided (optional) (default to null) +Integer *version = 56; // version of the datasource, default to the active version if not provided (optional) (default to null) -// Rerun SQL -[apiInstance rerunSQLQueryWith:owner +// Query SQL Result +[apiInstance querySQLResultWith:owner slug:slug - body:body - completionHandler: ^(analytic_service.RerunSQLQueryResponse output, NSError* error) { + executionId:executionId + projectId:projectId + version:version + completionHandler: ^(analytic_service.QuerySQLResultResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -14350,7 +13783,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -14364,7 +13797,11 @@ 

    Usage and SDK Samples

    var api = new SentioApi.DataApi() var owner = owner_example; // {String} username or organization name var slug = slug_example; // {String} project slug -var body = ; // {AnalyticServiceAnalyticServiceRerunSQLQueryBody} +var executionId = executionId_example; // {String} +var opts = { + 'projectId': projectId_example, // {String} use project id if project_owner and project_slug are not provided + 'version': 56 // {Integer} version of the datasource, default to the active version if not provided +}; var callback = function(error, data, response) { if (error) { @@ -14373,14 +13810,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.rerunSQLQuery(owner, slug, body, callback); +api.querySQLResult(owner, slug, executionId, opts, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -14389,7 +13826,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class rerunSQLQueryExample + public class querySQLResultExample { public void main() { @@ -14402,14 +13839,16 @@

    Usage and SDK Samples

    var apiInstance = new DataApi(); var owner = owner_example; // String | username or organization name (default to null) var slug = slug_example; // String | project slug (default to null) - var body = new AnalyticServiceAnalyticServiceRerunSQLQueryBody(); // AnalyticServiceAnalyticServiceRerunSQLQueryBody | + var executionId = executionId_example; // String | (default to null) + var projectId = projectId_example; // String | use project id if project_owner and project_slug are not provided (optional) (default to null) + var version = 56; // Integer | version of the datasource, default to the active version if not provided (optional) (default to null) try { - // Rerun SQL - analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery(owner, slug, body); + // Query SQL Result + analytic_service.QuerySQLResultResponse result = apiInstance.querySQLResult(owner, slug, executionId, projectId, version); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DataApi.rerunSQLQuery: " + e.Message ); + Debug.Print("Exception when calling DataApi.querySQLResult: " + e.Message ); } } } @@ -14417,7 +13856,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -14430,18 +13869,20 @@ 

    Usage and SDK Samples

    $api_instance = new OpenAPITools\Client\Api\DataApi(); $owner = owner_example; // String | username or organization name $slug = slug_example; // String | project slug -$body = ; // AnalyticServiceAnalyticServiceRerunSQLQueryBody | +$executionId = executionId_example; // String | +$projectId = projectId_example; // String | use project id if project_owner and project_slug are not provided +$version = 56; // Integer | version of the datasource, default to the active version if not provided try { - $result = $api_instance->rerunSQLQuery($owner, $slug, $body); + $result = $api_instance->querySQLResult($owner, $slug, $executionId, $projectId, $version); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DataApi->rerunSQLQuery: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DataApi->querySQLResult: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DataApi;
    @@ -14455,18 +13896,20 @@ 

    Usage and SDK Samples

    my $api_instance = WWW::OPenAPIClient::DataApi->new(); my $owner = owner_example; # String | username or organization name my $slug = slug_example; # String | project slug -my $body = WWW::OPenAPIClient::Object::AnalyticServiceAnalyticServiceRerunSQLQueryBody->new(); # AnalyticServiceAnalyticServiceRerunSQLQueryBody | +my $executionId = executionId_example; # String | +my $projectId = projectId_example; # String | use project id if project_owner and project_slug are not provided +my $version = 56; # Integer | version of the datasource, default to the active version if not provided eval { - my $result = $api_instance->rerunSQLQuery(owner => $owner, slug => $slug, body => $body); + my $result = $api_instance->querySQLResult(owner => $owner, slug => $slug, executionId => $executionId, projectId => $projectId, version => $version); print Dumper($result); }; if ($@) { - warn "Exception when calling DataApi->rerunSQLQuery: $@\n"; + warn "Exception when calling DataApi->querySQLResult: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -14482,26 +13925,30 @@ 

    Usage and SDK Samples

    api_instance = openapi_client.DataApi() owner = owner_example # String | username or organization name (default to null) slug = slug_example # String | project slug (default to null) -body = # AnalyticServiceAnalyticServiceRerunSQLQueryBody | +executionId = executionId_example # String | (default to null) +projectId = projectId_example # String | use project id if project_owner and project_slug are not provided (optional) (default to null) +version = 56 # Integer | version of the datasource, default to the active version if not provided (optional) (default to null) try: - # Rerun SQL - api_response = api_instance.rerun_sql_query(owner, slug, body) + # Query SQL Result + api_response = api_instance.query_sql_result(owner, slug, executionId, projectId=projectId, version=version) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->rerunSQLQuery: %s\n" % e)
    + print("Exception when calling DataApi->querySQLResult: %s\n" % e)
    -
    +
    extern crate DataApi;
     
     pub fn main() {
         let owner = owner_example; // String
         let slug = slug_example; // String
    -    let body = ; // AnalyticServiceAnalyticServiceRerunSQLQueryBody
    +    let executionId = executionId_example; // String
    +    let projectId = projectId_example; // String
    +    let version = 56; // Integer
     
         let mut context = DataApi::Context::default();
    -    let result = client.rerunSQLQuery(owner, slug, body, &context).wait();
    +    let result = client.querySQLResult(owner, slug, executionId, projectId, version, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -14526,7 +13973,7 @@ 

    Parameters

    -
    +
    @@ -14549,7 +13996,7 @@

    Parameters

    -
    +
    @@ -14566,80 +14013,102 @@

    Parameters

    + + + executionId* + + + +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    + -
    Body parameters
    + + +
    Query parameters
    - + + + + +
    Name Description
    body *
    projectId + + +
    +
    +
    + + String + + +
    +use project id if project_owner and project_slug are not provided +
    +
    +
    +
    +
    version -

    - -
    +
    +
    +
    + + Integer + + + (int32) + + +
    +version of the datasource, default to the active version if not provided +
    +
    +
    +
    - -

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    rerunSQLQuery2

    -

    Rerun SQL

    +

    retention

    +

    Retention query

    -

    Rerun your SQL query by query_id, you can also update the query and run it. - -It will return execution_id, use it to query the result.

    +

    Query for retention.


    -
    /api/v1/analytics/sql/rerun_query
    +
    /api/v1/insights/{owner}/{slug}/retention

    Usage and SDK Samples

    -
    +
    curl -X POST \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
      -H "Content-Type: application/json" \
    - "https://app.sentio.xyz/api/v1/analytics/sql/rerun_query" \
    + "https://app.sentio.xyz/api/v1/insights/{owner}/{slug}/retention" \
      -d ''
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -14767,13 +14234,15 @@ 

    Usage and SDK Samples

    // Create an instance of the API class DataApi apiInstance = new DataApi(); - AnalyticServiceRerunSQLQueryRequest body = ; // AnalyticServiceRerunSQLQueryRequest | + String owner = owner_example; // String | + String slug = slug_example; // String | + InsightsServiceInsightsServiceRetentionBody body = ; // InsightsServiceInsightsServiceRetentionBody | try { - analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery2(body); + insights_service.RetentionResponse result = apiInstance.retention(owner, slug, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DataApi#rerunSQLQuery2"); + System.err.println("Exception when calling DataApi#retention"); e.printStackTrace(); } } @@ -14781,46 +14250,50 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
     
    -final AnalyticServiceRerunSQLQueryRequest body = new AnalyticServiceRerunSQLQueryRequest(); // AnalyticServiceRerunSQLQueryRequest | 
    +final String owner = new String(); // String | 
    +final String slug = new String(); // String | 
    +final InsightsServiceInsightsServiceRetentionBody body = new InsightsServiceInsightsServiceRetentionBody(); // InsightsServiceInsightsServiceRetentionBody | 
     
     try {
    -    final result = await api_instance.rerunSQLQuery2(body);
    +    final result = await api_instance.retention(owner, slug, body);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->rerunSQLQuery2: $e\n');
    +    print('Exception when calling DefaultApi->retention: $e\n');
     }
     
     
    -
    +
    import org.openapitools.client.api.DataApi;
     
     public class DataApiExample {
         public static void main(String[] args) {
             DataApi apiInstance = new DataApi();
    -        AnalyticServiceRerunSQLQueryRequest body = ; // AnalyticServiceRerunSQLQueryRequest | 
    +        String owner = owner_example; // String | 
    +        String slug = slug_example; // String | 
    +        InsightsServiceInsightsServiceRetentionBody body = ; // InsightsServiceInsightsServiceRetentionBody | 
     
             try {
    -            analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery2(body);
    +            insights_service.RetentionResponse result = apiInstance.retention(owner, slug, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DataApi#rerunSQLQuery2");
    +            System.err.println("Exception when calling DataApi#retention");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -14831,11 +14304,15 @@ 

    Usage and SDK Samples

    // Create an instance of the API class DataApi *apiInstance = [[DataApi alloc] init]; -AnalyticServiceRerunSQLQueryRequest *body = ; // +String *owner = owner_example; // (default to null) +String *slug = slug_example; // (default to null) +InsightsServiceInsightsServiceRetentionBody *body = ; // -// Rerun SQL -[apiInstance rerunSQLQuery2With:body - completionHandler: ^(analytic_service.RerunSQLQueryResponse output, NSError* error) { +// Retention query +[apiInstance retentionWith:owner + slug:slug + body:body + completionHandler: ^(insights_service.RetentionResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -14846,7 +14323,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -14858,7 +14335,9 @@ 

    Usage and SDK Samples

    // Create an instance of the API class var api = new SentioApi.DataApi() -var body = ; // {AnalyticServiceRerunSQLQueryRequest} +var owner = owner_example; // {String} +var slug = slug_example; // {String} +var body = ; // {InsightsServiceInsightsServiceRetentionBody} var callback = function(error, data, response) { if (error) { @@ -14867,14 +14346,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.rerunSQLQuery2(body, callback); +api.retention(owner, slug, body, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -14883,7 +14362,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class rerunSQLQuery2Example + public class retentionExample { public void main() { @@ -14894,14 +14373,16 @@

    Usage and SDK Samples

    // Create an instance of the API class var apiInstance = new DataApi(); - var body = new AnalyticServiceRerunSQLQueryRequest(); // AnalyticServiceRerunSQLQueryRequest | + var owner = owner_example; // String | (default to null) + var slug = slug_example; // String | (default to null) + var body = new InsightsServiceInsightsServiceRetentionBody(); // InsightsServiceInsightsServiceRetentionBody | try { - // Rerun SQL - analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery2(body); + // Retention query + insights_service.RetentionResponse result = apiInstance.retention(owner, slug, body); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DataApi.rerunSQLQuery2: " + e.Message ); + Debug.Print("Exception when calling DataApi.retention: " + e.Message ); } } } @@ -14909,7 +14390,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -14920,18 +14401,20 @@ 

    Usage and SDK Samples

    // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\DataApi(); -$body = ; // AnalyticServiceRerunSQLQueryRequest | +$owner = owner_example; // String | +$slug = slug_example; // String | +$body = ; // InsightsServiceInsightsServiceRetentionBody | try { - $result = $api_instance->rerunSQLQuery2($body); + $result = $api_instance->retention($owner, $slug, $body); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DataApi->rerunSQLQuery2: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DataApi->retention: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DataApi;
    @@ -14943,18 +14426,20 @@ 

    Usage and SDK Samples

    # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::DataApi->new(); -my $body = WWW::OPenAPIClient::Object::AnalyticServiceRerunSQLQueryRequest->new(); # AnalyticServiceRerunSQLQueryRequest | +my $owner = owner_example; # String | +my $slug = slug_example; # String | +my $body = WWW::OPenAPIClient::Object::InsightsServiceInsightsServiceRetentionBody->new(); # InsightsServiceInsightsServiceRetentionBody | eval { - my $result = $api_instance->rerunSQLQuery2(body => $body); + my $result = $api_instance->retention(owner => $owner, slug => $slug, body => $body); print Dumper($result); }; if ($@) { - warn "Exception when calling DataApi->rerunSQLQuery2: $@\n"; + warn "Exception when calling DataApi->retention: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -14968,24 +14453,28 @@ 

    Usage and SDK Samples

    # Create an instance of the API class api_instance = openapi_client.DataApi() -body = # AnalyticServiceRerunSQLQueryRequest | +owner = owner_example # String | (default to null) +slug = slug_example # String | (default to null) +body = # InsightsServiceInsightsServiceRetentionBody | try: - # Rerun SQL - api_response = api_instance.rerun_sql_query2(body) + # Retention query + api_response = api_instance.retention(owner, slug, body) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->rerunSQLQuery2: %s\n" % e)
    + print("Exception when calling DataApi->retention: %s\n" % e)
    -
    +
    extern crate DataApi;
     
     pub fn main() {
    -    let body = ; // AnalyticServiceRerunSQLQueryRequest
    +    let owner = owner_example; // String
    +    let slug = slug_example; // String
    +    let body = ; // InsightsServiceInsightsServiceRetentionBody
     
         let mut context = DataApi::Context::default();
    -    let result = client.rerunSQLQuery2(body, &context).wait();
    +    let result = client.retention(owner, slug, body, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -15000,6 +14489,53 @@ 

    Scopes

    Parameters

    +
    Path parameters
    + + + + + + + + + + + + + +
    NameDescription
    owner* + + +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    +
    slug* + + +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    +
    Body parameters
    @@ -15017,7 +14553,7 @@

    Parameters

    "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/analytic_service.RerunSQLQueryRequest" + "$ref" : "#/components/schemas/insights_service.InsightsService.RetentionBody" } } }, @@ -15040,12 +14576,12 @@

    Parameters

    } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_rerunSQLQuery2_body'); + var result = $('#d2e199_retention_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -15054,23 +14590,23 @@

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    retention

    +

    retention2

    Retention query

    @@ -15145,37 +14681,37 @@

    retention

    Query for retention.


    -
    /api/v1/insights/{owner}/{slug}/retention
    +
    /api/v1/insights/retention

    Usage and SDK Samples

    -
    +
    curl -X POST \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
      -H "Content-Type: application/json" \
    - "https://app.sentio.xyz/api/v1/insights/{owner}/{slug}/retention" \
    + "https://app.sentio.xyz/api/v1/insights/retention" \
      -d ''
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -15196,15 +14732,13 @@ 

    Usage and SDK Samples

    // Create an instance of the API class DataApi apiInstance = new DataApi(); - String owner = owner_example; // String | - String slug = slug_example; // String | - InsightsServiceInsightsServiceRetentionBody body = ; // InsightsServiceInsightsServiceRetentionBody | + InsightsServiceRetentionRequest body = ; // InsightsServiceRetentionRequest | try { - insights_service.RetentionResponse result = apiInstance.retention(owner, slug, body); + insights_service.RetentionResponse result = apiInstance.retention2(body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DataApi#retention"); + System.err.println("Exception when calling DataApi#retention2"); e.printStackTrace(); } } @@ -15212,50 +14746,46 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
     
    -final String owner = new String(); // String | 
    -final String slug = new String(); // String | 
    -final InsightsServiceInsightsServiceRetentionBody body = new InsightsServiceInsightsServiceRetentionBody(); // InsightsServiceInsightsServiceRetentionBody | 
    +final InsightsServiceRetentionRequest body = new InsightsServiceRetentionRequest(); // InsightsServiceRetentionRequest | 
     
     try {
    -    final result = await api_instance.retention(owner, slug, body);
    +    final result = await api_instance.retention2(body);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->retention: $e\n');
    +    print('Exception when calling DefaultApi->retention2: $e\n');
     }
     
     
    -
    +
    import org.openapitools.client.api.DataApi;
     
     public class DataApiExample {
         public static void main(String[] args) {
             DataApi apiInstance = new DataApi();
    -        String owner = owner_example; // String | 
    -        String slug = slug_example; // String | 
    -        InsightsServiceInsightsServiceRetentionBody body = ; // InsightsServiceInsightsServiceRetentionBody | 
    +        InsightsServiceRetentionRequest body = ; // InsightsServiceRetentionRequest | 
     
             try {
    -            insights_service.RetentionResponse result = apiInstance.retention(owner, slug, body);
    +            insights_service.RetentionResponse result = apiInstance.retention2(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DataApi#retention");
    +            System.err.println("Exception when calling DataApi#retention2");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -15266,14 +14796,10 @@ 

    Usage and SDK Samples

    // Create an instance of the API class DataApi *apiInstance = [[DataApi alloc] init]; -String *owner = owner_example; // (default to null) -String *slug = slug_example; // (default to null) -InsightsServiceInsightsServiceRetentionBody *body = ; // +InsightsServiceRetentionRequest *body = ; // // Retention query -[apiInstance retentionWith:owner - slug:slug - body:body +[apiInstance retention2With:body completionHandler: ^(insights_service.RetentionResponse output, NSError* error) { if (output) { NSLog(@"%@", output); @@ -15285,7 +14811,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -15297,9 +14823,7 @@ 

    Usage and SDK Samples

    // Create an instance of the API class var api = new SentioApi.DataApi() -var owner = owner_example; // {String} -var slug = slug_example; // {String} -var body = ; // {InsightsServiceInsightsServiceRetentionBody} +var body = ; // {InsightsServiceRetentionRequest} var callback = function(error, data, response) { if (error) { @@ -15308,14 +14832,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.retention(owner, slug, body, callback); +api.retention2(body, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -15324,7 +14848,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class retentionExample + public class retention2Example { public void main() { @@ -15335,16 +14859,14 @@

    Usage and SDK Samples

    // Create an instance of the API class var apiInstance = new DataApi(); - var owner = owner_example; // String | (default to null) - var slug = slug_example; // String | (default to null) - var body = new InsightsServiceInsightsServiceRetentionBody(); // InsightsServiceInsightsServiceRetentionBody | + var body = new InsightsServiceRetentionRequest(); // InsightsServiceRetentionRequest | try { // Retention query - insights_service.RetentionResponse result = apiInstance.retention(owner, slug, body); + insights_service.RetentionResponse result = apiInstance.retention2(body); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DataApi.retention: " + e.Message ); + Debug.Print("Exception when calling DataApi.retention2: " + e.Message ); } } } @@ -15352,7 +14874,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -15363,20 +14885,18 @@ 

    Usage and SDK Samples

    // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\DataApi(); -$owner = owner_example; // String | -$slug = slug_example; // String | -$body = ; // InsightsServiceInsightsServiceRetentionBody | +$body = ; // InsightsServiceRetentionRequest | try { - $result = $api_instance->retention($owner, $slug, $body); + $result = $api_instance->retention2($body); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DataApi->retention: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DataApi->retention2: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DataApi;
    @@ -15388,20 +14908,18 @@ 

    Usage and SDK Samples

    # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::DataApi->new(); -my $owner = owner_example; # String | -my $slug = slug_example; # String | -my $body = WWW::OPenAPIClient::Object::InsightsServiceInsightsServiceRetentionBody->new(); # InsightsServiceInsightsServiceRetentionBody | +my $body = WWW::OPenAPIClient::Object::InsightsServiceRetentionRequest->new(); # InsightsServiceRetentionRequest | eval { - my $result = $api_instance->retention(owner => $owner, slug => $slug, body => $body); + my $result = $api_instance->retention2(body => $body); print Dumper($result); }; if ($@) { - warn "Exception when calling DataApi->retention: $@\n"; + warn "Exception when calling DataApi->retention2: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -15415,28 +14933,24 @@ 

    Usage and SDK Samples

    # Create an instance of the API class api_instance = openapi_client.DataApi() -owner = owner_example # String | (default to null) -slug = slug_example # String | (default to null) -body = # InsightsServiceInsightsServiceRetentionBody | +body = # InsightsServiceRetentionRequest | try: # Retention query - api_response = api_instance.retention(owner, slug, body) + api_response = api_instance.retention2(body) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->retention: %s\n" % e)
    + print("Exception when calling DataApi->retention2: %s\n" % e)
    -
    +
    extern crate DataApi;
     
     pub fn main() {
    -    let owner = owner_example; // String
    -    let slug = slug_example; // String
    -    let body = ; // InsightsServiceInsightsServiceRetentionBody
    +    let body = ; // InsightsServiceRetentionRequest
     
         let mut context = DataApi::Context::default();
    -    let result = client.retention(owner, slug, body, &context).wait();
    +    let result = client.retention2(body, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -15451,53 +14965,6 @@ 

    Scopes

    Parameters

    -
    Path parameters
    - - - - - - - - - - - - - -
    NameDescription
    owner* - - -
    -
    -
    - - String - - -
    -
    - Required -
    -
    -
    -
    slug* - - -
    -
    -
    - - String - - -
    -
    - Required -
    -
    -
    -
    Body parameters
    @@ -15515,7 +14982,7 @@

    Parameters

    "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/insights_service.InsightsService.RetentionBody" + "$ref" : "#/components/schemas/insights_service.RetentionRequest" } } }, @@ -15538,12 +15005,12 @@

    Parameters

    } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_retention_body'); + var result = $('#d2e199_retention2_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -15552,23 +15019,23 @@

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    retention2

    -

    Retention query

    +

    saveSQL

    +

    Save SQL

    -

    Query for retention.

    +

    Save or update a SQL query in a project.


    -
    /api/v1/insights/retention
    +
    /api/v1/analytics/{owner}/{slug}/sql/save

    Usage and SDK Samples

    -
    +
    curl -X POST \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
      -H "Content-Type: application/json" \
    - "https://app.sentio.xyz/api/v1/insights/retention" \
    + "https://app.sentio.xyz/api/v1/analytics/{owner}/{slug}/sql/save" \
      -d ''
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -15694,13 +15161,15 @@ 

    Usage and SDK Samples

    // Create an instance of the API class DataApi apiInstance = new DataApi(); - InsightsServiceRetentionRequest body = ; // InsightsServiceRetentionRequest | + String owner = owner_example; // String | username or organization name + String slug = slug_example; // String | project slug + AnalyticServiceAnalyticServiceSaveSQLBody body = ; // AnalyticServiceAnalyticServiceSaveSQLBody | try { - insights_service.RetentionResponse result = apiInstance.retention2(body); + analytic_service.SaveSQLResponse result = apiInstance.saveSQL(owner, slug, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DataApi#retention2"); + System.err.println("Exception when calling DataApi#saveSQL"); e.printStackTrace(); } } @@ -15708,46 +15177,50 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
     
    -final InsightsServiceRetentionRequest body = new InsightsServiceRetentionRequest(); // InsightsServiceRetentionRequest | 
    +final String owner = new String(); // String | username or organization name
    +final String slug = new String(); // String | project slug
    +final AnalyticServiceAnalyticServiceSaveSQLBody body = new AnalyticServiceAnalyticServiceSaveSQLBody(); // AnalyticServiceAnalyticServiceSaveSQLBody | 
     
     try {
    -    final result = await api_instance.retention2(body);
    +    final result = await api_instance.saveSQL(owner, slug, body);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->retention2: $e\n');
    +    print('Exception when calling DefaultApi->saveSQL: $e\n');
     }
     
     
    -
    +
    import org.openapitools.client.api.DataApi;
     
     public class DataApiExample {
         public static void main(String[] args) {
             DataApi apiInstance = new DataApi();
    -        InsightsServiceRetentionRequest body = ; // InsightsServiceRetentionRequest | 
    +        String owner = owner_example; // String | username or organization name
    +        String slug = slug_example; // String | project slug
    +        AnalyticServiceAnalyticServiceSaveSQLBody body = ; // AnalyticServiceAnalyticServiceSaveSQLBody | 
     
             try {
    -            insights_service.RetentionResponse result = apiInstance.retention2(body);
    +            analytic_service.SaveSQLResponse result = apiInstance.saveSQL(owner, slug, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DataApi#retention2");
    +            System.err.println("Exception when calling DataApi#saveSQL");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -15758,11 +15231,15 @@ 

    Usage and SDK Samples

    // Create an instance of the API class DataApi *apiInstance = [[DataApi alloc] init]; -InsightsServiceRetentionRequest *body = ; // +String *owner = owner_example; // username or organization name (default to null) +String *slug = slug_example; // project slug (default to null) +AnalyticServiceAnalyticServiceSaveSQLBody *body = ; // -// Retention query -[apiInstance retention2With:body - completionHandler: ^(insights_service.RetentionResponse output, NSError* error) { +// Save SQL +[apiInstance saveSQLWith:owner + slug:slug + body:body + completionHandler: ^(analytic_service.SaveSQLResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -15773,7 +15250,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -15785,7 +15262,9 @@ 

    Usage and SDK Samples

    // Create an instance of the API class var api = new SentioApi.DataApi() -var body = ; // {InsightsServiceRetentionRequest} +var owner = owner_example; // {String} username or organization name +var slug = slug_example; // {String} project slug +var body = ; // {AnalyticServiceAnalyticServiceSaveSQLBody} var callback = function(error, data, response) { if (error) { @@ -15794,14 +15273,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.retention2(body, callback); +api.saveSQL(owner, slug, body, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -15810,7 +15289,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class retention2Example + public class saveSQLExample { public void main() { @@ -15821,14 +15300,16 @@

    Usage and SDK Samples

    // Create an instance of the API class var apiInstance = new DataApi(); - var body = new InsightsServiceRetentionRequest(); // InsightsServiceRetentionRequest | + var owner = owner_example; // String | username or organization name (default to null) + var slug = slug_example; // String | project slug (default to null) + var body = new AnalyticServiceAnalyticServiceSaveSQLBody(); // AnalyticServiceAnalyticServiceSaveSQLBody | try { - // Retention query - insights_service.RetentionResponse result = apiInstance.retention2(body); + // Save SQL + analytic_service.SaveSQLResponse result = apiInstance.saveSQL(owner, slug, body); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DataApi.retention2: " + e.Message ); + Debug.Print("Exception when calling DataApi.saveSQL: " + e.Message ); } } } @@ -15836,7 +15317,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -15847,18 +15328,20 @@ 

    Usage and SDK Samples

    // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\DataApi(); -$body = ; // InsightsServiceRetentionRequest | +$owner = owner_example; // String | username or organization name +$slug = slug_example; // String | project slug +$body = ; // AnalyticServiceAnalyticServiceSaveSQLBody | try { - $result = $api_instance->retention2($body); + $result = $api_instance->saveSQL($owner, $slug, $body); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DataApi->retention2: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DataApi->saveSQL: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DataApi;
    @@ -15870,18 +15353,20 @@ 

    Usage and SDK Samples

    # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::DataApi->new(); -my $body = WWW::OPenAPIClient::Object::InsightsServiceRetentionRequest->new(); # InsightsServiceRetentionRequest | +my $owner = owner_example; # String | username or organization name +my $slug = slug_example; # String | project slug +my $body = WWW::OPenAPIClient::Object::AnalyticServiceAnalyticServiceSaveSQLBody->new(); # AnalyticServiceAnalyticServiceSaveSQLBody | eval { - my $result = $api_instance->retention2(body => $body); + my $result = $api_instance->saveSQL(owner => $owner, slug => $slug, body => $body); print Dumper($result); }; if ($@) { - warn "Exception when calling DataApi->retention2: $@\n"; + warn "Exception when calling DataApi->saveSQL: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -15895,24 +15380,28 @@ 

    Usage and SDK Samples

    # Create an instance of the API class api_instance = openapi_client.DataApi() -body = # InsightsServiceRetentionRequest | +owner = owner_example # String | username or organization name (default to null) +slug = slug_example # String | project slug (default to null) +body = # AnalyticServiceAnalyticServiceSaveSQLBody | try: - # Retention query - api_response = api_instance.retention2(body) + # Save SQL + api_response = api_instance.save_sql(owner, slug, body) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->retention2: %s\n" % e)
    + print("Exception when calling DataApi->saveSQL: %s\n" % e)
    -
    +
    extern crate DataApi;
     
     pub fn main() {
    -    let body = ; // InsightsServiceRetentionRequest
    +    let owner = owner_example; // String
    +    let slug = slug_example; // String
    +    let body = ; // AnalyticServiceAnalyticServiceSaveSQLBody
     
         let mut context = DataApi::Context::default();
    -    let result = client.retention2(body, &context).wait();
    +    let result = client.saveSQL(owner, slug, body, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -15927,6 +15416,59 @@ 

    Scopes

    Parameters

    +
    Path parameters
    + + + + + + + + + + + + + +
    NameDescription
    owner* + + +
    +
    +
    + + String + + +
    +username or organization name +
    +
    +
    + Required +
    +
    +
    +
    slug* + + +
    +
    +
    + + String + + +
    +project slug +
    +
    +
    + Required +
    +
    +
    +
    Body parameters
    @@ -15944,7 +15486,7 @@

    Parameters

    "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/insights_service.RetentionRequest" + "$ref" : "#/components/schemas/analytic_service.AnalyticService.SaveSQLBody" } } }, @@ -15967,12 +15509,12 @@

    Parameters

    } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_retention2_body'); + var result = $('#d2e199_saveSQL_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -15981,23 +15523,23 @@

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    saveSQL

    +

    saveSQL2

    Save SQL

    -

    Save your SQL query, and you can run it immediately or later. - -It will return query_id, you can use it to rerun the query. -if you enable the "run_immediately" field, it will run the query immediately, and return execution_id, use it to query the result.

    +

    Save or update a SQL query in a project.


    -
    /api/v1/analytics/{owner}/{slug}/sql/save_query
    +
    /api/v1/analytics/{owner}/{slug}/sql/save

    Usage and SDK Samples

    -
    -
    curl -X POST \
    +                          
    +
    curl -X PUT \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
      -H "Content-Type: application/json" \
    - "https://app.sentio.xyz/api/v1/analytics/{owner}/{slug}/sql/save_query" \
    + "https://app.sentio.xyz/api/v1/analytics/{owner}/{slug}/sql/save" \
      -d ''
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -16131,10 +15670,10 @@ 

    Usage and SDK Samples

    AnalyticServiceAnalyticServiceSaveSQLBody body = ; // AnalyticServiceAnalyticServiceSaveSQLBody | try { - analytic_service.SaveSQLResponse result = apiInstance.saveSQL(owner, slug, body); + analytic_service.SaveSQLResponse result = apiInstance.saveSQL2(owner, slug, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DataApi#saveSQL"); + System.err.println("Exception when calling DataApi#saveSQL2"); e.printStackTrace(); } } @@ -16142,7 +15681,7 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
    @@ -16152,16 +15691,16 @@ 

    Usage and SDK Samples

    final AnalyticServiceAnalyticServiceSaveSQLBody body = new AnalyticServiceAnalyticServiceSaveSQLBody(); // AnalyticServiceAnalyticServiceSaveSQLBody | try { - final result = await api_instance.saveSQL(owner, slug, body); + final result = await api_instance.saveSQL2(owner, slug, body); print(result); } catch (e) { - print('Exception when calling DefaultApi->saveSQL: $e\n'); + print('Exception when calling DefaultApi->saveSQL2: $e\n'); }
    -
    +
    import org.openapitools.client.api.DataApi;
     
     public class DataApiExample {
    @@ -16172,20 +15711,20 @@ 

    Usage and SDK Samples

    AnalyticServiceAnalyticServiceSaveSQLBody body = ; // AnalyticServiceAnalyticServiceSaveSQLBody | try { - analytic_service.SaveSQLResponse result = apiInstance.saveSQL(owner, slug, body); + analytic_service.SaveSQLResponse result = apiInstance.saveSQL2(owner, slug, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DataApi#saveSQL"); + System.err.println("Exception when calling DataApi#saveSQL2"); e.printStackTrace(); } } }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -16201,7 +15740,7 @@ 

    Usage and SDK Samples

    AnalyticServiceAnalyticServiceSaveSQLBody *body = ; // // Save SQL -[apiInstance saveSQLWith:owner +[apiInstance saveSQL2With:owner slug:slug body:body completionHandler: ^(analytic_service.SaveSQLResponse output, NSError* error) { @@ -16215,7 +15754,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -16238,14 +15777,14 @@ 

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.saveSQL(owner, slug, body, callback); +api.saveSQL2(owner, slug, body, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -16254,7 +15793,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class saveSQLExample + public class saveSQL2Example { public void main() { @@ -16271,10 +15810,10 @@

    Usage and SDK Samples

    try { // Save SQL - analytic_service.SaveSQLResponse result = apiInstance.saveSQL(owner, slug, body); + analytic_service.SaveSQLResponse result = apiInstance.saveSQL2(owner, slug, body); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DataApi.saveSQL: " + e.Message ); + Debug.Print("Exception when calling DataApi.saveSQL2: " + e.Message ); } } } @@ -16282,7 +15821,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -16298,15 +15837,15 @@ 

    Usage and SDK Samples

    $body = ; // AnalyticServiceAnalyticServiceSaveSQLBody | try { - $result = $api_instance->saveSQL($owner, $slug, $body); + $result = $api_instance->saveSQL2($owner, $slug, $body); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DataApi->saveSQL: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DataApi->saveSQL2: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DataApi;
    @@ -16323,15 +15862,15 @@ 

    Usage and SDK Samples

    my $body = WWW::OPenAPIClient::Object::AnalyticServiceAnalyticServiceSaveSQLBody->new(); # AnalyticServiceAnalyticServiceSaveSQLBody | eval { - my $result = $api_instance->saveSQL(owner => $owner, slug => $slug, body => $body); + my $result = $api_instance->saveSQL2(owner => $owner, slug => $slug, body => $body); print Dumper($result); }; if ($@) { - warn "Exception when calling DataApi->saveSQL: $@\n"; + warn "Exception when calling DataApi->saveSQL2: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -16351,13 +15890,13 @@ 

    Usage and SDK Samples

    try: # Save SQL - api_response = api_instance.save_sql(owner, slug, body) + api_response = api_instance.save_sql2(owner, slug, body) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->saveSQL: %s\n" % e)
    + print("Exception when calling DataApi->saveSQL2: %s\n" % e)
    -
    +
    extern crate DataApi;
     
     pub fn main() {
    @@ -16366,7 +15905,7 @@ 

    Usage and SDK Samples

    let body = ; // AnalyticServiceAnalyticServiceSaveSQLBody let mut context = DataApi::Context::default(); - let result = client.saveSQL(owner, slug, body, &context).wait(); + let result = client.saveSQL2(owner, slug, body, &context).wait(); println!("{:?}", result); } @@ -16391,7 +15930,7 @@

    Parameters

    -
    +
    @@ -16414,7 +15953,7 @@

    Parameters

    -
    +
    @@ -16474,12 +16013,12 @@

    Parameters

    } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_saveSQL_body'); + var result = $('#d2e199_saveSQL2_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -16488,23 +16027,23 @@

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    + +
    +

    DebugAndSimulation

    +
    +
    -

    saveSQL2

    -

    Save SQL

    +

    getCallTraceByBundle

    +

    Get trace by bundle simulation

    -

    Save your SQL query, and you can run it immediately or later. - -It will return query_id, you can use it to rerun the query. -if you enable the "run_immediately" field, it will run the query immediately, and return execution_id, use it to query the result.

    +


    -
    /api/v1/analytics/sql/save_query
    +
    /api/v1/solidity/{owner}/{slug}/{chainId}/bundle/{bundleId}/call_trace

    Usage and SDK Samples

    -
    -
    curl -X POST \
    +                          
    +
    curl -X GET \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
    - -H "Content-Type: application/json" \
    - "https://app.sentio.xyz/api/v1/analytics/sql/save_query" \
    - -d ''
    + "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/{chainId}/bundle/{bundleId}/call_trace?withInternalCalls=true&disableOptimizer=true&ignoreGasCost=true"
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    -import org.openapitools.client.api.DataApi;
    +import org.openapitools.client.api.DebugAndSimulationApi;
     
     import java.io.File;
     import java.util.*;
     
    -public class DataApiExample {
    +public class DebugAndSimulationApiExample {
         public static void main(String[] args) {
             ApiClient defaultClient = Configuration.getDefaultApiClient();
     
    @@ -16632,14 +16169,20 @@ 

    Usage and SDK Samples

    //ApiKeyAuth.setApiKeyPrefix("Token"); // Create an instance of the API class - DataApi apiInstance = new DataApi(); - AnalyticServiceSaveSQLRequest body = ; // AnalyticServiceSaveSQLRequest | + DebugAndSimulationApi apiInstance = new DebugAndSimulationApi(); + String owner = owner_example; // String | + String slug = slug_example; // String | + String chainId = chainId_example; // String | + String bundleId = bundleId_example; // String | + Boolean withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. + Boolean disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. + Boolean ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. try { - analytic_service.SaveSQLResponse result = apiInstance.saveSQL2(body); + google.api.HttpBody result = apiInstance.getCallTraceByBundle(owner, slug, chainId, bundleId, withInternalCalls, disableOptimizer, ignoreGasCost); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DataApi#saveSQL2"); + System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByBundle"); e.printStackTrace(); } } @@ -16647,46 +16190,58 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
     
    -final AnalyticServiceSaveSQLRequest body = new AnalyticServiceSaveSQLRequest(); // AnalyticServiceSaveSQLRequest | 
    +final String owner = new String(); // String | 
    +final String slug = new String(); // String | 
    +final String chainId = new String(); // String | 
    +final String bundleId = new String(); // String | 
    +final Boolean withInternalCalls = new Boolean(); // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
    +final Boolean disableOptimizer = new Boolean(); // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
    +final Boolean ignoreGasCost = new Boolean(); // Boolean | Only effective when disableOptimizer=true.
     
     try {
    -    final result = await api_instance.saveSQL2(body);
    +    final result = await api_instance.getCallTraceByBundle(owner, slug, chainId, bundleId, withInternalCalls, disableOptimizer, ignoreGasCost);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->saveSQL2: $e\n');
    +    print('Exception when calling DefaultApi->getCallTraceByBundle: $e\n');
     }
     
     
    -
    -
    import org.openapitools.client.api.DataApi;
    +                          
    +
    import org.openapitools.client.api.DebugAndSimulationApi;
     
    -public class DataApiExample {
    +public class DebugAndSimulationApiExample {
         public static void main(String[] args) {
    -        DataApi apiInstance = new DataApi();
    -        AnalyticServiceSaveSQLRequest body = ; // AnalyticServiceSaveSQLRequest | 
    +        DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
    +        String owner = owner_example; // String | 
    +        String slug = slug_example; // String | 
    +        String chainId = chainId_example; // String | 
    +        String bundleId = bundleId_example; // String | 
    +        Boolean withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
    +        Boolean disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
    +        Boolean ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true.
     
             try {
    -            analytic_service.SaveSQLResponse result = apiInstance.saveSQL2(body);
    +            google.api.HttpBody result = apiInstance.getCallTraceByBundle(owner, slug, chainId, bundleId, withInternalCalls, disableOptimizer, ignoreGasCost);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DataApi#saveSQL2");
    +            System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByBundle");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -16696,12 +16251,24 @@ 

    Usage and SDK Samples

    // Create an instance of the API class -DataApi *apiInstance = [[DataApi alloc] init]; -AnalyticServiceSaveSQLRequest *body = ; // +DebugAndSimulationApi *apiInstance = [[DebugAndSimulationApi alloc] init]; +String *owner = owner_example; // (default to null) +String *slug = slug_example; // (default to null) +String *chainId = chainId_example; // (default to null) +String *bundleId = bundleId_example; // (default to null) +Boolean *withInternalCalls = true; // Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null) +Boolean *disableOptimizer = true; // Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null) +Boolean *ignoreGasCost = true; // Only effective when disableOptimizer=true. (optional) (default to null) -// Save SQL -[apiInstance saveSQL2With:body - completionHandler: ^(analytic_service.SaveSQLResponse output, NSError* error) { +// Get trace by bundle simulation +[apiInstance getCallTraceByBundleWith:owner + slug:slug + chainId:chainId + bundleId:bundleId + withInternalCalls:withInternalCalls + disableOptimizer:disableOptimizer + ignoreGasCost:ignoreGasCost + completionHandler: ^(google.api.HttpBody output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -16712,7 +16279,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -16723,8 +16290,16 @@ 

    Usage and SDK Samples

    //ApiKeyAuth.apiKeyPrefix['api-key'] = "Token"; // Create an instance of the API class -var api = new SentioApi.DataApi() -var body = ; // {AnalyticServiceSaveSQLRequest} +var api = new SentioApi.DebugAndSimulationApi() +var owner = owner_example; // {String} +var slug = slug_example; // {String} +var chainId = chainId_example; // {String} +var bundleId = bundleId_example; // {String} +var opts = { + 'withInternalCalls': true, // {Boolean} Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. + 'disableOptimizer': true, // {Boolean} Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. + 'ignoreGasCost': true // {Boolean} Only effective when disableOptimizer=true. +}; var callback = function(error, data, response) { if (error) { @@ -16733,14 +16308,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.saveSQL2(body, callback); +api.getCallTraceByBundle(owner, slug, chainId, bundleId, opts, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -16749,7 +16324,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class saveSQL2Example + public class getCallTraceByBundleExample { public void main() { @@ -16759,15 +16334,21 @@

    Usage and SDK Samples

    // Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer"); // Create an instance of the API class - var apiInstance = new DataApi(); - var body = new AnalyticServiceSaveSQLRequest(); // AnalyticServiceSaveSQLRequest | + var apiInstance = new DebugAndSimulationApi(); + var owner = owner_example; // String | (default to null) + var slug = slug_example; // String | (default to null) + var chainId = chainId_example; // String | (default to null) + var bundleId = bundleId_example; // String | (default to null) + var withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null) + var disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null) + var ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. (optional) (default to null) try { - // Save SQL - analytic_service.SaveSQLResponse result = apiInstance.saveSQL2(body); + // Get trace by bundle simulation + google.api.HttpBody result = apiInstance.getCallTraceByBundle(owner, slug, chainId, bundleId, withInternalCalls, disableOptimizer, ignoreGasCost); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DataApi.saveSQL2: " + e.Message ); + Debug.Print("Exception when calling DebugAndSimulationApi.getCallTraceByBundle: " + e.Message ); } } } @@ -16775,7 +16356,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -16785,22 +16366,28 @@ 

    Usage and SDK Samples

    // OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); // Create an instance of the API class -$api_instance = new OpenAPITools\Client\Api\DataApi(); -$body = ; // AnalyticServiceSaveSQLRequest | +$api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi(); +$owner = owner_example; // String | +$slug = slug_example; // String | +$chainId = chainId_example; // String | +$bundleId = bundleId_example; // String | +$withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. +$disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. +$ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. try { - $result = $api_instance->saveSQL2($body); + $result = $api_instance->getCallTraceByBundle($owner, $slug, $chainId, $bundleId, $withInternalCalls, $disableOptimizer, $ignoreGasCost); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DataApi->saveSQL2: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DebugAndSimulationApi->getCallTraceByBundle: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
    -use WWW::OPenAPIClient::DataApi;
    +use WWW::OPenAPIClient::DebugAndSimulationApi;
     
     # Configure API key authorization: ApiKeyAuth
     $WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
    @@ -16808,19 +16395,25 @@ 

    Usage and SDK Samples

    #$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer"; # Create an instance of the API class -my $api_instance = WWW::OPenAPIClient::DataApi->new(); -my $body = WWW::OPenAPIClient::Object::AnalyticServiceSaveSQLRequest->new(); # AnalyticServiceSaveSQLRequest | +my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new(); +my $owner = owner_example; # String | +my $slug = slug_example; # String | +my $chainId = chainId_example; # String | +my $bundleId = bundleId_example; # String | +my $withInternalCalls = true; # Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. +my $disableOptimizer = true; # Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. +my $ignoreGasCost = true; # Boolean | Only effective when disableOptimizer=true. eval { - my $result = $api_instance->saveSQL2(body => $body); + my $result = $api_instance->getCallTraceByBundle(owner => $owner, slug => $slug, chainId => $chainId, bundleId => $bundleId, withInternalCalls => $withInternalCalls, disableOptimizer => $disableOptimizer, ignoreGasCost => $ignoreGasCost); print Dumper($result); }; if ($@) { - warn "Exception when calling DataApi->saveSQL2: $@\n"; + warn "Exception when calling DebugAndSimulationApi->getCallTraceByBundle: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -16833,25 +16426,37 @@ 

    Usage and SDK Samples

    # openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer' # Create an instance of the API class -api_instance = openapi_client.DataApi() -body = # AnalyticServiceSaveSQLRequest | +api_instance = openapi_client.DebugAndSimulationApi() +owner = owner_example # String | (default to null) +slug = slug_example # String | (default to null) +chainId = chainId_example # String | (default to null) +bundleId = bundleId_example # String | (default to null) +withInternalCalls = true # Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null) +disableOptimizer = true # Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null) +ignoreGasCost = true # Boolean | Only effective when disableOptimizer=true. (optional) (default to null) try: - # Save SQL - api_response = api_instance.save_sql2(body) + # Get trace by bundle simulation + api_response = api_instance.get_call_trace_by_bundle(owner, slug, chainId, bundleId, withInternalCalls=withInternalCalls, disableOptimizer=disableOptimizer, ignoreGasCost=ignoreGasCost) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->saveSQL2: %s\n" % e)
    + print("Exception when calling DebugAndSimulationApi->getCallTraceByBundle: %s\n" % e)
    -
    -
    extern crate DataApi;
    +                            
    +
    extern crate DebugAndSimulationApi;
     
     pub fn main() {
    -    let body = ; // AnalyticServiceSaveSQLRequest
    +    let owner = owner_example; // String
    +    let slug = slug_example; // String
    +    let chainId = chainId_example; // String
    +    let bundleId = bundleId_example; // String
    +    let withInternalCalls = true; // Boolean
    +    let disableOptimizer = true; // Boolean
    +    let ignoreGasCost = true; // Boolean
     
    -    let mut context = DataApi::Context::default();
    -    let result = client.saveSQL2(body, &context).wait();
    +    let mut context = DebugAndSimulationApi::Context::default();
    +    let result = client.getCallTraceByBundle(owner, slug, chainId, bundleId, withInternalCalls, disableOptimizer, ignoreGasCost, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -16866,77 +16471,183 @@ 

    Scopes

    Parameters

    +
    Path parameters
    + + + + + + + + + + + + + + + + + + + + + +
    NameDescription
    owner* + +
    +
    +
    + + String + -
    Body parameters
    +
    +
    + Required +
    +
    +
    +
    slug* + + +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    +
    chainId* + + +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    +
    bundleId* + + +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    +
    + + + + +
    Query parameters
    - + -
    Name Description
    body *
    withInternalCalls -

    - -
    +
    +
    +
    + + Boolean + + +
    +Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. +
    +
    +
    +
    + disableOptimizer + + + +
    +
    +
    + + Boolean + + +
    +Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. +
    +
    +
    +
    + + + + ignoreGasCost + +
    +
    +
    + + Boolean + + +
    +Only effective when disableOptimizer=true. +
    +
    +
    +
    + + + +

    Responses

    -

    -

    +

    +

    -

    -
    -
    -

    DebugAndSimulation

    -
    -
    +
    +
    -

    getCallTraceByBundle

    -

    Get trace by bundle simulation

    +

    getCallTraceBySimulation

    +

    Get trace by simulation

    @@ -17014,35 +16722,35 @@

    getCallTraceByBundle


    -
    /api/v1/solidity/{owner}/{slug}/{chainId}/bundle/{bundleId}/call_trace
    +
    /api/v1/solidity/{owner}/{slug}/{chainId}/simulation/{simulationId}/call_trace

    -

    Usage and SDK Samples

    -

    -

    -
    -
    +
    +
    -

    getCallTraceBySimulation

    -

    Get trace by simulation

    +

    getCallTraceByTransaction

    +

    Get trace by transaction

    -

    +

    API to get Sentio call trace. It takes `txId.txHash` and `chainSpec.chainId` arguments, where the first is transaction hash, and the second is the numeric ethereum chain ID. + +The results looks very similar to the normal [Ethereum call trace](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png). But we have an additional `startIndex` and `startIndex` on each trace entry even for the LOG, representing the execution order in the trace. + +This allows you to build chart that marks the order of fund flow. + +![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png)


    -
    /api/v1/solidity/{owner}/{slug}/{chainId}/simulation/{simulationId}/call_trace
    +
    /api/v1/solidity/{owner}/{slug}/{chainId}/transaction/{txHash}/call_trace

    Usage and SDK Samples

    -
    +
    curl -X GET \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
    - "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/{chainId}/simulation/{simulationId}/call_trace?withInternalCalls=true&disableOptimizer=true&ignoreGasCost=true"
    + "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/{chainId}/transaction/{txHash}/call_trace?withInternalCalls=true&disableOptimizer=true&ignoreGasCost=true"
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -17667,16 +17381,16 @@ 

    Usage and SDK Samples

    String owner = owner_example; // String | String slug = slug_example; // String | String chainId = chainId_example; // String | - String simulationId = simulationId_example; // String | + String txHash = txHash_example; // String | Boolean withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. Boolean disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. Boolean ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. try { - google.api.HttpBody result = apiInstance.getCallTraceBySimulation(owner, slug, chainId, simulationId, withInternalCalls, disableOptimizer, ignoreGasCost); + google.api.HttpBody result = apiInstance.getCallTraceByTransaction(owner, slug, chainId, txHash, withInternalCalls, disableOptimizer, ignoreGasCost); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceBySimulation"); + System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByTransaction"); e.printStackTrace(); } } @@ -17684,7 +17398,7 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
    @@ -17692,22 +17406,22 @@ 

    Usage and SDK Samples

    final String owner = new String(); // String | final String slug = new String(); // String | final String chainId = new String(); // String | -final String simulationId = new String(); // String | +final String txHash = new String(); // String | final Boolean withInternalCalls = new Boolean(); // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. final Boolean disableOptimizer = new Boolean(); // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. final Boolean ignoreGasCost = new Boolean(); // Boolean | Only effective when disableOptimizer=true. try { - final result = await api_instance.getCallTraceBySimulation(owner, slug, chainId, simulationId, withInternalCalls, disableOptimizer, ignoreGasCost); + final result = await api_instance.getCallTraceByTransaction(owner, slug, chainId, txHash, withInternalCalls, disableOptimizer, ignoreGasCost); print(result); } catch (e) { - print('Exception when calling DefaultApi->getCallTraceBySimulation: $e\n'); + print('Exception when calling DefaultApi->getCallTraceByTransaction: $e\n'); }
    -
    +
    import org.openapitools.client.api.DebugAndSimulationApi;
     
     public class DebugAndSimulationApiExample {
    @@ -17716,26 +17430,26 @@ 

    Usage and SDK Samples

    String owner = owner_example; // String | String slug = slug_example; // String | String chainId = chainId_example; // String | - String simulationId = simulationId_example; // String | + String txHash = txHash_example; // String | Boolean withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. Boolean disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. Boolean ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. try { - google.api.HttpBody result = apiInstance.getCallTraceBySimulation(owner, slug, chainId, simulationId, withInternalCalls, disableOptimizer, ignoreGasCost); + google.api.HttpBody result = apiInstance.getCallTraceByTransaction(owner, slug, chainId, txHash, withInternalCalls, disableOptimizer, ignoreGasCost); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceBySimulation"); + System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByTransaction"); e.printStackTrace(); } } }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -17749,16 +17463,16 @@ 

    Usage and SDK Samples

    String *owner = owner_example; // (default to null) String *slug = slug_example; // (default to null) String *chainId = chainId_example; // (default to null) -String *simulationId = simulationId_example; // (default to null) +String *txHash = txHash_example; // (default to null) Boolean *withInternalCalls = true; // Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null) Boolean *disableOptimizer = true; // Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null) Boolean *ignoreGasCost = true; // Only effective when disableOptimizer=true. (optional) (default to null) -// Get trace by simulation -[apiInstance getCallTraceBySimulationWith:owner +// Get trace by transaction +[apiInstance getCallTraceByTransactionWith:owner slug:slug chainId:chainId - simulationId:simulationId + txHash:txHash withInternalCalls:withInternalCalls disableOptimizer:disableOptimizer ignoreGasCost:ignoreGasCost @@ -17773,7 +17487,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -17788,7 +17502,7 @@ 

    Usage and SDK Samples

    var owner = owner_example; // {String} var slug = slug_example; // {String} var chainId = chainId_example; // {String} -var simulationId = simulationId_example; // {String} +var txHash = txHash_example; // {String} var opts = { 'withInternalCalls': true, // {Boolean} Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. 'disableOptimizer': true, // {Boolean} Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. @@ -17802,14 +17516,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.getCallTraceBySimulation(owner, slug, chainId, simulationId, opts, callback); +api.getCallTraceByTransaction(owner, slug, chainId, txHash, opts, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -17818,7 +17532,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class getCallTraceBySimulationExample + public class getCallTraceByTransactionExample { public void main() { @@ -17832,17 +17546,17 @@

    Usage and SDK Samples

    var owner = owner_example; // String | (default to null) var slug = slug_example; // String | (default to null) var chainId = chainId_example; // String | (default to null) - var simulationId = simulationId_example; // String | (default to null) + var txHash = txHash_example; // String | (default to null) var withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null) var disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null) var ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. (optional) (default to null) try { - // Get trace by simulation - google.api.HttpBody result = apiInstance.getCallTraceBySimulation(owner, slug, chainId, simulationId, withInternalCalls, disableOptimizer, ignoreGasCost); + // Get trace by transaction + google.api.HttpBody result = apiInstance.getCallTraceByTransaction(owner, slug, chainId, txHash, withInternalCalls, disableOptimizer, ignoreGasCost); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DebugAndSimulationApi.getCallTraceBySimulation: " + e.Message ); + Debug.Print("Exception when calling DebugAndSimulationApi.getCallTraceByTransaction: " + e.Message ); } } } @@ -17850,7 +17564,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -17864,21 +17578,21 @@ 

    Usage and SDK Samples

    $owner = owner_example; // String | $slug = slug_example; // String | $chainId = chainId_example; // String | -$simulationId = simulationId_example; // String | +$txHash = txHash_example; // String | $withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. $disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. $ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. try { - $result = $api_instance->getCallTraceBySimulation($owner, $slug, $chainId, $simulationId, $withInternalCalls, $disableOptimizer, $ignoreGasCost); + $result = $api_instance->getCallTraceByTransaction($owner, $slug, $chainId, $txHash, $withInternalCalls, $disableOptimizer, $ignoreGasCost); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DebugAndSimulationApi->getCallTraceBySimulation: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DebugAndSimulationApi->getCallTraceByTransaction: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DebugAndSimulationApi;
    @@ -17893,21 +17607,21 @@ 

    Usage and SDK Samples

    my $owner = owner_example; # String | my $slug = slug_example; # String | my $chainId = chainId_example; # String | -my $simulationId = simulationId_example; # String | +my $txHash = txHash_example; # String | my $withInternalCalls = true; # Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. my $disableOptimizer = true; # Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. my $ignoreGasCost = true; # Boolean | Only effective when disableOptimizer=true. eval { - my $result = $api_instance->getCallTraceBySimulation(owner => $owner, slug => $slug, chainId => $chainId, simulationId => $simulationId, withInternalCalls => $withInternalCalls, disableOptimizer => $disableOptimizer, ignoreGasCost => $ignoreGasCost); + my $result = $api_instance->getCallTraceByTransaction(owner => $owner, slug => $slug, chainId => $chainId, txHash => $txHash, withInternalCalls => $withInternalCalls, disableOptimizer => $disableOptimizer, ignoreGasCost => $ignoreGasCost); print Dumper($result); }; if ($@) { - warn "Exception when calling DebugAndSimulationApi->getCallTraceBySimulation: $@\n"; + warn "Exception when calling DebugAndSimulationApi->getCallTraceByTransaction: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -17924,33 +17638,33 @@ 

    Usage and SDK Samples

    owner = owner_example # String | (default to null) slug = slug_example # String | (default to null) chainId = chainId_example # String | (default to null) -simulationId = simulationId_example # String | (default to null) +txHash = txHash_example # String | (default to null) withInternalCalls = true # Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null) disableOptimizer = true # Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null) ignoreGasCost = true # Boolean | Only effective when disableOptimizer=true. (optional) (default to null) try: - # Get trace by simulation - api_response = api_instance.get_call_trace_by_simulation(owner, slug, chainId, simulationId, withInternalCalls=withInternalCalls, disableOptimizer=disableOptimizer, ignoreGasCost=ignoreGasCost) + # Get trace by transaction + api_response = api_instance.get_call_trace_by_transaction(owner, slug, chainId, txHash, withInternalCalls=withInternalCalls, disableOptimizer=disableOptimizer, ignoreGasCost=ignoreGasCost) pprint(api_response) except ApiException as e: - print("Exception when calling DebugAndSimulationApi->getCallTraceBySimulation: %s\n" % e)
    + print("Exception when calling DebugAndSimulationApi->getCallTraceByTransaction: %s\n" % e)
    -
    +
    extern crate DebugAndSimulationApi;
     
     pub fn main() {
         let owner = owner_example; // String
         let slug = slug_example; // String
         let chainId = chainId_example; // String
    -    let simulationId = simulationId_example; // String
    +    let txHash = txHash_example; // String
         let withInternalCalls = true; // Boolean
         let disableOptimizer = true; // Boolean
         let ignoreGasCost = true; // Boolean
     
         let mut context = DebugAndSimulationApi::Context::default();
    -    let result = client.getCallTraceBySimulation(owner, slug, chainId, simulationId, withInternalCalls, disableOptimizer, ignoreGasCost, &context).wait();
    +    let result = client.getCallTraceByTransaction(owner, slug, chainId, txHash, withInternalCalls, disableOptimizer, ignoreGasCost, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -17975,7 +17689,7 @@ 

    Parameters

    -
    +
    @@ -17995,7 +17709,7 @@

    Parameters

    -
    +
    @@ -18015,7 +17729,7 @@

    Parameters

    -
    +
    @@ -18031,11 +17745,11 @@

    Parameters

    - simulationId* + txHash* -
    +
    @@ -18066,7 +17780,7 @@

    Parameters

    -
    +
    @@ -18086,7 +17800,7 @@

    Parameters

    -
    +
    @@ -18106,7 +17820,7 @@

    Parameters

    -
    +
    @@ -18125,23 +17839,23 @@

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    getCallTraceByTransaction

    -

    Get trace by transaction

    +

    getSimulation

    +

    Get simulation by ID

    -

    API to get Sentio call trace. It takes `txId.txHash` and `chainSpec.chainId` arguments, where the first is transaction hash, and the second is the numeric ethereum chain ID. - -The results looks very similar to the normal [Ethereum call trace](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png). But we have an additional `startIndex` and `startIndex` on each trace entry even for the LOG, representing the execution order in the trace. - -This allows you to build chart that marks the order of fund flow. - -![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png)

    +


    -
    /api/v1/solidity/{owner}/{slug}/{chainId}/transaction/{txHash}/call_trace
    +
    /api/v1/solidity/{owner}/{slug}/simulation/{simulationId}

    Usage and SDK Samples

    -
    +
    curl -X GET \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
    - "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/{chainId}/transaction/{txHash}/call_trace?withInternalCalls=true&disableOptimizer=true&ignoreGasCost=true"
    + "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/simulation/{simulationId}"
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -18273,17 +17981,13 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi apiInstance = new DebugAndSimulationApi(); String owner = owner_example; // String | String slug = slug_example; // String | - String chainId = chainId_example; // String | - String txHash = txHash_example; // String | - Boolean withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. - Boolean disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. - Boolean ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. + String simulationId = simulationId_example; // String | try { - google.api.HttpBody result = apiInstance.getCallTraceByTransaction(owner, slug, chainId, txHash, withInternalCalls, disableOptimizer, ignoreGasCost); + solidity_service.GetSimulationResponse result = apiInstance.getSimulation(owner, slug, simulationId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByTransaction"); + System.err.println("Exception when calling DebugAndSimulationApi#getSimulation"); e.printStackTrace(); } } @@ -18291,30 +17995,26 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
     
     final String owner = new String(); // String | 
     final String slug = new String(); // String | 
    -final String chainId = new String(); // String | 
    -final String txHash = new String(); // String | 
    -final Boolean withInternalCalls = new Boolean(); // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
    -final Boolean disableOptimizer = new Boolean(); // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
    -final Boolean ignoreGasCost = new Boolean(); // Boolean | Only effective when disableOptimizer=true.
    +final String simulationId = new String(); // String | 
     
     try {
    -    final result = await api_instance.getCallTraceByTransaction(owner, slug, chainId, txHash, withInternalCalls, disableOptimizer, ignoreGasCost);
    +    final result = await api_instance.getSimulation(owner, slug, simulationId);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->getCallTraceByTransaction: $e\n');
    +    print('Exception when calling DefaultApi->getSimulation: $e\n');
     }
     
     
    -
    +
    import org.openapitools.client.api.DebugAndSimulationApi;
     
     public class DebugAndSimulationApiExample {
    @@ -18322,27 +18022,23 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi apiInstance = new DebugAndSimulationApi(); String owner = owner_example; // String | String slug = slug_example; // String | - String chainId = chainId_example; // String | - String txHash = txHash_example; // String | - Boolean withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. - Boolean disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. - Boolean ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. + String simulationId = simulationId_example; // String | try { - google.api.HttpBody result = apiInstance.getCallTraceByTransaction(owner, slug, chainId, txHash, withInternalCalls, disableOptimizer, ignoreGasCost); + solidity_service.GetSimulationResponse result = apiInstance.getSimulation(owner, slug, simulationId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByTransaction"); + System.err.println("Exception when calling DebugAndSimulationApi#getSimulation"); e.printStackTrace(); } } }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -18355,21 +18051,13 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi *apiInstance = [[DebugAndSimulationApi alloc] init]; String *owner = owner_example; // (default to null) String *slug = slug_example; // (default to null) -String *chainId = chainId_example; // (default to null) -String *txHash = txHash_example; // (default to null) -Boolean *withInternalCalls = true; // Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null) -Boolean *disableOptimizer = true; // Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null) -Boolean *ignoreGasCost = true; // Only effective when disableOptimizer=true. (optional) (default to null) +String *simulationId = simulationId_example; // (default to null) -// Get trace by transaction -[apiInstance getCallTraceByTransactionWith:owner +// Get simulation by ID +[apiInstance getSimulationWith:owner slug:slug - chainId:chainId - txHash:txHash - withInternalCalls:withInternalCalls - disableOptimizer:disableOptimizer - ignoreGasCost:ignoreGasCost - completionHandler: ^(google.api.HttpBody output, NSError* error) { + simulationId:simulationId + completionHandler: ^(solidity_service.GetSimulationResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -18380,7 +18068,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -18394,13 +18082,7 @@ 

    Usage and SDK Samples

    var api = new SentioApi.DebugAndSimulationApi() var owner = owner_example; // {String} var slug = slug_example; // {String} -var chainId = chainId_example; // {String} -var txHash = txHash_example; // {String} -var opts = { - 'withInternalCalls': true, // {Boolean} Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. - 'disableOptimizer': true, // {Boolean} Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. - 'ignoreGasCost': true // {Boolean} Only effective when disableOptimizer=true. -}; +var simulationId = simulationId_example; // {String} var callback = function(error, data, response) { if (error) { @@ -18409,14 +18091,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.getCallTraceByTransaction(owner, slug, chainId, txHash, opts, callback); +api.getSimulation(owner, slug, simulationId, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -18425,7 +18107,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class getCallTraceByTransactionExample + public class getSimulationExample { public void main() { @@ -18438,18 +18120,14 @@

    Usage and SDK Samples

    var apiInstance = new DebugAndSimulationApi(); var owner = owner_example; // String | (default to null) var slug = slug_example; // String | (default to null) - var chainId = chainId_example; // String | (default to null) - var txHash = txHash_example; // String | (default to null) - var withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null) - var disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null) - var ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. (optional) (default to null) + var simulationId = simulationId_example; // String | (default to null) try { - // Get trace by transaction - google.api.HttpBody result = apiInstance.getCallTraceByTransaction(owner, slug, chainId, txHash, withInternalCalls, disableOptimizer, ignoreGasCost); + // Get simulation by ID + solidity_service.GetSimulationResponse result = apiInstance.getSimulation(owner, slug, simulationId); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DebugAndSimulationApi.getCallTraceByTransaction: " + e.Message ); + Debug.Print("Exception when calling DebugAndSimulationApi.getSimulation: " + e.Message ); } } } @@ -18457,7 +18135,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -18470,22 +18148,18 @@ 

    Usage and SDK Samples

    $api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi(); $owner = owner_example; // String | $slug = slug_example; // String | -$chainId = chainId_example; // String | -$txHash = txHash_example; // String | -$withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. -$disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. -$ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. +$simulationId = simulationId_example; // String | try { - $result = $api_instance->getCallTraceByTransaction($owner, $slug, $chainId, $txHash, $withInternalCalls, $disableOptimizer, $ignoreGasCost); + $result = $api_instance->getSimulation($owner, $slug, $simulationId); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DebugAndSimulationApi->getCallTraceByTransaction: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DebugAndSimulationApi->getSimulation: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DebugAndSimulationApi;
    @@ -18499,22 +18173,18 @@ 

    Usage and SDK Samples

    my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new(); my $owner = owner_example; # String | my $slug = slug_example; # String | -my $chainId = chainId_example; # String | -my $txHash = txHash_example; # String | -my $withInternalCalls = true; # Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. -my $disableOptimizer = true; # Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. -my $ignoreGasCost = true; # Boolean | Only effective when disableOptimizer=true. +my $simulationId = simulationId_example; # String | eval { - my $result = $api_instance->getCallTraceByTransaction(owner => $owner, slug => $slug, chainId => $chainId, txHash => $txHash, withInternalCalls => $withInternalCalls, disableOptimizer => $disableOptimizer, ignoreGasCost => $ignoreGasCost); + my $result = $api_instance->getSimulation(owner => $owner, slug => $slug, simulationId => $simulationId); print Dumper($result); }; if ($@) { - warn "Exception when calling DebugAndSimulationApi->getCallTraceByTransaction: $@\n"; + warn "Exception when calling DebugAndSimulationApi->getSimulation: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -18530,34 +18200,26 @@ 

    Usage and SDK Samples

    api_instance = openapi_client.DebugAndSimulationApi() owner = owner_example # String | (default to null) slug = slug_example # String | (default to null) -chainId = chainId_example # String | (default to null) -txHash = txHash_example # String | (default to null) -withInternalCalls = true # Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null) -disableOptimizer = true # Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null) -ignoreGasCost = true # Boolean | Only effective when disableOptimizer=true. (optional) (default to null) +simulationId = simulationId_example # String | (default to null) try: - # Get trace by transaction - api_response = api_instance.get_call_trace_by_transaction(owner, slug, chainId, txHash, withInternalCalls=withInternalCalls, disableOptimizer=disableOptimizer, ignoreGasCost=ignoreGasCost) + # Get simulation by ID + api_response = api_instance.get_simulation(owner, slug, simulationId) pprint(api_response) except ApiException as e: - print("Exception when calling DebugAndSimulationApi->getCallTraceByTransaction: %s\n" % e)
    + print("Exception when calling DebugAndSimulationApi->getSimulation: %s\n" % e)
    -
    +
    extern crate DebugAndSimulationApi;
     
    -pub fn main() {
    -    let owner = owner_example; // String
    -    let slug = slug_example; // String
    -    let chainId = chainId_example; // String
    -    let txHash = txHash_example; // String
    -    let withInternalCalls = true; // Boolean
    -    let disableOptimizer = true; // Boolean
    -    let ignoreGasCost = true; // Boolean
    +pub fn main() {
    +    let owner = owner_example; // String
    +    let slug = slug_example; // String
    +    let simulationId = simulationId_example; // String
     
         let mut context = DebugAndSimulationApi::Context::default();
    -    let result = client.getCallTraceByTransaction(owner, slug, chainId, txHash, withInternalCalls, disableOptimizer, ignoreGasCost, &context).wait();
    +    let result = client.getSimulation(owner, slug, simulationId, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -18582,7 +18244,7 @@ 

    Parameters

    -
    +
    @@ -18602,27 +18264,7 @@

    Parameters

    -
    -
    -
    - - String - - -
    -
    - Required -
    -
    -
    - - - - chainId* - - - -
    +
    @@ -18638,11 +18280,11 @@

    Parameters

    - txHash* + simulationId* -
    +
    @@ -18663,92 +18305,25 @@

    Parameters

    -
    Query parameters
    - - - - - - - - - - - - - - - - - -
    NameDescription
    withInternalCalls - - -
    -
    -
    - - Boolean - - -
    -Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. -
    -
    -
    -
    -
    disableOptimizer - - -
    -
    -
    - - Boolean - - -
    -Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. -
    -
    -
    -
    -
    ignoreGasCost - - -
    -
    -
    - - Boolean - - -
    -Only effective when disableOptimizer=true. -
    -
    -
    -
    -

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    getSimulation

    -

    Get simulation by ID

    +

    getSimulationBundleInProject

    +

    Get bundle simulation by ID

    @@ -18823,35 +18398,35 @@

    getSimulation


    -
    /api/v1/solidity/{owner}/{slug}/simulation/{simulationId}
    +
    /api/v1/solidity/{owner}/{slug}/simulation_bundle/{bundleId}

    Usage and SDK Samples

    -
    +
    curl -X GET \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
    - "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/simulation/{simulationId}"
    + "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/simulation_bundle/{bundleId}"
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -18874,13 +18449,13 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi apiInstance = new DebugAndSimulationApi(); String owner = owner_example; // String | String slug = slug_example; // String | - String simulationId = simulationId_example; // String | + String bundleId = bundleId_example; // String | try { - solidity_service.GetSimulationResponse result = apiInstance.getSimulation(owner, slug, simulationId); + solidity_service.GetSimulationBundleResponse result = apiInstance.getSimulationBundleInProject(owner, slug, bundleId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#getSimulation"); + System.err.println("Exception when calling DebugAndSimulationApi#getSimulationBundleInProject"); e.printStackTrace(); } } @@ -18888,26 +18463,26 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
     
     final String owner = new String(); // String | 
     final String slug = new String(); // String | 
    -final String simulationId = new String(); // String | 
    +final String bundleId = new String(); // String | 
     
     try {
    -    final result = await api_instance.getSimulation(owner, slug, simulationId);
    +    final result = await api_instance.getSimulationBundleInProject(owner, slug, bundleId);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->getSimulation: $e\n');
    +    print('Exception when calling DefaultApi->getSimulationBundleInProject: $e\n');
     }
     
     
    -
    +
    import org.openapitools.client.api.DebugAndSimulationApi;
     
     public class DebugAndSimulationApiExample {
    @@ -18915,23 +18490,23 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi apiInstance = new DebugAndSimulationApi(); String owner = owner_example; // String | String slug = slug_example; // String | - String simulationId = simulationId_example; // String | + String bundleId = bundleId_example; // String | try { - solidity_service.GetSimulationResponse result = apiInstance.getSimulation(owner, slug, simulationId); + solidity_service.GetSimulationBundleResponse result = apiInstance.getSimulationBundleInProject(owner, slug, bundleId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#getSimulation"); + System.err.println("Exception when calling DebugAndSimulationApi#getSimulationBundleInProject"); e.printStackTrace(); } } }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -18944,13 +18519,13 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi *apiInstance = [[DebugAndSimulationApi alloc] init]; String *owner = owner_example; // (default to null) String *slug = slug_example; // (default to null) -String *simulationId = simulationId_example; // (default to null) +String *bundleId = bundleId_example; // (default to null) -// Get simulation by ID -[apiInstance getSimulationWith:owner +// Get bundle simulation by ID +[apiInstance getSimulationBundleInProjectWith:owner slug:slug - simulationId:simulationId - completionHandler: ^(solidity_service.GetSimulationResponse output, NSError* error) { + bundleId:bundleId + completionHandler: ^(solidity_service.GetSimulationBundleResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -18961,7 +18536,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -18975,7 +18550,7 @@ 

    Usage and SDK Samples

    var api = new SentioApi.DebugAndSimulationApi() var owner = owner_example; // {String} var slug = slug_example; // {String} -var simulationId = simulationId_example; // {String} +var bundleId = bundleId_example; // {String} var callback = function(error, data, response) { if (error) { @@ -18984,14 +18559,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.getSimulation(owner, slug, simulationId, callback); +api.getSimulationBundleInProject(owner, slug, bundleId, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -19000,7 +18575,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class getSimulationExample + public class getSimulationBundleInProjectExample { public void main() { @@ -19013,14 +18588,14 @@

    Usage and SDK Samples

    var apiInstance = new DebugAndSimulationApi(); var owner = owner_example; // String | (default to null) var slug = slug_example; // String | (default to null) - var simulationId = simulationId_example; // String | (default to null) + var bundleId = bundleId_example; // String | (default to null) try { - // Get simulation by ID - solidity_service.GetSimulationResponse result = apiInstance.getSimulation(owner, slug, simulationId); + // Get bundle simulation by ID + solidity_service.GetSimulationBundleResponse result = apiInstance.getSimulationBundleInProject(owner, slug, bundleId); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DebugAndSimulationApi.getSimulation: " + e.Message ); + Debug.Print("Exception when calling DebugAndSimulationApi.getSimulationBundleInProject: " + e.Message ); } } } @@ -19028,7 +18603,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -19041,18 +18616,18 @@ 

    Usage and SDK Samples

    $api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi(); $owner = owner_example; // String | $slug = slug_example; // String | -$simulationId = simulationId_example; // String | +$bundleId = bundleId_example; // String | try { - $result = $api_instance->getSimulation($owner, $slug, $simulationId); + $result = $api_instance->getSimulationBundleInProject($owner, $slug, $bundleId); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DebugAndSimulationApi->getSimulation: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DebugAndSimulationApi->getSimulationBundleInProject: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DebugAndSimulationApi;
    @@ -19066,18 +18641,18 @@ 

    Usage and SDK Samples

    my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new(); my $owner = owner_example; # String | my $slug = slug_example; # String | -my $simulationId = simulationId_example; # String | +my $bundleId = bundleId_example; # String | eval { - my $result = $api_instance->getSimulation(owner => $owner, slug => $slug, simulationId => $simulationId); + my $result = $api_instance->getSimulationBundleInProject(owner => $owner, slug => $slug, bundleId => $bundleId); print Dumper($result); }; if ($@) { - warn "Exception when calling DebugAndSimulationApi->getSimulation: $@\n"; + warn "Exception when calling DebugAndSimulationApi->getSimulationBundleInProject: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -19093,26 +18668,26 @@ 

    Usage and SDK Samples

    api_instance = openapi_client.DebugAndSimulationApi() owner = owner_example # String | (default to null) slug = slug_example # String | (default to null) -simulationId = simulationId_example # String | (default to null) +bundleId = bundleId_example # String | (default to null) try: - # Get simulation by ID - api_response = api_instance.get_simulation(owner, slug, simulationId) + # Get bundle simulation by ID + api_response = api_instance.get_simulation_bundle_in_project(owner, slug, bundleId) pprint(api_response) except ApiException as e: - print("Exception when calling DebugAndSimulationApi->getSimulation: %s\n" % e)
    + print("Exception when calling DebugAndSimulationApi->getSimulationBundleInProject: %s\n" % e)
    -
    +
    extern crate DebugAndSimulationApi;
     
     pub fn main() {
         let owner = owner_example; // String
         let slug = slug_example; // String
    -    let simulationId = simulationId_example; // String
    +    let bundleId = bundleId_example; // String
     
         let mut context = DebugAndSimulationApi::Context::default();
    -    let result = client.getSimulation(owner, slug, simulationId, &context).wait();
    +    let result = client.getSimulationBundleInProject(owner, slug, bundleId, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -19137,7 +18712,7 @@ 

    Parameters

    -
    +
    @@ -19157,7 +18732,7 @@

    Parameters

    -
    +
    @@ -19173,11 +18748,11 @@

    Parameters

    - simulationId* + bundleId* -
    +
    @@ -19200,23 +18775,23 @@

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    getSimulationBundleInProject

    -

    Get bundle simulation by ID

    +

    getSimulations

    +

    Get list of simulations

    @@ -19291,35 +18866,35 @@

    getSimulationBundleInProject


    -
    /api/v1/solidity/{owner}/{slug}/simulation_bundle/{bundleId}
    +
    /api/v1/solidity/{owner}/{slug}/simulation

    Usage and SDK Samples

    -
    +
    curl -X GET \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
    - "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/simulation_bundle/{bundleId}"
    + "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/simulation?labelContains=labelContains_example&page=56&pageSize=56"
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -19342,13 +18917,15 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi apiInstance = new DebugAndSimulationApi(); String owner = owner_example; // String | String slug = slug_example; // String | - String bundleId = bundleId_example; // String | + String labelContains = labelContains_example; // String | + Integer page = 56; // Integer | + Integer pageSize = 56; // Integer | try { - solidity_service.GetSimulationBundleResponse result = apiInstance.getSimulationBundleInProject(owner, slug, bundleId); + solidity_service.GetSimulationsResponse result = apiInstance.getSimulations(owner, slug, labelContains, page, pageSize); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#getSimulationBundleInProject"); + System.err.println("Exception when calling DebugAndSimulationApi#getSimulations"); e.printStackTrace(); } } @@ -19356,26 +18933,28 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
     
     final String owner = new String(); // String | 
     final String slug = new String(); // String | 
    -final String bundleId = new String(); // String | 
    +final String labelContains = new String(); // String | 
    +final Integer page = new Integer(); // Integer | 
    +final Integer pageSize = new Integer(); // Integer | 
     
     try {
    -    final result = await api_instance.getSimulationBundleInProject(owner, slug, bundleId);
    +    final result = await api_instance.getSimulations(owner, slug, labelContains, page, pageSize);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->getSimulationBundleInProject: $e\n');
    +    print('Exception when calling DefaultApi->getSimulations: $e\n');
     }
     
     
    -
    +
    import org.openapitools.client.api.DebugAndSimulationApi;
     
     public class DebugAndSimulationApiExample {
    @@ -19383,23 +18962,25 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi apiInstance = new DebugAndSimulationApi(); String owner = owner_example; // String | String slug = slug_example; // String | - String bundleId = bundleId_example; // String | + String labelContains = labelContains_example; // String | + Integer page = 56; // Integer | + Integer pageSize = 56; // Integer | try { - solidity_service.GetSimulationBundleResponse result = apiInstance.getSimulationBundleInProject(owner, slug, bundleId); + solidity_service.GetSimulationsResponse result = apiInstance.getSimulations(owner, slug, labelContains, page, pageSize); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#getSimulationBundleInProject"); + System.err.println("Exception when calling DebugAndSimulationApi#getSimulations"); e.printStackTrace(); } } }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -19412,13 +18993,17 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi *apiInstance = [[DebugAndSimulationApi alloc] init]; String *owner = owner_example; // (default to null) String *slug = slug_example; // (default to null) -String *bundleId = bundleId_example; // (default to null) +String *labelContains = labelContains_example; // (optional) (default to null) +Integer *page = 56; // (optional) (default to null) +Integer *pageSize = 56; // (optional) (default to null) -// Get bundle simulation by ID -[apiInstance getSimulationBundleInProjectWith:owner +// Get list of simulations +[apiInstance getSimulationsWith:owner slug:slug - bundleId:bundleId - completionHandler: ^(solidity_service.GetSimulationBundleResponse output, NSError* error) { + labelContains:labelContains + page:page + pageSize:pageSize + completionHandler: ^(solidity_service.GetSimulationsResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -19429,7 +19014,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -19443,7 +19028,11 @@ 

    Usage and SDK Samples

    var api = new SentioApi.DebugAndSimulationApi() var owner = owner_example; // {String} var slug = slug_example; // {String} -var bundleId = bundleId_example; // {String} +var opts = { + 'labelContains': labelContains_example, // {String} + 'page': 56, // {Integer} + 'pageSize': 56 // {Integer} +}; var callback = function(error, data, response) { if (error) { @@ -19452,14 +19041,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.getSimulationBundleInProject(owner, slug, bundleId, callback); +api.getSimulations(owner, slug, opts, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -19468,7 +19057,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class getSimulationBundleInProjectExample + public class getSimulationsExample { public void main() { @@ -19481,14 +19070,16 @@

    Usage and SDK Samples

    var apiInstance = new DebugAndSimulationApi(); var owner = owner_example; // String | (default to null) var slug = slug_example; // String | (default to null) - var bundleId = bundleId_example; // String | (default to null) + var labelContains = labelContains_example; // String | (optional) (default to null) + var page = 56; // Integer | (optional) (default to null) + var pageSize = 56; // Integer | (optional) (default to null) try { - // Get bundle simulation by ID - solidity_service.GetSimulationBundleResponse result = apiInstance.getSimulationBundleInProject(owner, slug, bundleId); + // Get list of simulations + solidity_service.GetSimulationsResponse result = apiInstance.getSimulations(owner, slug, labelContains, page, pageSize); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DebugAndSimulationApi.getSimulationBundleInProject: " + e.Message ); + Debug.Print("Exception when calling DebugAndSimulationApi.getSimulations: " + e.Message ); } } } @@ -19496,7 +19087,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -19509,18 +19100,20 @@ 

    Usage and SDK Samples

    $api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi(); $owner = owner_example; // String | $slug = slug_example; // String | -$bundleId = bundleId_example; // String | +$labelContains = labelContains_example; // String | +$page = 56; // Integer | +$pageSize = 56; // Integer | try { - $result = $api_instance->getSimulationBundleInProject($owner, $slug, $bundleId); + $result = $api_instance->getSimulations($owner, $slug, $labelContains, $page, $pageSize); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DebugAndSimulationApi->getSimulationBundleInProject: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DebugAndSimulationApi->getSimulations: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DebugAndSimulationApi;
    @@ -19534,18 +19127,20 @@ 

    Usage and SDK Samples

    my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new(); my $owner = owner_example; # String | my $slug = slug_example; # String | -my $bundleId = bundleId_example; # String | +my $labelContains = labelContains_example; # String | +my $page = 56; # Integer | +my $pageSize = 56; # Integer | eval { - my $result = $api_instance->getSimulationBundleInProject(owner => $owner, slug => $slug, bundleId => $bundleId); + my $result = $api_instance->getSimulations(owner => $owner, slug => $slug, labelContains => $labelContains, page => $page, pageSize => $pageSize); print Dumper($result); }; if ($@) { - warn "Exception when calling DebugAndSimulationApi->getSimulationBundleInProject: $@\n"; + warn "Exception when calling DebugAndSimulationApi->getSimulations: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -19561,26 +19156,30 @@ 

    Usage and SDK Samples

    api_instance = openapi_client.DebugAndSimulationApi() owner = owner_example # String | (default to null) slug = slug_example # String | (default to null) -bundleId = bundleId_example # String | (default to null) +labelContains = labelContains_example # String | (optional) (default to null) +page = 56 # Integer | (optional) (default to null) +pageSize = 56 # Integer | (optional) (default to null) try: - # Get bundle simulation by ID - api_response = api_instance.get_simulation_bundle_in_project(owner, slug, bundleId) + # Get list of simulations + api_response = api_instance.get_simulations(owner, slug, labelContains=labelContains, page=page, pageSize=pageSize) pprint(api_response) except ApiException as e: - print("Exception when calling DebugAndSimulationApi->getSimulationBundleInProject: %s\n" % e)
    + print("Exception when calling DebugAndSimulationApi->getSimulations: %s\n" % e)
    -
    +
    extern crate DebugAndSimulationApi;
     
     pub fn main() {
         let owner = owner_example; // String
         let slug = slug_example; // String
    -    let bundleId = bundleId_example; // String
    +    let labelContains = labelContains_example; // String
    +    let page = 56; // Integer
    +    let pageSize = 56; // Integer
     
         let mut context = DebugAndSimulationApi::Context::default();
    -    let result = client.getSimulationBundleInProject(owner, slug, bundleId, &context).wait();
    +    let result = client.getSimulations(owner, slug, labelContains, page, pageSize, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -19605,7 +19204,7 @@ 

    Parameters

    -
    +
    @@ -19625,7 +19224,7 @@

    Parameters

    -
    +
    @@ -19641,11 +19240,22 @@

    Parameters

    - bundleId* + + + + + +
    Query parameters
    + + + + + + -
    NameDescription
    labelContains -
    +
    @@ -19653,38 +19263,71 @@

    Parameters

    -
    - Required -
    + page + + + +
    +
    +
    + + Integer + + + (int32) + + +
    +
    +
    + + + + pageSize + +
    +
    +
    + + Integer + + + (int32) + +
    +
    +
    + + +

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    getSimulations

    -

    Get list of simulations

    +

    searchTransactions

    +

    Search transactions

    @@ -19759,35 +19402,35 @@

    getSimulations


    -
    /api/v1/solidity/{owner}/{slug}/simulation
    +
    /api/v1/solidity/{owner}/{slug}/search_transactions

    Usage and SDK Samples

    -
    +
    curl -X GET \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
    - "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/simulation?labelContains=labelContains_example&page=56&pageSize=56"
    + "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/search_transactions?chainId=&address=&includeDirect=true&includeTrace=true&includeIn=true&includeOut=true&startBlock=startBlock_example&endBlock=endBlock_example&startTimestamp=startTimestamp_example&endTimestamp=endTimestamp_example&transactionStatus=&methodSignature=methodSignature_example&limit=56&pageToken=BYTE_ARRAY_DATA_HERE"
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -19810,15 +19453,26 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi apiInstance = new DebugAndSimulationApi(); String owner = owner_example; // String | String slug = slug_example; // String | - String labelContains = labelContains_example; // String | - Integer page = 56; // Integer | - Integer pageSize = 56; // Integer | + array[String] chainId = ; // array[String] | + array[String] address = ; // array[String] | + Boolean includeDirect = true; // Boolean | + Boolean includeTrace = true; // Boolean | + Boolean includeIn = true; // Boolean | + Boolean includeOut = true; // Boolean | + String startBlock = startBlock_example; // String | + String endBlock = endBlock_example; // String | + String startTimestamp = startTimestamp_example; // String | + String endTimestamp = endTimestamp_example; // String | + array[Integer] transactionStatus = ; // array[Integer] | + String methodSignature = methodSignature_example; // String | + Integer limit = 56; // Integer | + byte[] pageToken = BYTE_ARRAY_DATA_HERE; // byte[] | try { - solidity_service.GetSimulationsResponse result = apiInstance.getSimulations(owner, slug, labelContains, page, pageSize); + txindex.EvmSearchTransactionsResponse result = apiInstance.searchTransactions(owner, slug, chainId, address, includeDirect, includeTrace, includeIn, includeOut, startBlock, endBlock, startTimestamp, endTimestamp, transactionStatus, methodSignature, limit, pageToken); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#getSimulations"); + System.err.println("Exception when calling DebugAndSimulationApi#searchTransactions"); e.printStackTrace(); } } @@ -19826,28 +19480,39 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
     
     final String owner = new String(); // String | 
     final String slug = new String(); // String | 
    -final String labelContains = new String(); // String | 
    -final Integer page = new Integer(); // Integer | 
    -final Integer pageSize = new Integer(); // Integer | 
    +final array[String] chainId = new array[String](); // array[String] | 
    +final array[String] address = new array[String](); // array[String] | 
    +final Boolean includeDirect = new Boolean(); // Boolean | 
    +final Boolean includeTrace = new Boolean(); // Boolean | 
    +final Boolean includeIn = new Boolean(); // Boolean | 
    +final Boolean includeOut = new Boolean(); // Boolean | 
    +final String startBlock = new String(); // String | 
    +final String endBlock = new String(); // String | 
    +final String startTimestamp = new String(); // String | 
    +final String endTimestamp = new String(); // String | 
    +final array[Integer] transactionStatus = new array[Integer](); // array[Integer] | 
    +final String methodSignature = new String(); // String | 
    +final Integer limit = new Integer(); // Integer | 
    +final byte[] pageToken = new byte[](); // byte[] | 
     
     try {
    -    final result = await api_instance.getSimulations(owner, slug, labelContains, page, pageSize);
    +    final result = await api_instance.searchTransactions(owner, slug, chainId, address, includeDirect, includeTrace, includeIn, includeOut, startBlock, endBlock, startTimestamp, endTimestamp, transactionStatus, methodSignature, limit, pageToken);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->getSimulations: $e\n');
    +    print('Exception when calling DefaultApi->searchTransactions: $e\n');
     }
     
     
    -
    +
    import org.openapitools.client.api.DebugAndSimulationApi;
     
     public class DebugAndSimulationApiExample {
    @@ -19855,25 +19520,36 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi apiInstance = new DebugAndSimulationApi(); String owner = owner_example; // String | String slug = slug_example; // String | - String labelContains = labelContains_example; // String | - Integer page = 56; // Integer | - Integer pageSize = 56; // Integer | + array[String] chainId = ; // array[String] | + array[String] address = ; // array[String] | + Boolean includeDirect = true; // Boolean | + Boolean includeTrace = true; // Boolean | + Boolean includeIn = true; // Boolean | + Boolean includeOut = true; // Boolean | + String startBlock = startBlock_example; // String | + String endBlock = endBlock_example; // String | + String startTimestamp = startTimestamp_example; // String | + String endTimestamp = endTimestamp_example; // String | + array[Integer] transactionStatus = ; // array[Integer] | + String methodSignature = methodSignature_example; // String | + Integer limit = 56; // Integer | + byte[] pageToken = BYTE_ARRAY_DATA_HERE; // byte[] | try { - solidity_service.GetSimulationsResponse result = apiInstance.getSimulations(owner, slug, labelContains, page, pageSize); + txindex.EvmSearchTransactionsResponse result = apiInstance.searchTransactions(owner, slug, chainId, address, includeDirect, includeTrace, includeIn, includeOut, startBlock, endBlock, startTimestamp, endTimestamp, transactionStatus, methodSignature, limit, pageToken); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#getSimulations"); + System.err.println("Exception when calling DebugAndSimulationApi#searchTransactions"); e.printStackTrace(); } } }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -19886,17 +19562,39 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi *apiInstance = [[DebugAndSimulationApi alloc] init]; String *owner = owner_example; // (default to null) String *slug = slug_example; // (default to null) -String *labelContains = labelContains_example; // (optional) (default to null) -Integer *page = 56; // (optional) (default to null) -Integer *pageSize = 56; // (optional) (default to null) +array[String] *chainId = ; // (optional) (default to null) +array[String] *address = ; // (optional) (default to null) +Boolean *includeDirect = true; // (optional) (default to null) +Boolean *includeTrace = true; // (optional) (default to null) +Boolean *includeIn = true; // (optional) (default to null) +Boolean *includeOut = true; // (optional) (default to null) +String *startBlock = startBlock_example; // (optional) (default to null) +String *endBlock = endBlock_example; // (optional) (default to null) +String *startTimestamp = startTimestamp_example; // (optional) (default to null) +String *endTimestamp = endTimestamp_example; // (optional) (default to null) +array[Integer] *transactionStatus = ; // (optional) (default to null) +String *methodSignature = methodSignature_example; // (optional) (default to null) +Integer *limit = 56; // (optional) (default to null) +byte[] *pageToken = BYTE_ARRAY_DATA_HERE; // (optional) (default to null) -// Get list of simulations -[apiInstance getSimulationsWith:owner +// Search transactions +[apiInstance searchTransactionsWith:owner slug:slug - labelContains:labelContains - page:page - pageSize:pageSize - completionHandler: ^(solidity_service.GetSimulationsResponse output, NSError* error) { + chainId:chainId + address:address + includeDirect:includeDirect + includeTrace:includeTrace + includeIn:includeIn + includeOut:includeOut + startBlock:startBlock + endBlock:endBlock + startTimestamp:startTimestamp + endTimestamp:endTimestamp + transactionStatus:transactionStatus + methodSignature:methodSignature + limit:limit + pageToken:pageToken + completionHandler: ^(txindex.EvmSearchTransactionsResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -19907,7 +19605,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -19922,9 +19620,20 @@ 

    Usage and SDK Samples

    var owner = owner_example; // {String} var slug = slug_example; // {String} var opts = { - 'labelContains': labelContains_example, // {String} - 'page': 56, // {Integer} - 'pageSize': 56 // {Integer} + 'chainId': , // {array[String]} + 'address': , // {array[String]} + 'includeDirect': true, // {Boolean} + 'includeTrace': true, // {Boolean} + 'includeIn': true, // {Boolean} + 'includeOut': true, // {Boolean} + 'startBlock': startBlock_example, // {String} + 'endBlock': endBlock_example, // {String} + 'startTimestamp': startTimestamp_example, // {String} + 'endTimestamp': endTimestamp_example, // {String} + 'transactionStatus': , // {array[Integer]} + 'methodSignature': methodSignature_example, // {String} + 'limit': 56, // {Integer} + 'pageToken': BYTE_ARRAY_DATA_HERE // {byte[]} }; var callback = function(error, data, response) { @@ -19934,14 +19643,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.getSimulations(owner, slug, opts, callback); +api.searchTransactions(owner, slug, opts, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -19950,7 +19659,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class getSimulationsExample + public class searchTransactionsExample { public void main() { @@ -19963,16 +19672,27 @@

    Usage and SDK Samples

    var apiInstance = new DebugAndSimulationApi(); var owner = owner_example; // String | (default to null) var slug = slug_example; // String | (default to null) - var labelContains = labelContains_example; // String | (optional) (default to null) - var page = 56; // Integer | (optional) (default to null) - var pageSize = 56; // Integer | (optional) (default to null) + var chainId = new array[String](); // array[String] | (optional) (default to null) + var address = new array[String](); // array[String] | (optional) (default to null) + var includeDirect = true; // Boolean | (optional) (default to null) + var includeTrace = true; // Boolean | (optional) (default to null) + var includeIn = true; // Boolean | (optional) (default to null) + var includeOut = true; // Boolean | (optional) (default to null) + var startBlock = startBlock_example; // String | (optional) (default to null) + var endBlock = endBlock_example; // String | (optional) (default to null) + var startTimestamp = startTimestamp_example; // String | (optional) (default to null) + var endTimestamp = endTimestamp_example; // String | (optional) (default to null) + var transactionStatus = new array[Integer](); // array[Integer] | (optional) (default to null) + var methodSignature = methodSignature_example; // String | (optional) (default to null) + var limit = 56; // Integer | (optional) (default to null) + var pageToken = BYTE_ARRAY_DATA_HERE; // byte[] | (optional) (default to null) try { - // Get list of simulations - solidity_service.GetSimulationsResponse result = apiInstance.getSimulations(owner, slug, labelContains, page, pageSize); + // Search transactions + txindex.EvmSearchTransactionsResponse result = apiInstance.searchTransactions(owner, slug, chainId, address, includeDirect, includeTrace, includeIn, includeOut, startBlock, endBlock, startTimestamp, endTimestamp, transactionStatus, methodSignature, limit, pageToken); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DebugAndSimulationApi.getSimulations: " + e.Message ); + Debug.Print("Exception when calling DebugAndSimulationApi.searchTransactions: " + e.Message ); } } } @@ -19980,7 +19700,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -19993,20 +19713,31 @@ 

    Usage and SDK Samples

    $api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi(); $owner = owner_example; // String | $slug = slug_example; // String | -$labelContains = labelContains_example; // String | -$page = 56; // Integer | -$pageSize = 56; // Integer | +$chainId = ; // array[String] | +$address = ; // array[String] | +$includeDirect = true; // Boolean | +$includeTrace = true; // Boolean | +$includeIn = true; // Boolean | +$includeOut = true; // Boolean | +$startBlock = startBlock_example; // String | +$endBlock = endBlock_example; // String | +$startTimestamp = startTimestamp_example; // String | +$endTimestamp = endTimestamp_example; // String | +$transactionStatus = ; // array[Integer] | +$methodSignature = methodSignature_example; // String | +$limit = 56; // Integer | +$pageToken = BYTE_ARRAY_DATA_HERE; // byte[] | try { - $result = $api_instance->getSimulations($owner, $slug, $labelContains, $page, $pageSize); + $result = $api_instance->searchTransactions($owner, $slug, $chainId, $address, $includeDirect, $includeTrace, $includeIn, $includeOut, $startBlock, $endBlock, $startTimestamp, $endTimestamp, $transactionStatus, $methodSignature, $limit, $pageToken); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DebugAndSimulationApi->getSimulations: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DebugAndSimulationApi->searchTransactions: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DebugAndSimulationApi;
    @@ -20020,20 +19751,31 @@ 

    Usage and SDK Samples

    my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new(); my $owner = owner_example; # String | my $slug = slug_example; # String | -my $labelContains = labelContains_example; # String | -my $page = 56; # Integer | -my $pageSize = 56; # Integer | +my $chainId = []; # array[String] | +my $address = []; # array[String] | +my $includeDirect = true; # Boolean | +my $includeTrace = true; # Boolean | +my $includeIn = true; # Boolean | +my $includeOut = true; # Boolean | +my $startBlock = startBlock_example; # String | +my $endBlock = endBlock_example; # String | +my $startTimestamp = startTimestamp_example; # String | +my $endTimestamp = endTimestamp_example; # String | +my $transactionStatus = []; # array[Integer] | +my $methodSignature = methodSignature_example; # String | +my $limit = 56; # Integer | +my $pageToken = BYTE_ARRAY_DATA_HERE; # byte[] | eval { - my $result = $api_instance->getSimulations(owner => $owner, slug => $slug, labelContains => $labelContains, page => $page, pageSize => $pageSize); + my $result = $api_instance->searchTransactions(owner => $owner, slug => $slug, chainId => $chainId, address => $address, includeDirect => $includeDirect, includeTrace => $includeTrace, includeIn => $includeIn, includeOut => $includeOut, startBlock => $startBlock, endBlock => $endBlock, startTimestamp => $startTimestamp, endTimestamp => $endTimestamp, transactionStatus => $transactionStatus, methodSignature => $methodSignature, limit => $limit, pageToken => $pageToken); print Dumper($result); }; if ($@) { - warn "Exception when calling DebugAndSimulationApi->getSimulations: $@\n"; + warn "Exception when calling DebugAndSimulationApi->searchTransactions: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -20049,106 +19791,330 @@ 

    Usage and SDK Samples

    api_instance = openapi_client.DebugAndSimulationApi() owner = owner_example # String | (default to null) slug = slug_example # String | (default to null) -labelContains = labelContains_example # String | (optional) (default to null) -page = 56 # Integer | (optional) (default to null) -pageSize = 56 # Integer | (optional) (default to null) +chainId = # array[String] | (optional) (default to null) +address = # array[String] | (optional) (default to null) +includeDirect = true # Boolean | (optional) (default to null) +includeTrace = true # Boolean | (optional) (default to null) +includeIn = true # Boolean | (optional) (default to null) +includeOut = true # Boolean | (optional) (default to null) +startBlock = startBlock_example # String | (optional) (default to null) +endBlock = endBlock_example # String | (optional) (default to null) +startTimestamp = startTimestamp_example # String | (optional) (default to null) +endTimestamp = endTimestamp_example # String | (optional) (default to null) +transactionStatus = # array[Integer] | (optional) (default to null) +methodSignature = methodSignature_example # String | (optional) (default to null) +limit = 56 # Integer | (optional) (default to null) +pageToken = BYTE_ARRAY_DATA_HERE # byte[] | (optional) (default to null) try: - # Get list of simulations - api_response = api_instance.get_simulations(owner, slug, labelContains=labelContains, page=page, pageSize=pageSize) + # Search transactions + api_response = api_instance.search_transactions(owner, slug, chainId=chainId, address=address, includeDirect=includeDirect, includeTrace=includeTrace, includeIn=includeIn, includeOut=includeOut, startBlock=startBlock, endBlock=endBlock, startTimestamp=startTimestamp, endTimestamp=endTimestamp, transactionStatus=transactionStatus, methodSignature=methodSignature, limit=limit, pageToken=pageToken) pprint(api_response) except ApiException as e: - print("Exception when calling DebugAndSimulationApi->getSimulations: %s\n" % e)
    + print("Exception when calling DebugAndSimulationApi->searchTransactions: %s\n" % e)
    -
    +
    extern crate DebugAndSimulationApi;
     
     pub fn main() {
         let owner = owner_example; // String
         let slug = slug_example; // String
    -    let labelContains = labelContains_example; // String
    -    let page = 56; // Integer
    -    let pageSize = 56; // Integer
    +    let chainId = ; // array[String]
    +    let address = ; // array[String]
    +    let includeDirect = true; // Boolean
    +    let includeTrace = true; // Boolean
    +    let includeIn = true; // Boolean
    +    let includeOut = true; // Boolean
    +    let startBlock = startBlock_example; // String
    +    let endBlock = endBlock_example; // String
    +    let startTimestamp = startTimestamp_example; // String
    +    let endTimestamp = endTimestamp_example; // String
    +    let transactionStatus = ; // array[Integer]
    +    let methodSignature = methodSignature_example; // String
    +    let limit = 56; // Integer
    +    let pageToken = BYTE_ARRAY_DATA_HERE; // byte[]
     
         let mut context = DebugAndSimulationApi::Context::default();
    -    let result = client.getSimulations(owner, slug, labelContains, page, pageSize, &context).wait();
    +    let result = client.searchTransactions(owner, slug, chainId, address, includeDirect, includeTrace, includeIn, includeOut, startBlock, endBlock, startTimestamp, endTimestamp, transactionStatus, methodSignature, limit, pageToken, &context).wait();
    +
    +    println!("{:?}", result);
    +}
    +
    +
    +
    + +

    Scopes

    + + +
    + +

    Parameters

    + +
    Path parameters
    + + + + + + + + + + + + + +
    NameDescription
    owner* + + +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    +
    slug* + + +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    +
    + + + + +
    Query parameters
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - println!("{:?}", result); -} - - - + + + + -
    Query parameters
    -
    NameDescription
    chainId + + +
    +
    +
    + + array[String] + + +
    +
    +
    +
    address + + +
    +
    +
    + + array[String] + + +
    +
    +
    +
    includeDirect + + +
    +
    +
    + + Boolean + + +
    +
    +
    +
    includeTrace + + +
    +
    +
    + + Boolean + + +
    +
    +
    +
    includeIn + + +
    +
    +
    + + Boolean + + +
    +
    +
    +
    includeOut + + +
    +
    +
    + + Boolean + + +
    +
    +
    +
    startBlock + + +
    +
    +
    + + String + + + (int64) + + +
    +
    +
    +
    endBlock -

    Scopes

    - - -
    -

    Parameters

    +
    +
    +
    + + String + + + (int64) + -
    Path parameters
    - - - - - - + + + + + + + - + -
    NameDescription
    owner*
    startTimestamp -
    +
    String + + (int64) +
    -
    - Required -
    slug*
    endTimestamp -
    +
    String + + (int64) +
    -
    - Required -
    +
    transactionStatus +
    +
    +
    + + array[Integer] + + + (int32) + +
    +
    +
    +
    - - - - - + - + - +
    NameDescription
    labelContains
    methodSignature -
    +
    @@ -20161,11 +20127,11 @@

    Parameters

    page
    limit -
    +
    @@ -20181,18 +20147,18 @@

    Parameters

    pageSize
    pageToken -
    +
    - Integer + byte[] - (int32) + (byte)
    @@ -20204,23 +20170,23 @@

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    searchTransactions

    -

    Search transactions

    +

    simulateTransaction

    +

    Run simulation

    -

    +

    Create a new transaction simulation. The simulation body should be included in the request body. +Your simulations will be saved, and a unique ID for each simulation is included in the response. It will be useful for fetching simulation details.


    -
    /api/v1/solidity/{owner}/{slug}/search_transactions
    +
    /api/v1/solidity/{owner}/{slug}/{chainId}/simulation

    Usage and SDK Samples

    -
    -
    curl -X GET \
    +                          
    +
    curl -X POST \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
    - "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/search_transactions?chainId=&address=&includeDirect=true&includeTrace=true&includeIn=true&includeOut=true&startBlock=startBlock_example&endBlock=endBlock_example&startTimestamp=startTimestamp_example&endTimestamp=endTimestamp_example&transactionStatus=&methodSignature=methodSignature_example&limit=56&pageToken=BYTE_ARRAY_DATA_HERE"
    + -H "Content-Type: application/json" \
    + "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/{chainId}/simulation" \
    + -d ''
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -20346,26 +20315,14 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi apiInstance = new DebugAndSimulationApi(); String owner = owner_example; // String | String slug = slug_example; // String | - array[String] chainId = ; // array[String] | - array[String] address = ; // array[String] | - Boolean includeDirect = true; // Boolean | - Boolean includeTrace = true; // Boolean | - Boolean includeIn = true; // Boolean | - Boolean includeOut = true; // Boolean | - String startBlock = startBlock_example; // String | - String endBlock = endBlock_example; // String | - String startTimestamp = startTimestamp_example; // String | - String endTimestamp = endTimestamp_example; // String | - array[Integer] transactionStatus = ; // array[Integer] | - String methodSignature = methodSignature_example; // String | - Integer limit = 56; // Integer | - byte[] pageToken = BYTE_ARRAY_DATA_HERE; // byte[] | + String chainId = chainId_example; // String | + SolidityServiceSolidityAPIServiceSimulateTransactionBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBody | try { - txindex.EvmSearchTransactionsResponse result = apiInstance.searchTransactions(owner, slug, chainId, address, includeDirect, includeTrace, includeIn, includeOut, startBlock, endBlock, startTimestamp, endTimestamp, transactionStatus, methodSignature, limit, pageToken); + solidity_service.SimulateTransactionResponse result = apiInstance.simulateTransaction(owner, slug, chainId, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#searchTransactions"); + System.err.println("Exception when calling DebugAndSimulationApi#simulateTransaction"); e.printStackTrace(); } } @@ -20373,39 +20330,27 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
     
     final String owner = new String(); // String | 
     final String slug = new String(); // String | 
    -final array[String] chainId = new array[String](); // array[String] | 
    -final array[String] address = new array[String](); // array[String] | 
    -final Boolean includeDirect = new Boolean(); // Boolean | 
    -final Boolean includeTrace = new Boolean(); // Boolean | 
    -final Boolean includeIn = new Boolean(); // Boolean | 
    -final Boolean includeOut = new Boolean(); // Boolean | 
    -final String startBlock = new String(); // String | 
    -final String endBlock = new String(); // String | 
    -final String startTimestamp = new String(); // String | 
    -final String endTimestamp = new String(); // String | 
    -final array[Integer] transactionStatus = new array[Integer](); // array[Integer] | 
    -final String methodSignature = new String(); // String | 
    -final Integer limit = new Integer(); // Integer | 
    -final byte[] pageToken = new byte[](); // byte[] | 
    +final String chainId = new String(); // String | 
    +final SolidityServiceSolidityAPIServiceSimulateTransactionBody body = new SolidityServiceSolidityAPIServiceSimulateTransactionBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBody | 
     
     try {
    -    final result = await api_instance.searchTransactions(owner, slug, chainId, address, includeDirect, includeTrace, includeIn, includeOut, startBlock, endBlock, startTimestamp, endTimestamp, transactionStatus, methodSignature, limit, pageToken);
    +    final result = await api_instance.simulateTransaction(owner, slug, chainId, body);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->searchTransactions: $e\n');
    +    print('Exception when calling DefaultApi->simulateTransaction: $e\n');
     }
     
     
    -
    +
    import org.openapitools.client.api.DebugAndSimulationApi;
     
     public class DebugAndSimulationApiExample {
    @@ -20413,36 +20358,24 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi apiInstance = new DebugAndSimulationApi(); String owner = owner_example; // String | String slug = slug_example; // String | - array[String] chainId = ; // array[String] | - array[String] address = ; // array[String] | - Boolean includeDirect = true; // Boolean | - Boolean includeTrace = true; // Boolean | - Boolean includeIn = true; // Boolean | - Boolean includeOut = true; // Boolean | - String startBlock = startBlock_example; // String | - String endBlock = endBlock_example; // String | - String startTimestamp = startTimestamp_example; // String | - String endTimestamp = endTimestamp_example; // String | - array[Integer] transactionStatus = ; // array[Integer] | - String methodSignature = methodSignature_example; // String | - Integer limit = 56; // Integer | - byte[] pageToken = BYTE_ARRAY_DATA_HERE; // byte[] | + String chainId = chainId_example; // String | + SolidityServiceSolidityAPIServiceSimulateTransactionBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBody | try { - txindex.EvmSearchTransactionsResponse result = apiInstance.searchTransactions(owner, slug, chainId, address, includeDirect, includeTrace, includeIn, includeOut, startBlock, endBlock, startTimestamp, endTimestamp, transactionStatus, methodSignature, limit, pageToken); + solidity_service.SimulateTransactionResponse result = apiInstance.simulateTransaction(owner, slug, chainId, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#searchTransactions"); + System.err.println("Exception when calling DebugAndSimulationApi#simulateTransaction"); e.printStackTrace(); } } }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -20455,39 +20388,15 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi *apiInstance = [[DebugAndSimulationApi alloc] init]; String *owner = owner_example; // (default to null) String *slug = slug_example; // (default to null) -array[String] *chainId = ; // (optional) (default to null) -array[String] *address = ; // (optional) (default to null) -Boolean *includeDirect = true; // (optional) (default to null) -Boolean *includeTrace = true; // (optional) (default to null) -Boolean *includeIn = true; // (optional) (default to null) -Boolean *includeOut = true; // (optional) (default to null) -String *startBlock = startBlock_example; // (optional) (default to null) -String *endBlock = endBlock_example; // (optional) (default to null) -String *startTimestamp = startTimestamp_example; // (optional) (default to null) -String *endTimestamp = endTimestamp_example; // (optional) (default to null) -array[Integer] *transactionStatus = ; // (optional) (default to null) -String *methodSignature = methodSignature_example; // (optional) (default to null) -Integer *limit = 56; // (optional) (default to null) -byte[] *pageToken = BYTE_ARRAY_DATA_HERE; // (optional) (default to null) - -// Search transactions -[apiInstance searchTransactionsWith:owner +String *chainId = chainId_example; // (default to null) +SolidityServiceSolidityAPIServiceSimulateTransactionBody *body = ; // + +// Run simulation +[apiInstance simulateTransactionWith:owner slug:slug chainId:chainId - address:address - includeDirect:includeDirect - includeTrace:includeTrace - includeIn:includeIn - includeOut:includeOut - startBlock:startBlock - endBlock:endBlock - startTimestamp:startTimestamp - endTimestamp:endTimestamp - transactionStatus:transactionStatus - methodSignature:methodSignature - limit:limit - pageToken:pageToken - completionHandler: ^(txindex.EvmSearchTransactionsResponse output, NSError* error) { + body:body + completionHandler: ^(solidity_service.SimulateTransactionResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -20498,7 +20407,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -20512,22 +20421,8 @@ 

    Usage and SDK Samples

    var api = new SentioApi.DebugAndSimulationApi() var owner = owner_example; // {String} var slug = slug_example; // {String} -var opts = { - 'chainId': , // {array[String]} - 'address': , // {array[String]} - 'includeDirect': true, // {Boolean} - 'includeTrace': true, // {Boolean} - 'includeIn': true, // {Boolean} - 'includeOut': true, // {Boolean} - 'startBlock': startBlock_example, // {String} - 'endBlock': endBlock_example, // {String} - 'startTimestamp': startTimestamp_example, // {String} - 'endTimestamp': endTimestamp_example, // {String} - 'transactionStatus': , // {array[Integer]} - 'methodSignature': methodSignature_example, // {String} - 'limit': 56, // {Integer} - 'pageToken': BYTE_ARRAY_DATA_HERE // {byte[]} -}; +var chainId = chainId_example; // {String} +var body = ; // {SolidityServiceSolidityAPIServiceSimulateTransactionBody} var callback = function(error, data, response) { if (error) { @@ -20536,14 +20431,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.searchTransactions(owner, slug, opts, callback); +api.simulateTransaction(owner, slug, chainId, body, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -20552,7 +20447,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class searchTransactionsExample + public class simulateTransactionExample { public void main() { @@ -20565,449 +20460,705 @@

    Usage and SDK Samples

    var apiInstance = new DebugAndSimulationApi(); var owner = owner_example; // String | (default to null) var slug = slug_example; // String | (default to null) - var chainId = new array[String](); // array[String] | (optional) (default to null) - var address = new array[String](); // array[String] | (optional) (default to null) - var includeDirect = true; // Boolean | (optional) (default to null) - var includeTrace = true; // Boolean | (optional) (default to null) - var includeIn = true; // Boolean | (optional) (default to null) - var includeOut = true; // Boolean | (optional) (default to null) - var startBlock = startBlock_example; // String | (optional) (default to null) - var endBlock = endBlock_example; // String | (optional) (default to null) - var startTimestamp = startTimestamp_example; // String | (optional) (default to null) - var endTimestamp = endTimestamp_example; // String | (optional) (default to null) - var transactionStatus = new array[Integer](); // array[Integer] | (optional) (default to null) - var methodSignature = methodSignature_example; // String | (optional) (default to null) - var limit = 56; // Integer | (optional) (default to null) - var pageToken = BYTE_ARRAY_DATA_HERE; // byte[] | (optional) (default to null) + var chainId = chainId_example; // String | (default to null) + var body = new SolidityServiceSolidityAPIServiceSimulateTransactionBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBody | try { - // Search transactions - txindex.EvmSearchTransactionsResponse result = apiInstance.searchTransactions(owner, slug, chainId, address, includeDirect, includeTrace, includeIn, includeOut, startBlock, endBlock, startTimestamp, endTimestamp, transactionStatus, methodSignature, limit, pageToken); + // Run simulation + solidity_service.SimulateTransactionResponse result = apiInstance.simulateTransaction(owner, slug, chainId, body); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DebugAndSimulationApi.searchTransactions: " + e.Message ); + Debug.Print("Exception when calling DebugAndSimulationApi.simulateTransaction: " + e.Message ); } } } -} -
    -
    +} +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +// Configure API key authorization: ApiKeyAuth
    +OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
    +
    +// Create an instance of the API class
    +$api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi();
    +$owner = owner_example; // String | 
    +$slug = slug_example; // String | 
    +$chainId = chainId_example; // String | 
    +$body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBody | 
    +
    +try {
    +    $result = $api_instance->simulateTransaction($owner, $slug, $chainId, $body);
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DebugAndSimulationApi->simulateTransaction: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::OPenAPIClient::Configuration;
    +use WWW::OPenAPIClient::DebugAndSimulationApi;
    +
    +# Configure API key authorization: ApiKeyAuth
    +$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
    +
    +# Create an instance of the API class
    +my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new();
    +my $owner = owner_example; # String | 
    +my $slug = slug_example; # String | 
    +my $chainId = chainId_example; # String | 
    +my $body = WWW::OPenAPIClient::Object::SolidityServiceSolidityAPIServiceSimulateTransactionBody->new(); # SolidityServiceSolidityAPIServiceSimulateTransactionBody | 
    +
    +eval {
    +    my $result = $api_instance->simulateTransaction(owner => $owner, slug => $slug, chainId => $chainId, body => $body);
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling DebugAndSimulationApi->simulateTransaction: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import openapi_client
    +from openapi_client.rest import ApiException
    +from pprint import pprint
    +
    +# Configure API key authorization: ApiKeyAuth
    +openapi_client.configuration.api_key['api-key'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer'
    +
    +# Create an instance of the API class
    +api_instance = openapi_client.DebugAndSimulationApi()
    +owner = owner_example # String |  (default to null)
    +slug = slug_example # String |  (default to null)
    +chainId = chainId_example # String |  (default to null)
    +body =  # SolidityServiceSolidityAPIServiceSimulateTransactionBody | 
    +
    +try:
    +    # Run simulation
    +    api_response = api_instance.simulate_transaction(owner, slug, chainId, body)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling DebugAndSimulationApi->simulateTransaction: %s\n" % e)
    +
    + +
    +
    extern crate DebugAndSimulationApi;
    +
    +pub fn main() {
    +    let owner = owner_example; // String
    +    let slug = slug_example; // String
    +    let chainId = chainId_example; // String
    +    let body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBody
    +
    +    let mut context = DebugAndSimulationApi::Context::default();
    +    let result = client.simulateTransaction(owner, slug, chainId, body, &context).wait();
    +
    +    println!("{:?}", result);
    +}
    +
    +
    +
    + +

    Scopes

    + + +
    + +

    Parameters

    + +
    Path parameters
    + + + + + + + + + + + + + + + + + +
    NameDescription
    owner* + + +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    +
    slug* + + +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    +
    chainId* + + +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    +
    + + +
    Body parameters
    + + + + + + + + -// Create an instance of the API class -$api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi(); -$owner = owner_example; // String | -$slug = slug_example; // String | -$chainId = ; // array[String] | -$address = ; // array[String] | -$includeDirect = true; // Boolean | -$includeTrace = true; // Boolean | -$includeIn = true; // Boolean | -$includeOut = true; // Boolean | -$startBlock = startBlock_example; // String | -$endBlock = endBlock_example; // String | -$startTimestamp = startTimestamp_example; // String | -$endTimestamp = endTimestamp_example; // String | -$transactionStatus = ; // array[Integer] | -$methodSignature = methodSignature_example; // String | -$limit = 56; // Integer | -$pageToken = BYTE_ARRAY_DATA_HERE; // byte[] | +
    NameDescription
    body * +

    + +
    +
    -try { - $result = $api_instance->searchTransactions($owner, $slug, $chainId, $address, $includeDirect, $includeTrace, $includeIn, $includeOut, $startBlock, $endBlock, $startTimestamp, $endTimestamp, $transactionStatus, $methodSignature, $limit, $pageToken); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling DebugAndSimulationApi->searchTransactions: ', $e->getMessage(), PHP_EOL; -} -?>
    -
    -
    -
    use Data::Dumper;
    -use WWW::OPenAPIClient::Configuration;
    -use WWW::OPenAPIClient::DebugAndSimulationApi;
     
    -# Configure API key authorization: ApiKeyAuth
    -$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
    -# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    -#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
    +                          

    Responses

    +

    +

    + -# Create an instance of the API class -my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new(); -my $owner = owner_example; # String | -my $slug = slug_example; # String | -my $chainId = []; # array[String] | -my $address = []; # array[String] | -my $includeDirect = true; # Boolean | -my $includeTrace = true; # Boolean | -my $includeIn = true; # Boolean | -my $includeOut = true; # Boolean | -my $startBlock = startBlock_example; # String | -my $endBlock = endBlock_example; # String | -my $startTimestamp = startTimestamp_example; # String | -my $endTimestamp = endTimestamp_example; # String | -my $transactionStatus = []; # array[Integer] | -my $methodSignature = methodSignature_example; # String | -my $limit = 56; # Integer | -my $pageToken = BYTE_ARRAY_DATA_HERE; # byte[] | -eval { - my $result = $api_instance->searchTransactions(owner => $owner, slug => $slug, chainId => $chainId, address => $address, includeDirect => $includeDirect, includeTrace => $includeTrace, includeIn => $includeIn, includeOut => $includeOut, startBlock => $startBlock, endBlock => $endBlock, startTimestamp => $startTimestamp, endTimestamp => $endTimestamp, transactionStatus => $transactionStatus, methodSignature => $methodSignature, limit => $limit, pageToken => $pageToken); - print Dumper($result); -}; -if ($@) { - warn "Exception when calling DebugAndSimulationApi->searchTransactions: $@\n"; -}
    -
    + -
    -
    extern crate DebugAndSimulationApi;
     
    -pub fn main() {
    -    let owner = owner_example; // String
    -    let slug = slug_example; // String
    -    let chainId = ; // array[String]
    -    let address = ; // array[String]
    -    let includeDirect = true; // Boolean
    -    let includeTrace = true; // Boolean
    -    let includeIn = true; // Boolean
    -    let includeOut = true; // Boolean
    -    let startBlock = startBlock_example; // String
    -    let endBlock = endBlock_example; // String
    -    let startTimestamp = startTimestamp_example; // String
    -    let endTimestamp = endTimestamp_example; // String
    -    let transactionStatus = ; // array[Integer]
    -    let methodSignature = methodSignature_example; // String
    -    let limit = 56; // Integer
    -    let pageToken = BYTE_ARRAY_DATA_HERE; // byte[]
    +                            
    +
    +
    + +
    + +
    +
    +
    +
    +
    +
    +
    +
    +

    simulateTransactionBundle

    +

    Run bundle simulation

    +
    +
    +
    +

    +

    You could also create bundle simulations so that one transaction could be executed one after another. For `blockNumber` `transactionIndex` `networkId` `stateOverrides` and `blockOverrides` fields, only the first simulation takes effect.

    +

    +
    +
    /api/v1/solidity/{owner}/{slug}/{chainId}/simulation_bundle
    +

    +

    Usage and SDK Samples

    +

    + - println!("{:?}", result); -} +
    +
    +
    curl -X POST \
    +-H "api-key: [[apiKey]]" \
    + -H "Accept: application/json" \
    + -H "Content-Type: application/json" \
    + "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/{chainId}/simulation_bundle" \
    + -d ''
     
    -
    +
    +
    import org.openapitools.client.*;
    +import org.openapitools.client.auth.*;
    +import org.openapitools.client.model.*;
    +import org.openapitools.client.api.DebugAndSimulationApi;
     
    -                          

    Scopes

    - - -
    - -

    Parameters

    - -
    Path parameters
    - - - - - - - - - - - - + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); -
    NameDescription
    owner* - - -
    -
    -
    - - String - - -
    -
    - Required -
    -
    -
    -
    slug* - +import java.io.File; +import java.util.*; -
    -
    -
    - - String - +public class DebugAndSimulationApiExample { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); -
    -
    - Required -
    -
    -
    -
    + // Create an instance of the API class + DebugAndSimulationApi apiInstance = new DebugAndSimulationApi(); + String owner = owner_example; // String | + String slug = slug_example; // String | + String chainId = chainId_example; // String | + SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | + try { + solidity_service.SimulateTransactionBundleResponse result = apiInstance.simulateTransactionBundle(owner, slug, chainId, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DebugAndSimulationApi#simulateTransactionBundle"); + e.printStackTrace(); + } + } +} +
    +
    +
    +
    import 'package:openapi/api.dart';
     
    +final api_instance = DefaultApi();
     
    -                            
    Query parameters
    - - - - - - - - +
    +
    import org.openapitools.client.api.DebugAndSimulationApi;
     
    -                                
    - - - - - +// Configure API key authorization: ApiKeyAuth +var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; +ApiKeyAuth.apiKey = "YOUR API KEY"; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyAuth.apiKeyPrefix['api-key'] = "Token"; - - - +namespace Example +{ + public class simulateTransactionBundleExample + { + public void main() + { + // Configure API key authorization: ApiKeyAuth + Configuration.Default.ApiKey.Add("api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer"); - - - +// Configure API key authorization: ApiKeyAuth +OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); - - - +# Configure API key authorization: ApiKeyAuth +$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY'; +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed +#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer"; - - - +# Configure API key authorization: ApiKeyAuth +openapi_client.configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer' - - - +pub fn main() { + let owner = owner_example; // String + let slug = slug_example; // String + let chainId = chainId_example; // String + let body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody - - - +

    Parameters

    -
    +
    Path parameters
    +
    NameDescription
    chainId +final String owner = new String(); // String | +final String slug = new String(); // String | +final String chainId = new String(); // String | +final SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody body = new SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | +try { + final result = await api_instance.simulateTransactionBundle(owner, slug, chainId, body); + print(result); +} catch (e) { + print('Exception when calling DefaultApi->simulateTransactionBundle: $e\n'); +} -
    -
    -
    - - array[String] - + +
    -
    -
    - -
    address +public class DebugAndSimulationApiExample { + public static void main(String[] args) { + DebugAndSimulationApi apiInstance = new DebugAndSimulationApi(); + String owner = owner_example; // String | + String slug = slug_example; // String | + String chainId = chainId_example; // String | + SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | + try { + solidity_service.SimulateTransactionBundleResponse result = apiInstance.simulateTransactionBundle(owner, slug, chainId, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DebugAndSimulationApi#simulateTransactionBundle"); + e.printStackTrace(); + } + } +} + + +
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
    -    
    -
    -
    - - array[String] - +// Configure API key authorization: (authentication scheme: ApiKeyAuth) +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-key"]; +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-key"]; -
    -
    -
    -
    includeDirect +// Create an instance of the API class +DebugAndSimulationApi *apiInstance = [[DebugAndSimulationApi alloc] init]; +String *owner = owner_example; // (default to null) +String *slug = slug_example; // (default to null) +String *chainId = chainId_example; // (default to null) +SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody *body = ; // +// Run bundle simulation +[apiInstance simulateTransactionBundleWith:owner + slug:slug + chainId:chainId + body:body + completionHandler: ^(solidity_service.SimulateTransactionBundleResponse output, NSError* error) { + if (output) { + NSLog(@"%@", output); + } + if (error) { + NSLog(@"Error: %@", error); + } +}]; + + -
    -
    -
    - - Boolean - +
    +
    var SentioApi = require('sentio_api');
    +var defaultClient = SentioApi.ApiClient.instance;
     
    -            
    -
    -
    -
    includeTrace +// Create an instance of the API class +var api = new SentioApi.DebugAndSimulationApi() +var owner = owner_example; // {String} +var slug = slug_example; // {String} +var chainId = chainId_example; // {String} +var body = ; // {SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody} +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +api.simulateTransactionBundle(owner, slug, chainId, body, callback); + + -
    -
    -
    - - Boolean - + +
    +
    using System;
    +using System.Diagnostics;
    +using Org.OpenAPITools.Api;
    +using Org.OpenAPITools.Client;
    +using Org.OpenAPITools.Model;
     
    -            
    -
    -
    -
    includeIn + // Create an instance of the API class + var apiInstance = new DebugAndSimulationApi(); + var owner = owner_example; // String | (default to null) + var slug = slug_example; // String | (default to null) + var chainId = chainId_example; // String | (default to null) + var body = new SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | + try { + // Run bundle simulation + solidity_service.SimulateTransactionBundleResponse result = apiInstance.simulateTransactionBundle(owner, slug, chainId, body); + Debug.WriteLine(result); + } catch (Exception e) { + Debug.Print("Exception when calling DebugAndSimulationApi.simulateTransactionBundle: " + e.Message ); + } + } + } +} + + -
    -
    -
    - - Boolean - +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
     
    -            
    -
    -
    -
    includeOut +// Create an instance of the API class +$api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi(); +$owner = owner_example; // String | +$slug = slug_example; // String | +$chainId = chainId_example; // String | +$body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | +try { + $result = $api_instance->simulateTransactionBundle($owner, $slug, $chainId, $body); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling DebugAndSimulationApi->simulateTransactionBundle: ', $e->getMessage(), PHP_EOL; +} +?> + -
    -
    -
    - - Boolean - +
    +
    use Data::Dumper;
    +use WWW::OPenAPIClient::Configuration;
    +use WWW::OPenAPIClient::DebugAndSimulationApi;
     
    -            
    -
    -
    -
    startBlock +# Create an instance of the API class +my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new(); +my $owner = owner_example; # String | +my $slug = slug_example; # String | +my $chainId = chainId_example; # String | +my $body = WWW::OPenAPIClient::Object::SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody->new(); # SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | +eval { + my $result = $api_instance->simulateTransactionBundle(owner => $owner, slug => $slug, chainId => $chainId, body => $body); + print Dumper($result); +}; +if ($@) { + warn "Exception when calling DebugAndSimulationApi->simulateTransactionBundle: $@\n"; +} + -
    -
    -
    - - String - - - (int64) - +
    +
    from __future__ import print_statement
    +import time
    +import openapi_client
    +from openapi_client.rest import ApiException
    +from pprint import pprint
     
    -            
    -
    -
    -
    endBlock +# Create an instance of the API class +api_instance = openapi_client.DebugAndSimulationApi() +owner = owner_example # String | (default to null) +slug = slug_example # String | (default to null) +chainId = chainId_example # String | (default to null) +body = # SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | +try: + # Run bundle simulation + api_response = api_instance.simulate_transaction_bundle(owner, slug, chainId, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DebugAndSimulationApi->simulateTransactionBundle: %s\n" % e) + -
    -
    -
    - - String - - - (int64) - +
    +
    extern crate DebugAndSimulationApi;
     
    -            
    -
    -
    -
    startTimestamp + let mut context = DebugAndSimulationApi::Context::default(); + let result = client.simulateTransactionBundle(owner, slug, chainId, body, &context).wait(); + println!("{:?}", result); +} + + + -
    -
    -
    - - String - - - (int64) - +

    Scopes

    + + +
    -
    -
    -
    -
    endTimestamp
    + + + + + - + - + - -
    NameDescription
    owner* -
    +
    String - - (int64) -
    +
    + Required +
    transactionStatus
    slug* -
    +
    - array[Integer] + String - - (int32) -
    +
    + Required +
    methodSignature
    chainId* -
    +
    @@ -21015,71 +21166,86 @@

    Parameters

    +
    + Required +
    limit - - -
    -
    -
    - - Integer - - - (int32) - +
    -
    -
    -
    - - - pageToken +
    Body parameters
    + + + + + +
    NameDescription
    body * +

    + +
    + +

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    +

    Default

    +
    +
    -

    simulateTransaction

    -

    Run simulation

    +

    rerunSQLQuery

    +

    deprecated

    -

    Create a new transaction simulation. The simulation body should be included in the request body. -Your simulations will be saved, and a unique ID for each simulation is included in the response. It will be useful for fetching simulation details.

    +


    -
    /api/v1/solidity/{owner}/{slug}/{chainId}/simulation
    +
    /api/v1/analytics/{owner}/{slug}/sql/rerun_query

    Usage and SDK Samples

    -
    +
    curl -X POST \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
      -H "Content-Type: application/json" \
    - "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/{chainId}/simulation" \
    + "https://app.sentio.xyz/api/v1/analytics/{owner}/{slug}/sql/rerun_query" \
      -d ''
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    -import org.openapitools.client.api.DebugAndSimulationApi;
    +import org.openapitools.client.api.DefaultApi;
     
     import java.io.File;
     import java.util.*;
     
    -public class DebugAndSimulationApiExample {
    +public class DefaultApiExample {
         public static void main(String[] args) {
             ApiClient defaultClient = Configuration.getDefaultApiClient();
     
    @@ -21205,17 +21373,16 @@ 

    Usage and SDK Samples

    //ApiKeyAuth.setApiKeyPrefix("Token"); // Create an instance of the API class - DebugAndSimulationApi apiInstance = new DebugAndSimulationApi(); - String owner = owner_example; // String | - String slug = slug_example; // String | - String chainId = chainId_example; // String | - SolidityServiceSolidityAPIServiceSimulateTransactionBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBody | + DefaultApi apiInstance = new DefaultApi(); + String owner = owner_example; // String | username or organization name + String slug = slug_example; // String | project slug + AnalyticServiceAnalyticServiceRerunSQLQueryBody body = ; // AnalyticServiceAnalyticServiceRerunSQLQueryBody | try { - solidity_service.SimulateTransactionResponse result = apiInstance.simulateTransaction(owner, slug, chainId, body); + analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery(owner, slug, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#simulateTransaction"); + System.err.println("Exception when calling DefaultApi#rerunSQLQuery"); e.printStackTrace(); } } @@ -21223,52 +21390,50 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
     
    -final String owner = new String(); // String | 
    -final String slug = new String(); // String | 
    -final String chainId = new String(); // String | 
    -final SolidityServiceSolidityAPIServiceSimulateTransactionBody body = new SolidityServiceSolidityAPIServiceSimulateTransactionBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBody | 
    +final String owner = new String(); // String | username or organization name
    +final String slug = new String(); // String | project slug
    +final AnalyticServiceAnalyticServiceRerunSQLQueryBody body = new AnalyticServiceAnalyticServiceRerunSQLQueryBody(); // AnalyticServiceAnalyticServiceRerunSQLQueryBody | 
     
     try {
    -    final result = await api_instance.simulateTransaction(owner, slug, chainId, body);
    +    final result = await api_instance.rerunSQLQuery(owner, slug, body);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->simulateTransaction: $e\n');
    +    print('Exception when calling DefaultApi->rerunSQLQuery: $e\n');
     }
     
     
    -
    -
    import org.openapitools.client.api.DebugAndSimulationApi;
    +                          
    +
    import org.openapitools.client.api.DefaultApi;
     
    -public class DebugAndSimulationApiExample {
    +public class DefaultApiExample {
         public static void main(String[] args) {
    -        DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
    -        String owner = owner_example; // String | 
    -        String slug = slug_example; // String | 
    -        String chainId = chainId_example; // String | 
    -        SolidityServiceSolidityAPIServiceSimulateTransactionBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBody | 
    +        DefaultApi apiInstance = new DefaultApi();
    +        String owner = owner_example; // String | username or organization name
    +        String slug = slug_example; // String | project slug
    +        AnalyticServiceAnalyticServiceRerunSQLQueryBody body = ; // AnalyticServiceAnalyticServiceRerunSQLQueryBody | 
     
             try {
    -            solidity_service.SimulateTransactionResponse result = apiInstance.simulateTransaction(owner, slug, chainId, body);
    +            analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery(owner, slug, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DebugAndSimulationApi#simulateTransaction");
    +            System.err.println("Exception when calling DefaultApi#rerunSQLQuery");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -21278,18 +21443,16 @@ 

    Usage and SDK Samples

    // Create an instance of the API class -DebugAndSimulationApi *apiInstance = [[DebugAndSimulationApi alloc] init]; -String *owner = owner_example; // (default to null) -String *slug = slug_example; // (default to null) -String *chainId = chainId_example; // (default to null) -SolidityServiceSolidityAPIServiceSimulateTransactionBody *body = ; // +DefaultApi *apiInstance = [[DefaultApi alloc] init]; +String *owner = owner_example; // username or organization name (default to null) +String *slug = slug_example; // project slug (default to null) +AnalyticServiceAnalyticServiceRerunSQLQueryBody *body = ; // -// Run simulation -[apiInstance simulateTransactionWith:owner +// deprecated +[apiInstance rerunSQLQueryWith:owner slug:slug - chainId:chainId body:body - completionHandler: ^(solidity_service.SimulateTransactionResponse output, NSError* error) { + completionHandler: ^(analytic_service.RerunSQLQueryResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -21300,7 +21463,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -21311,11 +21474,10 @@ 

    Usage and SDK Samples

    //ApiKeyAuth.apiKeyPrefix['api-key'] = "Token"; // Create an instance of the API class -var api = new SentioApi.DebugAndSimulationApi() -var owner = owner_example; // {String} -var slug = slug_example; // {String} -var chainId = chainId_example; // {String} -var body = ; // {SolidityServiceSolidityAPIServiceSimulateTransactionBody} +var api = new SentioApi.DefaultApi() +var owner = owner_example; // {String} username or organization name +var slug = slug_example; // {String} project slug +var body = ; // {AnalyticServiceAnalyticServiceRerunSQLQueryBody} var callback = function(error, data, response) { if (error) { @@ -21324,14 +21486,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.simulateTransaction(owner, slug, chainId, body, callback); +api.rerunSQLQuery(owner, slug, body, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -21340,7 +21502,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class simulateTransactionExample + public class rerunSQLQueryExample { public void main() { @@ -21350,18 +21512,17 @@

    Usage and SDK Samples

    // Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer"); // Create an instance of the API class - var apiInstance = new DebugAndSimulationApi(); - var owner = owner_example; // String | (default to null) - var slug = slug_example; // String | (default to null) - var chainId = chainId_example; // String | (default to null) - var body = new SolidityServiceSolidityAPIServiceSimulateTransactionBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBody | + var apiInstance = new DefaultApi(); + var owner = owner_example; // String | username or organization name (default to null) + var slug = slug_example; // String | project slug (default to null) + var body = new AnalyticServiceAnalyticServiceRerunSQLQueryBody(); // AnalyticServiceAnalyticServiceRerunSQLQueryBody | try { - // Run simulation - solidity_service.SimulateTransactionResponse result = apiInstance.simulateTransaction(owner, slug, chainId, body); + // deprecated + analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery(owner, slug, body); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DebugAndSimulationApi.simulateTransaction: " + e.Message ); + Debug.Print("Exception when calling DefaultApi.rerunSQLQuery: " + e.Message ); } } } @@ -21369,7 +21530,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -21379,25 +21540,24 @@ 

    Usage and SDK Samples

    // OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); // Create an instance of the API class -$api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi(); -$owner = owner_example; // String | -$slug = slug_example; // String | -$chainId = chainId_example; // String | -$body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBody | +$api_instance = new OpenAPITools\Client\Api\DefaultApi(); +$owner = owner_example; // String | username or organization name +$slug = slug_example; // String | project slug +$body = ; // AnalyticServiceAnalyticServiceRerunSQLQueryBody | try { - $result = $api_instance->simulateTransaction($owner, $slug, $chainId, $body); + $result = $api_instance->rerunSQLQuery($owner, $slug, $body); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DebugAndSimulationApi->simulateTransaction: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DefaultApi->rerunSQLQuery: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
    -use WWW::OPenAPIClient::DebugAndSimulationApi;
    +use WWW::OPenAPIClient::DefaultApi;
     
     # Configure API key authorization: ApiKeyAuth
     $WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
    @@ -21405,22 +21565,21 @@ 

    Usage and SDK Samples

    #$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer"; # Create an instance of the API class -my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new(); -my $owner = owner_example; # String | -my $slug = slug_example; # String | -my $chainId = chainId_example; # String | -my $body = WWW::OPenAPIClient::Object::SolidityServiceSolidityAPIServiceSimulateTransactionBody->new(); # SolidityServiceSolidityAPIServiceSimulateTransactionBody | +my $api_instance = WWW::OPenAPIClient::DefaultApi->new(); +my $owner = owner_example; # String | username or organization name +my $slug = slug_example; # String | project slug +my $body = WWW::OPenAPIClient::Object::AnalyticServiceAnalyticServiceRerunSQLQueryBody->new(); # AnalyticServiceAnalyticServiceRerunSQLQueryBody | eval { - my $result = $api_instance->simulateTransaction(owner => $owner, slug => $slug, chainId => $chainId, body => $body); + my $result = $api_instance->rerunSQLQuery(owner => $owner, slug => $slug, body => $body); print Dumper($result); }; if ($@) { - warn "Exception when calling DebugAndSimulationApi->simulateTransaction: $@\n"; + warn "Exception when calling DefaultApi->rerunSQLQuery: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -21433,31 +21592,29 @@ 

    Usage and SDK Samples

    # openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer' # Create an instance of the API class -api_instance = openapi_client.DebugAndSimulationApi() -owner = owner_example # String | (default to null) -slug = slug_example # String | (default to null) -chainId = chainId_example # String | (default to null) -body = # SolidityServiceSolidityAPIServiceSimulateTransactionBody | +api_instance = openapi_client.DefaultApi() +owner = owner_example # String | username or organization name (default to null) +slug = slug_example # String | project slug (default to null) +body = # AnalyticServiceAnalyticServiceRerunSQLQueryBody | try: - # Run simulation - api_response = api_instance.simulate_transaction(owner, slug, chainId, body) + # deprecated + api_response = api_instance.rerun_sql_query(owner, slug, body) pprint(api_response) except ApiException as e: - print("Exception when calling DebugAndSimulationApi->simulateTransaction: %s\n" % e)
    + print("Exception when calling DefaultApi->rerunSQLQuery: %s\n" % e)
    -
    -
    extern crate DebugAndSimulationApi;
    +                            
    +
    extern crate DefaultApi;
     
     pub fn main() {
         let owner = owner_example; // String
         let slug = slug_example; // String
    -    let chainId = chainId_example; // String
    -    let body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBody
    +    let body = ; // AnalyticServiceAnalyticServiceRerunSQLQueryBody
     
    -    let mut context = DebugAndSimulationApi::Context::default();
    -    let result = client.simulateTransaction(owner, slug, chainId, body, &context).wait();
    +    let mut context = DefaultApi::Context::default();
    +    let result = client.rerunSQLQuery(owner, slug, body, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -21482,13 +21639,16 @@ 

    Parameters

    -
    +
    String +
    +username or organization name +
    Required @@ -21502,33 +21662,16 @@

    Parameters

    -
    -
    -
    - - String - - -
    -
    - Required -
    -
    -
    - - - - chainId* - - - -
    +
    String +
    +project slug +
    Required @@ -21556,7 +21699,7 @@

    Parameters

    "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/solidity_service.SolidityAPIService.SimulateTransactionBody" + "$ref" : "#/components/schemas/analytic_service.AnalyticService.RerunSQLQueryBody" } } }, @@ -21579,12 +21722,12 @@

    Parameters

    } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_simulateTransaction_body'); + var result = $('#d2e199_rerunSQLQuery_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -21593,23 +21736,23 @@

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    simulateTransactionBundle

    -

    Run bundle simulation

    +

    rerunSQLQuery2

    +

    deprecated

    -

    You could also create bundle simulations so that one transaction could be executed one after another. For `blockNumber` `transactionIndex` `networkId` `stateOverrides` and `blockOverrides` fields, only the first simulation takes effect.

    +


    -
    /api/v1/solidity/{owner}/{slug}/{chainId}/simulation_bundle
    +
    /api/v1/analytics/sql/rerun_query

    Usage and SDK Samples

    -
    +
    curl -X POST \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
      -H "Content-Type: application/json" \
    - "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/{chainId}/simulation_bundle" \
    + "https://app.sentio.xyz/api/v1/analytics/sql/rerun_query" \
      -d ''
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    -import org.openapitools.client.api.DebugAndSimulationApi;
    +import org.openapitools.client.api.DefaultApi;
     
     import java.io.File;
     import java.util.*;
     
    -public class DebugAndSimulationApiExample {
    +public class DefaultApiExample {
         public static void main(String[] args) {
             ApiClient defaultClient = Configuration.getDefaultApiClient();
     
    @@ -21734,17 +21877,14 @@ 

    Usage and SDK Samples

    //ApiKeyAuth.setApiKeyPrefix("Token"); // Create an instance of the API class - DebugAndSimulationApi apiInstance = new DebugAndSimulationApi(); - String owner = owner_example; // String | - String slug = slug_example; // String | - String chainId = chainId_example; // String | - SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | + DefaultApi apiInstance = new DefaultApi(); + AnalyticServiceRerunSQLQueryRequest body = ; // AnalyticServiceRerunSQLQueryRequest | try { - solidity_service.SimulateTransactionBundleResponse result = apiInstance.simulateTransactionBundle(owner, slug, chainId, body); + analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery2(body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#simulateTransactionBundle"); + System.err.println("Exception when calling DefaultApi#rerunSQLQuery2"); e.printStackTrace(); } } @@ -21752,52 +21892,46 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
     
    -final String owner = new String(); // String | 
    -final String slug = new String(); // String | 
    -final String chainId = new String(); // String | 
    -final SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody body = new SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | 
    +final AnalyticServiceRerunSQLQueryRequest body = new AnalyticServiceRerunSQLQueryRequest(); // AnalyticServiceRerunSQLQueryRequest | 
     
     try {
    -    final result = await api_instance.simulateTransactionBundle(owner, slug, chainId, body);
    +    final result = await api_instance.rerunSQLQuery2(body);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->simulateTransactionBundle: $e\n');
    +    print('Exception when calling DefaultApi->rerunSQLQuery2: $e\n');
     }
     
     
    -
    -
    import org.openapitools.client.api.DebugAndSimulationApi;
    +                          
    +
    import org.openapitools.client.api.DefaultApi;
     
    -public class DebugAndSimulationApiExample {
    +public class DefaultApiExample {
         public static void main(String[] args) {
    -        DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
    -        String owner = owner_example; // String | 
    -        String slug = slug_example; // String | 
    -        String chainId = chainId_example; // String | 
    -        SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | 
    +        DefaultApi apiInstance = new DefaultApi();
    +        AnalyticServiceRerunSQLQueryRequest body = ; // AnalyticServiceRerunSQLQueryRequest | 
     
             try {
    -            solidity_service.SimulateTransactionBundleResponse result = apiInstance.simulateTransactionBundle(owner, slug, chainId, body);
    +            analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery2(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DebugAndSimulationApi#simulateTransactionBundle");
    +            System.err.println("Exception when calling DefaultApi#rerunSQLQuery2");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -21807,18 +21941,12 @@ 

    Usage and SDK Samples

    // Create an instance of the API class -DebugAndSimulationApi *apiInstance = [[DebugAndSimulationApi alloc] init]; -String *owner = owner_example; // (default to null) -String *slug = slug_example; // (default to null) -String *chainId = chainId_example; // (default to null) -SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody *body = ; // +DefaultApi *apiInstance = [[DefaultApi alloc] init]; +AnalyticServiceRerunSQLQueryRequest *body = ; // -// Run bundle simulation -[apiInstance simulateTransactionBundleWith:owner - slug:slug - chainId:chainId - body:body - completionHandler: ^(solidity_service.SimulateTransactionBundleResponse output, NSError* error) { +// deprecated +[apiInstance rerunSQLQuery2With:body + completionHandler: ^(analytic_service.RerunSQLQueryResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -21829,7 +21957,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -21840,11 +21968,8 @@ 

    Usage and SDK Samples

    //ApiKeyAuth.apiKeyPrefix['api-key'] = "Token"; // Create an instance of the API class -var api = new SentioApi.DebugAndSimulationApi() -var owner = owner_example; // {String} -var slug = slug_example; // {String} -var chainId = chainId_example; // {String} -var body = ; // {SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody} +var api = new SentioApi.DefaultApi() +var body = ; // {AnalyticServiceRerunSQLQueryRequest} var callback = function(error, data, response) { if (error) { @@ -21853,14 +21978,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.simulateTransactionBundle(owner, slug, chainId, body, callback); +api.rerunSQLQuery2(body, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -21869,7 +21994,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class simulateTransactionBundleExample + public class rerunSQLQuery2Example { public void main() { @@ -21879,18 +22004,15 @@

    Usage and SDK Samples

    // Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer"); // Create an instance of the API class - var apiInstance = new DebugAndSimulationApi(); - var owner = owner_example; // String | (default to null) - var slug = slug_example; // String | (default to null) - var chainId = chainId_example; // String | (default to null) - var body = new SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | + var apiInstance = new DefaultApi(); + var body = new AnalyticServiceRerunSQLQueryRequest(); // AnalyticServiceRerunSQLQueryRequest | try { - // Run bundle simulation - solidity_service.SimulateTransactionBundleResponse result = apiInstance.simulateTransactionBundle(owner, slug, chainId, body); + // deprecated + analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery2(body); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DebugAndSimulationApi.simulateTransactionBundle: " + e.Message ); + Debug.Print("Exception when calling DefaultApi.rerunSQLQuery2: " + e.Message ); } } } @@ -21898,7 +22020,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -21908,25 +22030,22 @@ 

    Usage and SDK Samples

    // OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer'); // Create an instance of the API class -$api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi(); -$owner = owner_example; // String | -$slug = slug_example; // String | -$chainId = chainId_example; // String | -$body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | +$api_instance = new OpenAPITools\Client\Api\DefaultApi(); +$body = ; // AnalyticServiceRerunSQLQueryRequest | try { - $result = $api_instance->simulateTransactionBundle($owner, $slug, $chainId, $body); + $result = $api_instance->rerunSQLQuery2($body); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DebugAndSimulationApi->simulateTransactionBundle: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DefaultApi->rerunSQLQuery2: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
    -use WWW::OPenAPIClient::DebugAndSimulationApi;
    +use WWW::OPenAPIClient::DefaultApi;
     
     # Configure API key authorization: ApiKeyAuth
     $WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
    @@ -21934,22 +22053,19 @@ 

    Usage and SDK Samples

    #$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer"; # Create an instance of the API class -my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new(); -my $owner = owner_example; # String | -my $slug = slug_example; # String | -my $chainId = chainId_example; # String | -my $body = WWW::OPenAPIClient::Object::SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody->new(); # SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | +my $api_instance = WWW::OPenAPIClient::DefaultApi->new(); +my $body = WWW::OPenAPIClient::Object::AnalyticServiceRerunSQLQueryRequest->new(); # AnalyticServiceRerunSQLQueryRequest | eval { - my $result = $api_instance->simulateTransactionBundle(owner => $owner, slug => $slug, chainId => $chainId, body => $body); + my $result = $api_instance->rerunSQLQuery2(body => $body); print Dumper($result); }; if ($@) { - warn "Exception when calling DebugAndSimulationApi->simulateTransactionBundle: $@\n"; + warn "Exception when calling DefaultApi->rerunSQLQuery2: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -21962,31 +22078,25 @@ 

    Usage and SDK Samples

    # openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer' # Create an instance of the API class -api_instance = openapi_client.DebugAndSimulationApi() -owner = owner_example # String | (default to null) -slug = slug_example # String | (default to null) -chainId = chainId_example # String | (default to null) -body = # SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | +api_instance = openapi_client.DefaultApi() +body = # AnalyticServiceRerunSQLQueryRequest | try: - # Run bundle simulation - api_response = api_instance.simulate_transaction_bundle(owner, slug, chainId, body) + # deprecated + api_response = api_instance.rerun_sql_query2(body) pprint(api_response) except ApiException as e: - print("Exception when calling DebugAndSimulationApi->simulateTransactionBundle: %s\n" % e)
    + print("Exception when calling DefaultApi->rerunSQLQuery2: %s\n" % e)
    -
    -
    extern crate DebugAndSimulationApi;
    +                            
    +
    extern crate DefaultApi;
     
     pub fn main() {
    -    let owner = owner_example; // String
    -    let slug = slug_example; // String
    -    let chainId = chainId_example; // String
    -    let body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody
    +    let body = ; // AnalyticServiceRerunSQLQueryRequest
     
    -    let mut context = DebugAndSimulationApi::Context::default();
    -    let result = client.simulateTransactionBundle(owner, slug, chainId, body, &context).wait();
    +    let mut context = DefaultApi::Context::default();
    +    let result = client.rerunSQLQuery2(body, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -22001,73 +22111,6 @@ 

    Scopes

    Parameters

    -
    Path parameters
    - - - - - - - - - - - - - - - - - -
    NameDescription
    owner* - - -
    -
    -
    - - String - - -
    -
    - Required -
    -
    -
    -
    slug* - - -
    -
    -
    - - String - - -
    -
    - Required -
    -
    -
    -
    chainId* - - -
    -
    -
    - - String - - -
    -
    - Required -
    -
    -
    -
    Body parameters
    @@ -22078,14 +22121,15 @@

    Parameters

    body * -

    +

    Deprecated: will drop in the future.

    -
    +
    @@ -22122,23 +22166,23 @@

    Parameters

    Responses

    -

    -

    +

    +

    -
    diff --git a/openapi.json b/openapi.json index 4a26813..bae7925 100644 --- a/openapi.json +++ b/openapi.json @@ -166,65 +166,9 @@ ] } }, - "/api/v1/analytics/sql/query_result": { - "get": { - "summary": "Query SQL Result", - "description": "Query the result of a SQL query by execution_id.", - "operationId": "QuerySQLResult2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/analytic_service.QuerySQLResultResponse" - } - } - }, - "parameters": [ - { - "name": "projectOwner", - "description": "username or organization name", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "projectSlug", - "description": "project slug", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "projectId", - "description": "use project id if project_owner and project_slug are not provided", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "version", - "description": "version of the datasource, default to the active version if not provided", - "in": "query", - "required": false, - "type": "integer", - "format": "int32" - }, - { - "name": "executionId", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "Data" - ] - } - }, "/api/v1/analytics/sql/rerun_query": { "post": { - "summary": "Rerun SQL", - "description": "Rerun your SQL query by query_id, you can also update the query and run it.\n\nIt will return execution_id, use it to query the result.", + "summary": "deprecated", "operationId": "RerunSQLQuery2", "responses": { "200": { @@ -237,56 +181,72 @@ "parameters": [ { "name": "body", + "description": "Deprecated: will drop in the future.", "in": "body", "required": true, "schema": { "$ref": "#/definitions/analytic_service.RerunSQLQueryRequest" } } - ], - "tags": [ - "Data" ] } }, - "/api/v1/analytics/sql/save_query": { + "/api/v1/analytics/{owner}/{slug}/sql/execute": { "post": { - "summary": "Save SQL", - "description": "Save your SQL query, and you can run it immediately or later.\n\nIt will return query_id, you can use it to rerun the query.\nif you enable the \"run_immediately\" field, it will run the query immediately, and return execution_id, use it to query the result.", - "operationId": "SaveSQL2", + "summary": "Execute SQL", + "description": "Execute SQL in a project. Go to \"Data Studio\" -\u003e \"SQL Editor\", write your query and then click \"Export as cURL\"\n\n![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(102).png)\n\nFind more: https://docs.sentio.xyz/reference/data#sql-api", + "operationId": "ExecuteSQL", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/analytic_service.SaveSQLResponse" + "$ref": "#/definitions/analytic_service.SyncExecuteSQLResponse" } } }, "parameters": [ + { + "name": "owner", + "description": "username or organization name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "slug", + "description": "project slug", + "in": "path", + "required": true, + "type": "string" + }, { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/analytic_service.SaveSQLRequest" + "$ref": "#/definitions/analytic_service.AnalyticService.ExecuteSQLBody" } } ], "tags": [ "Data" - ] + ], + "externalDocs": { + "description": "find more information here", + "url": "https://docs.sentio.xyz/reference/data#sql-api" + } } }, - "/api/v1/analytics/{owner}/{slug}/sql/execute": { + "/api/v1/analytics/{owner}/{slug}/sql/execute/async": { "post": { - "summary": "Execute SQL", - "description": "Execute SQL in a project. Go to \"Data Studio\" -\u003e \"SQL Editor\", write your query and then click \"Export as cURL\"\n\n![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(102).png)\n\nFind more: https://docs.sentio.xyz/reference/data#sql-api", - "operationId": "ExecuteSQL", + "summary": "Execute SQL by Async", + "description": "Execute SQL in a project asynchronously.", + "operationId": "ExecuteSQLAsync", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/analytic_service.SyncExecuteSQLResponse" + "$ref": "#/definitions/analytic_service.AsyncExecuteSQLResponse" } } }, @@ -310,20 +270,16 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/analytic_service.AnalyticService.ExecuteSQLBody" + "$ref": "#/definitions/analytic_service.AnalyticService.ExecuteSQLAsyncBody" } } ], "tags": [ "Data" - ], - "externalDocs": { - "description": "find more information here", - "url": "https://docs.sentio.xyz/reference/data#sql-api" - } + ] } }, - "/api/v1/analytics/{owner}/{slug}/sql/query_result": { + "/api/v1/analytics/{owner}/{slug}/sql/query_result/{executionId}": { "get": { "summary": "Query SQL Result", "description": "Query the result of a SQL query by execution_id.", @@ -351,6 +307,12 @@ "required": true, "type": "string" }, + { + "name": "executionId", + "in": "path", + "required": true, + "type": "string" + }, { "name": "projectId", "description": "use project id if project_owner and project_slug are not provided", @@ -365,12 +327,6 @@ "required": false, "type": "integer", "format": "int32" - }, - { - "name": "executionId", - "in": "query", - "required": false, - "type": "string" } ], "tags": [ @@ -380,8 +336,7 @@ }, "/api/v1/analytics/{owner}/{slug}/sql/rerun_query": { "post": { - "summary": "Rerun SQL", - "description": "Rerun your SQL query by query_id, you can also update the query and run it.\n\nIt will return execution_id, use it to query the result.", + "summary": "deprecated", "operationId": "RerunSQLQuery", "responses": { "200": { @@ -414,16 +369,13 @@ "$ref": "#/definitions/analytic_service.AnalyticService.RerunSQLQueryBody" } } - ], - "tags": [ - "Data" ] } }, - "/api/v1/analytics/{owner}/{slug}/sql/save_query": { + "/api/v1/analytics/{owner}/{slug}/sql/save": { "post": { "summary": "Save SQL", - "description": "Save your SQL query, and you can run it immediately or later.\n\nIt will return query_id, you can use it to rerun the query.\nif you enable the \"run_immediately\" field, it will run the query immediately, and return execution_id, use it to query the result.", + "description": "Save or update a SQL query in a project.", "operationId": "SaveSQL", "responses": { "200": { @@ -460,6 +412,46 @@ "tags": [ "Data" ] + }, + "put": { + "summary": "Save SQL", + "description": "Save or update a SQL query in a project.", + "operationId": "SaveSQL2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/analytic_service.SaveSQLResponse" + } + } + }, + "parameters": [ + { + "name": "owner", + "description": "username or organization name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "slug", + "description": "project slug", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/analytic_service.AnalyticService.SaveSQLBody" + } + } + ], + "tags": [ + "Data" + ] } }, "/api/v1/dashboards": { @@ -2939,7 +2931,7 @@ } } }, - "analytic_service.AnalyticService.ExecuteSQLBody": { + "analytic_service.AnalyticService.ExecuteSQLAsyncBody": { "type": "object", "example": { "sqlQuery": { @@ -2963,9 +2955,34 @@ "type": "string", "title": "cursor for pagination" }, - "bypassCache": { - "type": "boolean", - "title": "deprecated, use cachePolicy instead" + "cachePolicy": { + "$ref": "#/definitions/common.CachePolicy" + } + } + }, + "analytic_service.AnalyticService.ExecuteSQLBody": { + "type": "object", + "example": { + "sqlQuery": { + "sql": "SELECT uniq(distinct_id) FROM `Transfer`" + } + }, + "properties": { + "projectId": { + "type": "string", + "title": "use project id if project_owner and project_slug are not provided" + }, + "version": { + "type": "integer", + "format": "int32", + "title": "version of the datasource, default to the active version if not provided" + }, + "sqlQuery": { + "$ref": "#/definitions/analytic_service.SQLQuery" + }, + "cursor": { + "type": "string", + "title": "cursor for pagination" }, "cachePolicy": { "$ref": "#/definitions/common.CachePolicy" @@ -2990,7 +3007,8 @@ "sqlQuery": { "$ref": "#/definitions/analytic_service.SQLQuery" } - } + }, + "description": "Deprecated: will drop in the future." }, "analytic_service.AnalyticService.SaveSQLBody": { "type": "object", @@ -3009,14 +3027,24 @@ }, "source": { "$ref": "#/definitions/analytic_service.Source" + } + } + }, + "analytic_service.AsyncExecuteSQLResponse": { + "type": "object", + "properties": { + "queryId": { + "type": "string" }, - "runImmediately": { - "type": "boolean", - "title": "run the query immediately or not" + "executionId": { + "type": "string" }, - "queryId": { - "type": "string", - "title": "the query id to save the query" + "queueLength": { + "type": "integer", + "format": "int32" + }, + "executionInfo": { + "$ref": "#/definitions/analytic_service.ExecutionInfo" } } }, @@ -3152,7 +3180,8 @@ "sqlQuery": { "$ref": "#/definitions/analytic_service.SQLQuery" } - } + }, + "description": "Deprecated: will drop in the future." }, "analytic_service.RerunSQLQueryResponse": { "type": "object", @@ -3164,7 +3193,8 @@ "executionInfo": { "$ref": "#/definitions/analytic_service.ExecutionInfo" } - } + }, + "description": "Deprecated: will drop in the future." }, "analytic_service.SQLQuery": { "type": "object", @@ -3184,57 +3214,17 @@ }, "name": { "type": "string", - "title": "the name of the query" - } - } - }, - "analytic_service.SaveSQLRequest": { - "type": "object", - "properties": { - "projectOwner": { - "type": "string", - "title": "username or organization name" - }, - "projectSlug": { - "type": "string", - "title": "project slug" - }, - "projectId": { - "type": "string", - "title": "use project id if project_owner and project_slug are not provided" - }, - "version": { - "type": "integer", - "format": "int32", - "title": "version of the datasource, default to the active version if not provided" - }, - "sqlQuery": { - "$ref": "#/definitions/analytic_service.SQLQuery" - }, - "source": { - "$ref": "#/definitions/analytic_service.Source" - }, - "runImmediately": { - "type": "boolean", - "title": "run the query immediately or not" + "description": "the name of the query, if sql is empty and name not empty, the query will be fetched by the name." }, "queryId": { "type": "string", - "title": "the query id to save the query" + "description": "the id of the query, if sql and name both empty, the query will be fetched by the id." } } }, "analytic_service.SaveSQLResponse": { "type": "object", "properties": { - "queueLength": { - "type": "integer", - "format": "int32" - }, - "executionInfo": { - "$ref": "#/definitions/analytic_service.ExecutionInfo", - "title": "the execution info of the query, return nil if run_immediately is false" - }, "queryId": { "type": "string" } diff --git a/src/DataApi.md b/src/DataApi.md index 378bd4c..5b21c99 100755 --- a/src/DataApi.md +++ b/src/DataApi.md @@ -5,6 +5,7 @@ All URIs are relative to *https://app.sentio.xyz* Method | HTTP request | Description ------------- | ------------- | ------------- [**executeSQL**](DataApi.md#executeSQL) | **POST** /api/v1/analytics/{owner}/{slug}/sql/execute | Execute SQL +[**executeSQLAsync**](DataApi.md#executeSQLAsync) | **POST** /api/v1/analytics/{owner}/{slug}/sql/execute/async | Execute SQL by Async [**getMetrics**](DataApi.md#getMetrics) | **GET** /api/v1/metrics | Get a list of metrics in a project [**listCoins**](DataApi.md#listCoins) | **GET** /api/v1/insights/{owner}/{slug}/coins | List coins [**listCoins2**](DataApi.md#listCoins2) | **GET** /api/v1/insights/coins | List coins @@ -13,14 +14,11 @@ Method | HTTP request | Description [**queryLog**](DataApi.md#queryLog) | **POST** /api/v1/eventlogs/{owner}/{slug} | Query event logs [**queryLog2**](DataApi.md#queryLog2) | **GET** /api/v1/eventlogs/{owner}/{slug}/query | Query event logs [**queryRange**](DataApi.md#queryRange) | **POST** /api/v1/metrics/{owner}/{slug}/query_range | Metric range queries -[**querySQLResult**](DataApi.md#querySQLResult) | **GET** /api/v1/analytics/{owner}/{slug}/sql/query_result | Query SQL Result -[**querySQLResult2**](DataApi.md#querySQLResult2) | **GET** /api/v1/analytics/sql/query_result | Query SQL Result -[**rerunSQLQuery**](DataApi.md#rerunSQLQuery) | **POST** /api/v1/analytics/{owner}/{slug}/sql/rerun_query | Rerun SQL -[**rerunSQLQuery2**](DataApi.md#rerunSQLQuery2) | **POST** /api/v1/analytics/sql/rerun_query | Rerun SQL +[**querySQLResult**](DataApi.md#querySQLResult) | **GET** /api/v1/analytics/{owner}/{slug}/sql/query_result/{executionId} | Query SQL Result [**retention**](DataApi.md#retention) | **POST** /api/v1/insights/{owner}/{slug}/retention | Retention query [**retention2**](DataApi.md#retention2) | **POST** /api/v1/insights/retention | Retention query -[**saveSQL**](DataApi.md#saveSQL) | **POST** /api/v1/analytics/{owner}/{slug}/sql/save_query | Save SQL -[**saveSQL2**](DataApi.md#saveSQL2) | **POST** /api/v1/analytics/sql/save_query | Save SQL +[**saveSQL**](DataApi.md#saveSQL) | **POST** /api/v1/analytics/{owner}/{slug}/sql/save | Save SQL +[**saveSQL2**](DataApi.md#saveSQL2) | **PUT** /api/v1/analytics/{owner}/{slug}/sql/save | Save SQL # **executeSQL** @@ -98,9 +96,9 @@ const request: DataApiExecuteSQLRequest = { }, }, name: "name_example", + queryId: "queryId_example", }, cursor: "cursor_example", - bypassCache: true, cachePolicy: { cacheTtlSecs: 1, cacheRefreshTtlSecs: 1, @@ -138,6 +136,128 @@ Name | Type | Description | Notes - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **executeSQLAsync** +> AnalyticServiceAsyncExecuteSQLResponse executeSQLAsync(body) + +Execute SQL in a project asynchronously. + +### Example + + +```typescript +import { createConfiguration, DataApi } from ''; +import type { DataApiExecuteSQLAsyncRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new DataApi(configuration); + +const request: DataApiExecuteSQLAsyncRequest = { + // username or organization name + owner: "owner_example", + // project slug + slug: "slug_example", + + body: { + projectId: "projectId_example", + version: 1, + sqlQuery: { + sql: "sql_example", + size: 1, + parameters: { + fields: { + "key": { + nullValue: "NULL_VALUE", + intValue: 1, + floatValue: 3.14, + bytesValue: 'YQ==', + boolValue: true, + stringValue: "stringValue_example", + timestampValue: new Date('1970-01-01T00:00:00.00Z'), + bigintValue: { + negative: true, + data: 'YQ==', + }, + bigdecimalValue: { + value: { + negative: true, + data: 'YQ==', + }, + exp: 1, + }, + listValue: { + values: [ + , + ], + }, + structValue: , + tokenValue: { + token: { + symbol: "symbol_example", + address: { + address: "address_example", + chain: "chain_example", + }, + }, + amount: { + value: { + negative: true, + data: 'YQ==', + }, + exp: 1, + }, + specifiedAt: new Date('1970-01-01T00:00:00.00Z'), + }, + }, + }, + }, + name: "name_example", + queryId: "queryId_example", + }, + cursor: "cursor_example", + cachePolicy: { + cacheTtlSecs: 1, + cacheRefreshTtlSecs: 1, + forceRefresh: true, + noCache: true, + }, + }, +}; + +const data = await apiInstance.executeSQLAsync(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **AnalyticServiceAnalyticServiceExecuteSQLAsyncBody**| | + **owner** | [**string**] | username or organization name | defaults to undefined + **slug** | [**string**] | project slug | defaults to undefined + + +### Return type + +**AnalyticServiceAsyncExecuteSQLResponse** + +### Authorization + +[ApiKeyAuth](README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| @@ -1137,12 +1257,12 @@ const request: DataApiQuerySQLResultRequest = { owner: "owner_example", // project slug slug: "slug_example", + + executionId: "executionId_example", // use project id if project_owner and project_slug are not provided (optional) projectId: "projectId_example", // version of the datasource, default to the active version if not provided (optional) version: 1, - - executionId: "executionId_example", }; const data = await apiInstance.querySQLResult(request); @@ -1156,9 +1276,9 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | [**string**] | username or organization name | defaults to undefined **slug** | [**string**] | project slug | defaults to undefined + **executionId** | [**string**] | | defaults to undefined **projectId** | [**string**] | use project id if project_owner and project_slug are not provided | (optional) defaults to undefined **version** | [**number**] | version of the datasource, default to the active version if not provided | (optional) defaults to undefined - **executionId** | [**string**] | | (optional) defaults to undefined ### Return type @@ -1175,297 +1295,6 @@ Name | Type | Description | Notes - **Accept**: application/json -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A successful response. | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **querySQLResult2** -> AnalyticServiceQuerySQLResultResponse querySQLResult2() - -Query the result of a SQL query by execution_id. - -### Example - - -```typescript -import { createConfiguration, DataApi } from ''; -import type { DataApiQuerySQLResult2Request } from ''; - -const configuration = createConfiguration(); -const apiInstance = new DataApi(configuration); - -const request: DataApiQuerySQLResult2Request = { - // username or organization name (optional) - projectOwner: "projectOwner_example", - // project slug (optional) - projectSlug: "projectSlug_example", - // use project id if project_owner and project_slug are not provided (optional) - projectId: "projectId_example", - // version of the datasource, default to the active version if not provided (optional) - version: 1, - - executionId: "executionId_example", -}; - -const data = await apiInstance.querySQLResult2(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **projectOwner** | [**string**] | username or organization name | (optional) defaults to undefined - **projectSlug** | [**string**] | project slug | (optional) defaults to undefined - **projectId** | [**string**] | use project id if project_owner and project_slug are not provided | (optional) defaults to undefined - **version** | [**number**] | version of the datasource, default to the active version if not provided | (optional) defaults to undefined - **executionId** | [**string**] | | (optional) defaults to undefined - - -### Return type - -**AnalyticServiceQuerySQLResultResponse** - -### Authorization - -[ApiKeyAuth](README.md#ApiKeyAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A successful response. | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **rerunSQLQuery** -> AnalyticServiceRerunSQLQueryResponse rerunSQLQuery(body) - -Rerun your SQL query by query_id, you can also update the query and run it. It will return execution_id, use it to query the result. - -### Example - - -```typescript -import { createConfiguration, DataApi } from ''; -import type { DataApiRerunSQLQueryRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new DataApi(configuration); - -const request: DataApiRerunSQLQueryRequest = { - // username or organization name - owner: "owner_example", - // project slug - slug: "slug_example", - - body: { - projectId: "projectId_example", - version: 1, - queryId: "queryId_example", - sqlQuery: { - sql: "sql_example", - size: 1, - parameters: { - fields: { - "key": { - nullValue: "NULL_VALUE", - intValue: 1, - floatValue: 3.14, - bytesValue: 'YQ==', - boolValue: true, - stringValue: "stringValue_example", - timestampValue: new Date('1970-01-01T00:00:00.00Z'), - bigintValue: { - negative: true, - data: 'YQ==', - }, - bigdecimalValue: { - value: { - negative: true, - data: 'YQ==', - }, - exp: 1, - }, - listValue: { - values: [ - , - ], - }, - structValue: , - tokenValue: { - token: { - symbol: "symbol_example", - address: { - address: "address_example", - chain: "chain_example", - }, - }, - amount: { - value: { - negative: true, - data: 'YQ==', - }, - exp: 1, - }, - specifiedAt: new Date('1970-01-01T00:00:00.00Z'), - }, - }, - }, - }, - name: "name_example", - }, - }, -}; - -const data = await apiInstance.rerunSQLQuery(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **AnalyticServiceAnalyticServiceRerunSQLQueryBody**| | - **owner** | [**string**] | username or organization name | defaults to undefined - **slug** | [**string**] | project slug | defaults to undefined - - -### Return type - -**AnalyticServiceRerunSQLQueryResponse** - -### Authorization - -[ApiKeyAuth](README.md#ApiKeyAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A successful response. | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **rerunSQLQuery2** -> AnalyticServiceRerunSQLQueryResponse rerunSQLQuery2(body) - -Rerun your SQL query by query_id, you can also update the query and run it. It will return execution_id, use it to query the result. - -### Example - - -```typescript -import { createConfiguration, DataApi } from ''; -import type { DataApiRerunSQLQuery2Request } from ''; - -const configuration = createConfiguration(); -const apiInstance = new DataApi(configuration); - -const request: DataApiRerunSQLQuery2Request = { - - body: { - projectOwner: "projectOwner_example", - projectSlug: "projectSlug_example", - projectId: "projectId_example", - version: 1, - queryId: "queryId_example", - sqlQuery: { - sql: "sql_example", - size: 1, - parameters: { - fields: { - "key": { - nullValue: "NULL_VALUE", - intValue: 1, - floatValue: 3.14, - bytesValue: 'YQ==', - boolValue: true, - stringValue: "stringValue_example", - timestampValue: new Date('1970-01-01T00:00:00.00Z'), - bigintValue: { - negative: true, - data: 'YQ==', - }, - bigdecimalValue: { - value: { - negative: true, - data: 'YQ==', - }, - exp: 1, - }, - listValue: { - values: [ - , - ], - }, - structValue: , - tokenValue: { - token: { - symbol: "symbol_example", - address: { - address: "address_example", - chain: "chain_example", - }, - }, - amount: { - value: { - negative: true, - data: 'YQ==', - }, - exp: 1, - }, - specifiedAt: new Date('1970-01-01T00:00:00.00Z'), - }, - }, - }, - }, - name: "name_example", - }, - }, -}; - -const data = await apiInstance.rerunSQLQuery2(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **AnalyticServiceRerunSQLQueryRequest**| | - - -### Return type - -**AnalyticServiceRerunSQLQueryResponse** - -### Authorization - -[ApiKeyAuth](README.md#ApiKeyAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| @@ -1774,7 +1603,7 @@ Name | Type | Description | Notes # **saveSQL** > AnalyticServiceSaveSQLResponse saveSQL(body) -Save your SQL query, and you can run it immediately or later. It will return query_id, you can use it to rerun the query. if you enable the \"run_immediately\" field, it will run the query immediately, and return execution_id, use it to query the result. +Save or update a SQL query in a project. ### Example @@ -1846,10 +1675,9 @@ const request: DataApiSaveSQLRequest = { }, }, name: "name_example", + queryId: "queryId_example", }, source: "SQL_EDITOR", - runImmediately: true, - queryId: "queryId_example", }, }; @@ -1891,7 +1719,7 @@ Name | Type | Description | Notes # **saveSQL2** > AnalyticServiceSaveSQLResponse saveSQL2(body) -Save your SQL query, and you can run it immediately or later. It will return query_id, you can use it to rerun the query. if you enable the \"run_immediately\" field, it will run the query immediately, and return execution_id, use it to query the result. +Save or update a SQL query in a project. ### Example @@ -1904,10 +1732,12 @@ const configuration = createConfiguration(); const apiInstance = new DataApi(configuration); const request: DataApiSaveSQL2Request = { + // username or organization name + owner: "owner_example", + // project slug + slug: "slug_example", body: { - projectOwner: "projectOwner_example", - projectSlug: "projectSlug_example", projectId: "projectId_example", version: 1, sqlQuery: { @@ -1961,10 +1791,9 @@ const request: DataApiSaveSQL2Request = { }, }, name: "name_example", + queryId: "queryId_example", }, source: "SQL_EDITOR", - runImmediately: true, - queryId: "queryId_example", }, }; @@ -1977,7 +1806,9 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **AnalyticServiceSaveSQLRequest**| | + **body** | **AnalyticServiceAnalyticServiceSaveSQLBody**| | + **owner** | [**string**] | username or organization name | defaults to undefined + **slug** | [**string**] | project slug | defaults to undefined ### Return type diff --git a/src/DefaultApi.md b/src/DefaultApi.md new file mode 100755 index 0000000..5dc7b84 --- /dev/null +++ b/src/DefaultApi.md @@ -0,0 +1,237 @@ +# .DefaultApi + +All URIs are relative to *https://app.sentio.xyz* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**rerunSQLQuery**](DefaultApi.md#rerunSQLQuery) | **POST** /api/v1/analytics/{owner}/{slug}/sql/rerun_query | deprecated +[**rerunSQLQuery2**](DefaultApi.md#rerunSQLQuery2) | **POST** /api/v1/analytics/sql/rerun_query | deprecated + + +# **rerunSQLQuery** +> AnalyticServiceRerunSQLQueryResponse rerunSQLQuery(body) + + +### Example + + +```typescript +import { createConfiguration, DefaultApi } from ''; +import type { DefaultApiRerunSQLQueryRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new DefaultApi(configuration); + +const request: DefaultApiRerunSQLQueryRequest = { + // username or organization name + owner: "owner_example", + // project slug + slug: "slug_example", + + body: { + projectId: "projectId_example", + version: 1, + queryId: "queryId_example", + sqlQuery: { + sql: "sql_example", + size: 1, + parameters: { + fields: { + "key": { + nullValue: "NULL_VALUE", + intValue: 1, + floatValue: 3.14, + bytesValue: 'YQ==', + boolValue: true, + stringValue: "stringValue_example", + timestampValue: new Date('1970-01-01T00:00:00.00Z'), + bigintValue: { + negative: true, + data: 'YQ==', + }, + bigdecimalValue: { + value: { + negative: true, + data: 'YQ==', + }, + exp: 1, + }, + listValue: { + values: [ + , + ], + }, + structValue: , + tokenValue: { + token: { + symbol: "symbol_example", + address: { + address: "address_example", + chain: "chain_example", + }, + }, + amount: { + value: { + negative: true, + data: 'YQ==', + }, + exp: 1, + }, + specifiedAt: new Date('1970-01-01T00:00:00.00Z'), + }, + }, + }, + }, + name: "name_example", + queryId: "queryId_example", + }, + }, +}; + +const data = await apiInstance.rerunSQLQuery(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **AnalyticServiceAnalyticServiceRerunSQLQueryBody**| | + **owner** | [**string**] | username or organization name | defaults to undefined + **slug** | [**string**] | project slug | defaults to undefined + + +### Return type + +**AnalyticServiceRerunSQLQueryResponse** + +### Authorization + +[ApiKeyAuth](README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **rerunSQLQuery2** +> AnalyticServiceRerunSQLQueryResponse rerunSQLQuery2(body) + + +### Example + + +```typescript +import { createConfiguration, DefaultApi } from ''; +import type { DefaultApiRerunSQLQuery2Request } from ''; + +const configuration = createConfiguration(); +const apiInstance = new DefaultApi(configuration); + +const request: DefaultApiRerunSQLQuery2Request = { + // Deprecated: will drop in the future. + body: { + projectOwner: "projectOwner_example", + projectSlug: "projectSlug_example", + projectId: "projectId_example", + version: 1, + queryId: "queryId_example", + sqlQuery: { + sql: "sql_example", + size: 1, + parameters: { + fields: { + "key": { + nullValue: "NULL_VALUE", + intValue: 1, + floatValue: 3.14, + bytesValue: 'YQ==', + boolValue: true, + stringValue: "stringValue_example", + timestampValue: new Date('1970-01-01T00:00:00.00Z'), + bigintValue: { + negative: true, + data: 'YQ==', + }, + bigdecimalValue: { + value: { + negative: true, + data: 'YQ==', + }, + exp: 1, + }, + listValue: { + values: [ + , + ], + }, + structValue: , + tokenValue: { + token: { + symbol: "symbol_example", + address: { + address: "address_example", + chain: "chain_example", + }, + }, + amount: { + value: { + negative: true, + data: 'YQ==', + }, + exp: 1, + }, + specifiedAt: new Date('1970-01-01T00:00:00.00Z'), + }, + }, + }, + }, + name: "name_example", + queryId: "queryId_example", + }, + }, +}; + +const data = await apiInstance.rerunSQLQuery2(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **AnalyticServiceRerunSQLQueryRequest**| Deprecated: will drop in the future. | + + +### Return type + +**AnalyticServiceRerunSQLQueryResponse** + +### Authorization + +[ApiKeyAuth](README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + + diff --git a/src/apis/DataApi.ts b/src/apis/DataApi.ts index 4376235..807e661 100755 --- a/src/apis/DataApi.ts +++ b/src/apis/DataApi.ts @@ -8,14 +8,12 @@ import {canConsumeForm, isCodeInRange} from '../util.js'; import {SecurityAuthentication} from '../auth/auth.js'; +import { AnalyticServiceAnalyticServiceExecuteSQLAsyncBody } from '../models/AnalyticServiceAnalyticServiceExecuteSQLAsyncBody.js'; import { AnalyticServiceAnalyticServiceExecuteSQLBody } from '../models/AnalyticServiceAnalyticServiceExecuteSQLBody.js'; -import { AnalyticServiceAnalyticServiceRerunSQLQueryBody } from '../models/AnalyticServiceAnalyticServiceRerunSQLQueryBody.js'; import { AnalyticServiceAnalyticServiceSaveSQLBody } from '../models/AnalyticServiceAnalyticServiceSaveSQLBody.js'; +import { AnalyticServiceAsyncExecuteSQLResponse } from '../models/AnalyticServiceAsyncExecuteSQLResponse.js'; import { AnalyticServiceLogQueryResponse } from '../models/AnalyticServiceLogQueryResponse.js'; import { AnalyticServiceQuerySQLResultResponse } from '../models/AnalyticServiceQuerySQLResultResponse.js'; -import { AnalyticServiceRerunSQLQueryRequest } from '../models/AnalyticServiceRerunSQLQueryRequest.js'; -import { AnalyticServiceRerunSQLQueryResponse } from '../models/AnalyticServiceRerunSQLQueryResponse.js'; -import { AnalyticServiceSaveSQLRequest } from '../models/AnalyticServiceSaveSQLRequest.js'; import { AnalyticServiceSaveSQLResponse } from '../models/AnalyticServiceSaveSQLResponse.js'; import { AnalyticServiceSearchServiceQueryLogBody } from '../models/AnalyticServiceSearchServiceQueryLogBody.js'; import { AnalyticServiceSyncExecuteSQLResponse } from '../models/AnalyticServiceSyncExecuteSQLResponse.js'; @@ -100,6 +98,70 @@ export class DataApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } + /** + * Execute SQL in a project asynchronously. + * Execute SQL by Async + * @param owner username or organization name + * @param slug project slug + * @param body + */ + public async executeSQLAsync(owner: string, slug: string, body: AnalyticServiceAnalyticServiceExecuteSQLAsyncBody, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'owner' is not null or undefined + if (owner === null || owner === undefined) { + throw new RequiredError("DataApi", "executeSQLAsync", "owner"); + } + + + // verify required parameter 'slug' is not null or undefined + if (slug === null || slug === undefined) { + throw new RequiredError("DataApi", "executeSQLAsync", "slug"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("DataApi", "executeSQLAsync", "body"); + } + + + // Path Params + const localVarPath = '/api/v1/analytics/{owner}/{slug}/sql/execute/async' + .replace('{' + 'owner' + '}', encodeURIComponent(String(owner))) + .replace('{' + 'slug' + '}', encodeURIComponent(String(slug))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "AnalyticServiceAnalyticServiceExecuteSQLAsyncBody", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["ApiKeyAuth"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + /** * Get a list of metrics in a project * @param projectId @@ -733,11 +795,11 @@ export class DataApiRequestFactory extends BaseAPIRequestFactory { * Query SQL Result * @param owner username or organization name * @param slug project slug + * @param executionId * @param projectId use project id if project_owner and project_slug are not provided * @param version version of the datasource, default to the active version if not provided - * @param executionId */ - public async querySQLResult(owner: string, slug: string, projectId?: string, version?: number, executionId?: string, _options?: Configuration): Promise { + public async querySQLResult(owner: string, slug: string, executionId: string, projectId?: string, version?: number, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'owner' is not null or undefined @@ -752,83 +814,24 @@ export class DataApiRequestFactory extends BaseAPIRequestFactory { } - - - - // Path Params - const localVarPath = '/api/v1/analytics/{owner}/{slug}/sql/query_result' - .replace('{' + 'owner' + '}', encodeURIComponent(String(owner))) - .replace('{' + 'slug' + '}', encodeURIComponent(String(slug))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (projectId !== undefined) { - requestContext.setQueryParam("projectId", ObjectSerializer.serialize(projectId, "string", "")); + // verify required parameter 'executionId' is not null or undefined + if (executionId === null || executionId === undefined) { + throw new RequiredError("DataApi", "querySQLResult", "executionId"); } - // Query Params - if (version !== undefined) { - requestContext.setQueryParam("version", ObjectSerializer.serialize(version, "number", "int32")); - } - - // Query Params - if (executionId !== undefined) { - requestContext.setQueryParam("executionId", ObjectSerializer.serialize(executionId, "string", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["ApiKeyAuth"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * Query the result of a SQL query by execution_id. - * Query SQL Result - * @param projectOwner username or organization name - * @param projectSlug project slug - * @param projectId use project id if project_owner and project_slug are not provided - * @param version version of the datasource, default to the active version if not provided - * @param executionId - */ - public async querySQLResult2(projectOwner?: string, projectSlug?: string, projectId?: string, version?: number, executionId?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - - // Path Params - const localVarPath = '/api/v1/analytics/sql/query_result'; + const localVarPath = '/api/v1/analytics/{owner}/{slug}/sql/query_result/{executionId}' + .replace('{' + 'owner' + '}', encodeURIComponent(String(owner))) + .replace('{' + 'slug' + '}', encodeURIComponent(String(slug))) + .replace('{' + 'executionId' + '}', encodeURIComponent(String(executionId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - // Query Params - if (projectOwner !== undefined) { - requestContext.setQueryParam("projectOwner", ObjectSerializer.serialize(projectOwner, "string", "")); - } - - // Query Params - if (projectSlug !== undefined) { - requestContext.setQueryParam("projectSlug", ObjectSerializer.serialize(projectSlug, "string", "")); - } - // Query Params if (projectId !== undefined) { requestContext.setQueryParam("projectId", ObjectSerializer.serialize(projectId, "string", "")); @@ -839,123 +842,6 @@ export class DataApiRequestFactory extends BaseAPIRequestFactory { requestContext.setQueryParam("version", ObjectSerializer.serialize(version, "number", "int32")); } - // Query Params - if (executionId !== undefined) { - requestContext.setQueryParam("executionId", ObjectSerializer.serialize(executionId, "string", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["ApiKeyAuth"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * Rerun your SQL query by query_id, you can also update the query and run it. It will return execution_id, use it to query the result. - * Rerun SQL - * @param owner username or organization name - * @param slug project slug - * @param body - */ - public async rerunSQLQuery(owner: string, slug: string, body: AnalyticServiceAnalyticServiceRerunSQLQueryBody, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'owner' is not null or undefined - if (owner === null || owner === undefined) { - throw new RequiredError("DataApi", "rerunSQLQuery", "owner"); - } - - - // verify required parameter 'slug' is not null or undefined - if (slug === null || slug === undefined) { - throw new RequiredError("DataApi", "rerunSQLQuery", "slug"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("DataApi", "rerunSQLQuery", "body"); - } - - - // Path Params - const localVarPath = '/api/v1/analytics/{owner}/{slug}/sql/rerun_query' - .replace('{' + 'owner' + '}', encodeURIComponent(String(owner))) - .replace('{' + 'slug' + '}', encodeURIComponent(String(slug))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json" - ]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "AnalyticServiceAnalyticServiceRerunSQLQueryBody", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["ApiKeyAuth"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * Rerun your SQL query by query_id, you can also update the query and run it. It will return execution_id, use it to query the result. - * Rerun SQL - * @param body - */ - public async rerunSQLQuery2(body: AnalyticServiceRerunSQLQueryRequest, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("DataApi", "rerunSQLQuery2", "body"); - } - - - // Path Params - const localVarPath = '/api/v1/analytics/sql/rerun_query'; - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json" - ]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "AnalyticServiceRerunSQLQueryRequest", ""), - contentType - ); - requestContext.setBody(serializedBody); let authMethod: SecurityAuthentication | undefined; // Apply auth methods @@ -1085,7 +971,7 @@ export class DataApiRequestFactory extends BaseAPIRequestFactory { } /** - * Save your SQL query, and you can run it immediately or later. It will return query_id, you can use it to rerun the query. if you enable the \"run_immediately\" field, it will run the query immediately, and return execution_id, use it to query the result. + * Save or update a SQL query in a project. * Save SQL * @param owner username or organization name * @param slug project slug @@ -1113,7 +999,7 @@ export class DataApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/api/v1/analytics/{owner}/{slug}/sql/save_query' + const localVarPath = '/api/v1/analytics/{owner}/{slug}/sql/save' .replace('{' + 'owner' + '}', encodeURIComponent(String(owner))) .replace('{' + 'slug' + '}', encodeURIComponent(String(slug))); @@ -1149,13 +1035,27 @@ export class DataApiRequestFactory extends BaseAPIRequestFactory { } /** - * Save your SQL query, and you can run it immediately or later. It will return query_id, you can use it to rerun the query. if you enable the \"run_immediately\" field, it will run the query immediately, and return execution_id, use it to query the result. + * Save or update a SQL query in a project. * Save SQL + * @param owner username or organization name + * @param slug project slug * @param body */ - public async saveSQL2(body: AnalyticServiceSaveSQLRequest, _options?: Configuration): Promise { + public async saveSQL2(owner: string, slug: string, body: AnalyticServiceAnalyticServiceSaveSQLBody, _options?: Configuration): Promise { let _config = _options || this.configuration; + // verify required parameter 'owner' is not null or undefined + if (owner === null || owner === undefined) { + throw new RequiredError("DataApi", "saveSQL2", "owner"); + } + + + // verify required parameter 'slug' is not null or undefined + if (slug === null || slug === undefined) { + throw new RequiredError("DataApi", "saveSQL2", "slug"); + } + + // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { throw new RequiredError("DataApi", "saveSQL2", "body"); @@ -1163,10 +1063,12 @@ export class DataApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/api/v1/analytics/sql/save_query'; + const localVarPath = '/api/v1/analytics/{owner}/{slug}/sql/save' + .replace('{' + 'owner' + '}', encodeURIComponent(String(owner))) + .replace('{' + 'slug' + '}', encodeURIComponent(String(slug))); // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") @@ -1176,7 +1078,7 @@ export class DataApiRequestFactory extends BaseAPIRequestFactory { ]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "AnalyticServiceSaveSQLRequest", ""), + ObjectSerializer.serialize(body, "AnalyticServiceAnalyticServiceSaveSQLBody", ""), contentType ); requestContext.setBody(serializedBody); @@ -1229,6 +1131,35 @@ export class DataApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to executeSQLAsync + * @throws ApiException if the response code was not in [200, 299] + */ + public async executeSQLAsyncWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: AnalyticServiceAsyncExecuteSQLResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "AnalyticServiceAsyncExecuteSQLResponse", "" + ) as AnalyticServiceAsyncExecuteSQLResponse; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: AnalyticServiceAsyncExecuteSQLResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "AnalyticServiceAsyncExecuteSQLResponse", "" + ) as AnalyticServiceAsyncExecuteSQLResponse; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -1490,93 +1421,6 @@ export class DataApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to querySQLResult2 - * @throws ApiException if the response code was not in [200, 299] - */ - public async querySQLResult2WithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: AnalyticServiceQuerySQLResultResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "AnalyticServiceQuerySQLResultResponse", "" - ) as AnalyticServiceQuerySQLResultResponse; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: AnalyticServiceQuerySQLResultResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "AnalyticServiceQuerySQLResultResponse", "" - ) as AnalyticServiceQuerySQLResultResponse; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to rerunSQLQuery - * @throws ApiException if the response code was not in [200, 299] - */ - public async rerunSQLQueryWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: AnalyticServiceRerunSQLQueryResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "AnalyticServiceRerunSQLQueryResponse", "" - ) as AnalyticServiceRerunSQLQueryResponse; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: AnalyticServiceRerunSQLQueryResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "AnalyticServiceRerunSQLQueryResponse", "" - ) as AnalyticServiceRerunSQLQueryResponse; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to rerunSQLQuery2 - * @throws ApiException if the response code was not in [200, 299] - */ - public async rerunSQLQuery2WithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: AnalyticServiceRerunSQLQueryResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "AnalyticServiceRerunSQLQueryResponse", "" - ) as AnalyticServiceRerunSQLQueryResponse; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: AnalyticServiceRerunSQLQueryResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "AnalyticServiceRerunSQLQueryResponse", "" - ) as AnalyticServiceRerunSQLQueryResponse; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects diff --git a/src/apis/DefaultApi.ts b/src/apis/DefaultApi.ts new file mode 100755 index 0000000..1adc9da --- /dev/null +++ b/src/apis/DefaultApi.ts @@ -0,0 +1,192 @@ +// TODO: better import syntax? +import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi.js'; +import {Configuration} from '../configuration.js'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http.js'; +import {ObjectSerializer} from '../models/ObjectSerializer.js'; +import {ApiException} from './exception.js'; +import {canConsumeForm, isCodeInRange} from '../util.js'; +import {SecurityAuthentication} from '../auth/auth.js'; + + +import { AnalyticServiceAnalyticServiceRerunSQLQueryBody } from '../models/AnalyticServiceAnalyticServiceRerunSQLQueryBody.js'; +import { AnalyticServiceRerunSQLQueryRequest } from '../models/AnalyticServiceRerunSQLQueryRequest.js'; +import { AnalyticServiceRerunSQLQueryResponse } from '../models/AnalyticServiceRerunSQLQueryResponse.js'; + +/** + * no description + */ +export class DefaultApiRequestFactory extends BaseAPIRequestFactory { + + /** + * deprecated + * @param owner username or organization name + * @param slug project slug + * @param body + */ + public async rerunSQLQuery(owner: string, slug: string, body: AnalyticServiceAnalyticServiceRerunSQLQueryBody, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'owner' is not null or undefined + if (owner === null || owner === undefined) { + throw new RequiredError("DefaultApi", "rerunSQLQuery", "owner"); + } + + + // verify required parameter 'slug' is not null or undefined + if (slug === null || slug === undefined) { + throw new RequiredError("DefaultApi", "rerunSQLQuery", "slug"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("DefaultApi", "rerunSQLQuery", "body"); + } + + + // Path Params + const localVarPath = '/api/v1/analytics/{owner}/{slug}/sql/rerun_query' + .replace('{' + 'owner' + '}', encodeURIComponent(String(owner))) + .replace('{' + 'slug' + '}', encodeURIComponent(String(slug))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "AnalyticServiceAnalyticServiceRerunSQLQueryBody", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["ApiKeyAuth"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * deprecated + * @param body Deprecated: will drop in the future. + */ + public async rerunSQLQuery2(body: AnalyticServiceRerunSQLQueryRequest, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("DefaultApi", "rerunSQLQuery2", "body"); + } + + + // Path Params + const localVarPath = '/api/v1/analytics/sql/rerun_query'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "AnalyticServiceRerunSQLQueryRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["ApiKeyAuth"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + +} + +export class DefaultApiResponseProcessor { + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to rerunSQLQuery + * @throws ApiException if the response code was not in [200, 299] + */ + public async rerunSQLQueryWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: AnalyticServiceRerunSQLQueryResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "AnalyticServiceRerunSQLQueryResponse", "" + ) as AnalyticServiceRerunSQLQueryResponse; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: AnalyticServiceRerunSQLQueryResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "AnalyticServiceRerunSQLQueryResponse", "" + ) as AnalyticServiceRerunSQLQueryResponse; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to rerunSQLQuery2 + * @throws ApiException if the response code was not in [200, 299] + */ + public async rerunSQLQuery2WithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: AnalyticServiceRerunSQLQueryResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "AnalyticServiceRerunSQLQueryResponse", "" + ) as AnalyticServiceRerunSQLQueryResponse; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: AnalyticServiceRerunSQLQueryResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "AnalyticServiceRerunSQLQueryResponse", "" + ) as AnalyticServiceRerunSQLQueryResponse; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + +} diff --git a/src/index.ts b/src/index.ts index 451a5d8..063bb4b 100755 --- a/src/index.ts +++ b/src/index.ts @@ -8,5 +8,5 @@ export * from "./servers.js"; export { RequiredError } from "./apis/baseapi.js"; export type { PromiseMiddleware as Middleware } from './middleware.js'; -export { PromiseAlertsApi as AlertsApi, PromiseDataApi as DataApi, PromiseDebugAndSimulationApi as DebugAndSimulationApi, PromiseForksApi as ForksApi, PromisePriceApi as PriceApi, PromiseWebApi as WebApi } from './types/PromiseAPI.js'; +export { PromiseAlertsApi as AlertsApi, PromiseDataApi as DataApi, PromiseDebugAndSimulationApi as DebugAndSimulationApi, PromiseDefaultApi as DefaultApi, PromiseForksApi as ForksApi, PromisePriceApi as PriceApi, PromiseWebApi as WebApi } from './types/PromiseAPI.js'; diff --git a/src/models/AnalyticServiceSaveSQLRequest.ts b/src/models/AnalyticServiceAnalyticServiceExecuteSQLAsyncBody.ts similarity index 59% rename from src/models/AnalyticServiceSaveSQLRequest.ts rename to src/models/AnalyticServiceAnalyticServiceExecuteSQLAsyncBody.ts index 0cd880a..716e024 100755 --- a/src/models/AnalyticServiceSaveSQLRequest.ts +++ b/src/models/AnalyticServiceAnalyticServiceExecuteSQLAsyncBody.ts @@ -11,36 +11,21 @@ */ import { AnalyticServiceSQLQuery } from '../models/AnalyticServiceSQLQuery.js'; -import { AnalyticServiceSource } from '../models/AnalyticServiceSource.js'; +import { CommonCachePolicy } from '../models/CommonCachePolicy.js'; import { HttpFile } from '../http/http.js'; -export class AnalyticServiceSaveSQLRequest { - 'projectOwner'?: string; - 'projectSlug'?: string; +export class AnalyticServiceAnalyticServiceExecuteSQLAsyncBody { 'projectId'?: string; 'version'?: number; 'sqlQuery'?: AnalyticServiceSQLQuery; - 'source'?: AnalyticServiceSource; - 'runImmediately'?: boolean; - 'queryId'?: string; + 'cursor'?: string; + 'cachePolicy'?: CommonCachePolicy; static readonly discriminator: string | undefined = undefined; static readonly mapping: {[index: string]: string} | undefined = undefined; static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ - { - "name": "projectOwner", - "baseName": "projectOwner", - "type": "string", - "format": "" - }, - { - "name": "projectSlug", - "baseName": "projectSlug", - "type": "string", - "format": "" - }, { "name": "projectId", "baseName": "projectId", @@ -60,30 +45,22 @@ export class AnalyticServiceSaveSQLRequest { "format": "" }, { - "name": "source", - "baseName": "source", - "type": "AnalyticServiceSource", + "name": "cursor", + "baseName": "cursor", + "type": "string", "format": "" }, { - "name": "runImmediately", - "baseName": "runImmediately", - "type": "boolean", - "format": "" - }, - { - "name": "queryId", - "baseName": "queryId", - "type": "string", + "name": "cachePolicy", + "baseName": "cachePolicy", + "type": "CommonCachePolicy", "format": "" } ]; static getAttributeTypeMap() { - return AnalyticServiceSaveSQLRequest.attributeTypeMap; + return AnalyticServiceAnalyticServiceExecuteSQLAsyncBody.attributeTypeMap; } public constructor() { } } - - diff --git a/src/models/AnalyticServiceAnalyticServiceExecuteSQLBody.ts b/src/models/AnalyticServiceAnalyticServiceExecuteSQLBody.ts index 95fef61..d781f47 100755 --- a/src/models/AnalyticServiceAnalyticServiceExecuteSQLBody.ts +++ b/src/models/AnalyticServiceAnalyticServiceExecuteSQLBody.ts @@ -19,7 +19,6 @@ export class AnalyticServiceAnalyticServiceExecuteSQLBody { 'version'?: number; 'sqlQuery'?: AnalyticServiceSQLQuery; 'cursor'?: string; - 'bypassCache'?: boolean; 'cachePolicy'?: CommonCachePolicy; static readonly discriminator: string | undefined = undefined; @@ -51,12 +50,6 @@ export class AnalyticServiceAnalyticServiceExecuteSQLBody { "type": "string", "format": "" }, - { - "name": "bypassCache", - "baseName": "bypassCache", - "type": "boolean", - "format": "" - }, { "name": "cachePolicy", "baseName": "cachePolicy", diff --git a/src/models/AnalyticServiceAnalyticServiceRerunSQLQueryBody.ts b/src/models/AnalyticServiceAnalyticServiceRerunSQLQueryBody.ts index 2da428b..af145ba 100755 --- a/src/models/AnalyticServiceAnalyticServiceRerunSQLQueryBody.ts +++ b/src/models/AnalyticServiceAnalyticServiceRerunSQLQueryBody.ts @@ -13,6 +13,9 @@ import { AnalyticServiceSQLQuery } from '../models/AnalyticServiceSQLQuery.js'; import { HttpFile } from '../http/http.js'; +/** +* Deprecated: will drop in the future. +*/ export class AnalyticServiceAnalyticServiceRerunSQLQueryBody { 'projectId'?: string; 'version'?: number; diff --git a/src/models/AnalyticServiceAnalyticServiceSaveSQLBody.ts b/src/models/AnalyticServiceAnalyticServiceSaveSQLBody.ts index ed6fc8c..fa09f36 100755 --- a/src/models/AnalyticServiceAnalyticServiceSaveSQLBody.ts +++ b/src/models/AnalyticServiceAnalyticServiceSaveSQLBody.ts @@ -19,8 +19,6 @@ export class AnalyticServiceAnalyticServiceSaveSQLBody { 'version'?: number; 'sqlQuery'?: AnalyticServiceSQLQuery; 'source'?: AnalyticServiceSource; - 'runImmediately'?: boolean; - 'queryId'?: string; static readonly discriminator: string | undefined = undefined; @@ -50,18 +48,6 @@ export class AnalyticServiceAnalyticServiceSaveSQLBody { "baseName": "source", "type": "AnalyticServiceSource", "format": "" - }, - { - "name": "runImmediately", - "baseName": "runImmediately", - "type": "boolean", - "format": "" - }, - { - "name": "queryId", - "baseName": "queryId", - "type": "string", - "format": "" } ]; static getAttributeTypeMap() { diff --git a/src/models/AnalyticServiceAsyncExecuteSQLResponse.ts b/src/models/AnalyticServiceAsyncExecuteSQLResponse.ts new file mode 100755 index 0000000..a815d5a --- /dev/null +++ b/src/models/AnalyticServiceAsyncExecuteSQLResponse.ts @@ -0,0 +1,58 @@ +/** + * Sentio API + * Sentio Open API for query data + * + * OpenAPI spec version: version not set + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { AnalyticServiceExecutionInfo } from '../models/AnalyticServiceExecutionInfo.js'; +import { HttpFile } from '../http/http.js'; + +export class AnalyticServiceAsyncExecuteSQLResponse { + 'queryId'?: string; + 'executionId'?: string; + 'queueLength'?: number; + 'executionInfo'?: AnalyticServiceExecutionInfo; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "queryId", + "baseName": "queryId", + "type": "string", + "format": "" + }, + { + "name": "executionId", + "baseName": "executionId", + "type": "string", + "format": "" + }, + { + "name": "queueLength", + "baseName": "queueLength", + "type": "number", + "format": "int32" + }, + { + "name": "executionInfo", + "baseName": "executionInfo", + "type": "AnalyticServiceExecutionInfo", + "format": "" + } ]; + + static getAttributeTypeMap() { + return AnalyticServiceAsyncExecuteSQLResponse.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/models/AnalyticServiceRerunSQLQueryRequest.ts b/src/models/AnalyticServiceRerunSQLQueryRequest.ts index 98db61c..e8f8e9e 100755 --- a/src/models/AnalyticServiceRerunSQLQueryRequest.ts +++ b/src/models/AnalyticServiceRerunSQLQueryRequest.ts @@ -13,6 +13,9 @@ import { AnalyticServiceSQLQuery } from '../models/AnalyticServiceSQLQuery.js'; import { HttpFile } from '../http/http.js'; +/** +* Deprecated: will drop in the future. +*/ export class AnalyticServiceRerunSQLQueryRequest { 'projectOwner'?: string; 'projectSlug'?: string; diff --git a/src/models/AnalyticServiceRerunSQLQueryResponse.ts b/src/models/AnalyticServiceRerunSQLQueryResponse.ts index 66c09b7..8ec1ab7 100755 --- a/src/models/AnalyticServiceRerunSQLQueryResponse.ts +++ b/src/models/AnalyticServiceRerunSQLQueryResponse.ts @@ -13,6 +13,9 @@ import { AnalyticServiceExecutionInfo } from '../models/AnalyticServiceExecutionInfo.js'; import { HttpFile } from '../http/http.js'; +/** +* Deprecated: will drop in the future. +*/ export class AnalyticServiceRerunSQLQueryResponse { 'queueLength'?: number; 'executionInfo'?: AnalyticServiceExecutionInfo; diff --git a/src/models/AnalyticServiceSQLQuery.ts b/src/models/AnalyticServiceSQLQuery.ts index 3230ee0..8109252 100755 --- a/src/models/AnalyticServiceSQLQuery.ts +++ b/src/models/AnalyticServiceSQLQuery.ts @@ -17,7 +17,14 @@ export class AnalyticServiceSQLQuery { 'sql'?: string; 'size'?: number; 'parameters'?: CommonRichStruct; + /** + * the name of the query, if sql is empty and name not empty, the query will be fetched by the name. + */ 'name'?: string; + /** + * the id of the query, if sql and name both empty, the query will be fetched by the id. + */ + 'queryId'?: string; static readonly discriminator: string | undefined = undefined; @@ -47,6 +54,12 @@ export class AnalyticServiceSQLQuery { "baseName": "name", "type": "string", "format": "" + }, + { + "name": "queryId", + "baseName": "queryId", + "type": "string", + "format": "" } ]; static getAttributeTypeMap() { diff --git a/src/models/AnalyticServiceSaveSQLResponse.ts b/src/models/AnalyticServiceSaveSQLResponse.ts index 6a03329..efd0a88 100755 --- a/src/models/AnalyticServiceSaveSQLResponse.ts +++ b/src/models/AnalyticServiceSaveSQLResponse.ts @@ -10,12 +10,9 @@ * Do not edit the class manually. */ -import { AnalyticServiceExecutionInfo } from '../models/AnalyticServiceExecutionInfo.js'; import { HttpFile } from '../http/http.js'; export class AnalyticServiceSaveSQLResponse { - 'queueLength'?: number; - 'executionInfo'?: AnalyticServiceExecutionInfo; 'queryId'?: string; static readonly discriminator: string | undefined = undefined; @@ -23,18 +20,6 @@ export class AnalyticServiceSaveSQLResponse { static readonly mapping: {[index: string]: string} | undefined = undefined; static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ - { - "name": "queueLength", - "baseName": "queueLength", - "type": "number", - "format": "int32" - }, - { - "name": "executionInfo", - "baseName": "executionInfo", - "type": "AnalyticServiceExecutionInfo", - "format": "" - }, { "name": "queryId", "baseName": "queryId", diff --git a/src/models/ObjectSerializer.ts b/src/models/ObjectSerializer.ts index b37b508..0368ee7 100755 --- a/src/models/ObjectSerializer.ts +++ b/src/models/ObjectSerializer.ts @@ -13,9 +13,11 @@ export * from '../models/AlertServiceLogCondition.js'; export * from '../models/AlertServiceMute.js'; export * from '../models/AlertServiceSample.js'; export * from '../models/AlertServiceSaveAlertRuleRequest.js'; +export * from '../models/AnalyticServiceAnalyticServiceExecuteSQLAsyncBody.js'; export * from '../models/AnalyticServiceAnalyticServiceExecuteSQLBody.js'; export * from '../models/AnalyticServiceAnalyticServiceRerunSQLQueryBody.js'; export * from '../models/AnalyticServiceAnalyticServiceSaveSQLBody.js'; +export * from '../models/AnalyticServiceAsyncExecuteSQLResponse.js'; export * from '../models/AnalyticServiceExecutionInfo.js'; export * from '../models/AnalyticServiceExecutionStatus.js'; export * from '../models/AnalyticServiceLogQueryRequestFilter.js'; @@ -25,7 +27,6 @@ export * from '../models/AnalyticServiceQuerySQLResultResponse.js'; export * from '../models/AnalyticServiceRerunSQLQueryRequest.js'; export * from '../models/AnalyticServiceRerunSQLQueryResponse.js'; export * from '../models/AnalyticServiceSQLQuery.js'; -export * from '../models/AnalyticServiceSaveSQLRequest.js'; export * from '../models/AnalyticServiceSaveSQLResponse.js'; export * from '../models/AnalyticServiceSearchServiceQueryLogBody.js'; export * from '../models/AnalyticServiceSource.js'; @@ -273,9 +274,11 @@ import { AlertServiceLogCondition } from '../models/AlertServiceLogCondition.js' import { AlertServiceMute } from '../models/AlertServiceMute.js'; import { AlertServiceSample } from '../models/AlertServiceSample.js'; import { AlertServiceSaveAlertRuleRequest } from '../models/AlertServiceSaveAlertRuleRequest.js'; +import { AnalyticServiceAnalyticServiceExecuteSQLAsyncBody } from '../models/AnalyticServiceAnalyticServiceExecuteSQLAsyncBody.js'; import { AnalyticServiceAnalyticServiceExecuteSQLBody } from '../models/AnalyticServiceAnalyticServiceExecuteSQLBody.js'; import { AnalyticServiceAnalyticServiceRerunSQLQueryBody } from '../models/AnalyticServiceAnalyticServiceRerunSQLQueryBody.js'; -import { AnalyticServiceAnalyticServiceSaveSQLBody } from '../models/AnalyticServiceAnalyticServiceSaveSQLBody.js'; +import { AnalyticServiceAnalyticServiceSaveSQLBody } from '../models/AnalyticServiceAnalyticServiceSaveSQLBody.js'; +import { AnalyticServiceAsyncExecuteSQLResponse } from '../models/AnalyticServiceAsyncExecuteSQLResponse.js'; import { AnalyticServiceExecutionInfo } from '../models/AnalyticServiceExecutionInfo.js'; import { AnalyticServiceExecutionStatus } from '../models/AnalyticServiceExecutionStatus.js'; import { AnalyticServiceLogQueryRequestFilter } from '../models/AnalyticServiceLogQueryRequestFilter.js'; @@ -285,7 +288,6 @@ import { AnalyticServiceQuerySQLResultResponse } from '../models/AnalyticService import { AnalyticServiceRerunSQLQueryRequest } from '../models/AnalyticServiceRerunSQLQueryRequest.js'; import { AnalyticServiceRerunSQLQueryResponse } from '../models/AnalyticServiceRerunSQLQueryResponse.js'; import { AnalyticServiceSQLQuery } from '../models/AnalyticServiceSQLQuery.js'; -import { AnalyticServiceSaveSQLRequest } from '../models/AnalyticServiceSaveSQLRequest.js'; import { AnalyticServiceSaveSQLResponse } from '../models/AnalyticServiceSaveSQLResponse.js'; import { AnalyticServiceSearchServiceQueryLogBody } from '../models/AnalyticServiceSearchServiceQueryLogBody.js'; import { AnalyticServiceSource } from '../models/AnalyticServiceSource.js'; @@ -588,9 +590,11 @@ let typeMap: {[index: string]: any} = { "AlertServiceMute": AlertServiceMute, "AlertServiceSample": AlertServiceSample, "AlertServiceSaveAlertRuleRequest": AlertServiceSaveAlertRuleRequest, + "AnalyticServiceAnalyticServiceExecuteSQLAsyncBody": AnalyticServiceAnalyticServiceExecuteSQLAsyncBody, "AnalyticServiceAnalyticServiceExecuteSQLBody": AnalyticServiceAnalyticServiceExecuteSQLBody, "AnalyticServiceAnalyticServiceRerunSQLQueryBody": AnalyticServiceAnalyticServiceRerunSQLQueryBody, "AnalyticServiceAnalyticServiceSaveSQLBody": AnalyticServiceAnalyticServiceSaveSQLBody, + "AnalyticServiceAsyncExecuteSQLResponse": AnalyticServiceAsyncExecuteSQLResponse, "AnalyticServiceExecutionInfo": AnalyticServiceExecutionInfo, "AnalyticServiceLogQueryRequestFilter": AnalyticServiceLogQueryRequestFilter, "AnalyticServiceLogQueryRequestSort": AnalyticServiceLogQueryRequestSort, @@ -599,7 +603,6 @@ let typeMap: {[index: string]: any} = { "AnalyticServiceRerunSQLQueryRequest": AnalyticServiceRerunSQLQueryRequest, "AnalyticServiceRerunSQLQueryResponse": AnalyticServiceRerunSQLQueryResponse, "AnalyticServiceSQLQuery": AnalyticServiceSQLQuery, - "AnalyticServiceSaveSQLRequest": AnalyticServiceSaveSQLRequest, "AnalyticServiceSaveSQLResponse": AnalyticServiceSaveSQLResponse, "AnalyticServiceSearchServiceQueryLogBody": AnalyticServiceSearchServiceQueryLogBody, "AnalyticServiceSyncExecuteSQLResponse": AnalyticServiceSyncExecuteSQLResponse, diff --git a/src/models/all.ts b/src/models/all.ts index 4b3d1b8..80c86ed 100755 --- a/src/models/all.ts +++ b/src/models/all.ts @@ -13,9 +13,11 @@ export * from '../models/AlertServiceLogCondition.js' export * from '../models/AlertServiceMute.js' export * from '../models/AlertServiceSample.js' export * from '../models/AlertServiceSaveAlertRuleRequest.js' +export * from '../models/AnalyticServiceAnalyticServiceExecuteSQLAsyncBody.js' export * from '../models/AnalyticServiceAnalyticServiceExecuteSQLBody.js' export * from '../models/AnalyticServiceAnalyticServiceRerunSQLQueryBody.js' export * from '../models/AnalyticServiceAnalyticServiceSaveSQLBody.js' +export * from '../models/AnalyticServiceAsyncExecuteSQLResponse.js' export * from '../models/AnalyticServiceExecutionInfo.js' export * from '../models/AnalyticServiceExecutionStatus.js' export * from '../models/AnalyticServiceLogQueryRequestFilter.js' @@ -25,7 +27,6 @@ export * from '../models/AnalyticServiceQuerySQLResultResponse.js' export * from '../models/AnalyticServiceRerunSQLQueryRequest.js' export * from '../models/AnalyticServiceRerunSQLQueryResponse.js' export * from '../models/AnalyticServiceSQLQuery.js' -export * from '../models/AnalyticServiceSaveSQLRequest.js' export * from '../models/AnalyticServiceSaveSQLResponse.js' export * from '../models/AnalyticServiceSearchServiceQueryLogBody.js' export * from '../models/AnalyticServiceSource.js' diff --git a/src/types/ObjectParamAPI.ts b/src/types/ObjectParamAPI.ts index 51dc265..f7c8a52 100755 --- a/src/types/ObjectParamAPI.ts +++ b/src/types/ObjectParamAPI.ts @@ -16,9 +16,11 @@ import { AlertServiceLogCondition } from '../models/AlertServiceLogCondition.js' import { AlertServiceMute } from '../models/AlertServiceMute.js'; import { AlertServiceSample } from '../models/AlertServiceSample.js'; import { AlertServiceSaveAlertRuleRequest } from '../models/AlertServiceSaveAlertRuleRequest.js'; +import { AnalyticServiceAnalyticServiceExecuteSQLAsyncBody } from '../models/AnalyticServiceAnalyticServiceExecuteSQLAsyncBody.js'; import { AnalyticServiceAnalyticServiceExecuteSQLBody } from '../models/AnalyticServiceAnalyticServiceExecuteSQLBody.js'; import { AnalyticServiceAnalyticServiceRerunSQLQueryBody } from '../models/AnalyticServiceAnalyticServiceRerunSQLQueryBody.js'; import { AnalyticServiceAnalyticServiceSaveSQLBody } from '../models/AnalyticServiceAnalyticServiceSaveSQLBody.js'; +import { AnalyticServiceAsyncExecuteSQLResponse } from '../models/AnalyticServiceAsyncExecuteSQLResponse.js'; import { AnalyticServiceExecutionInfo } from '../models/AnalyticServiceExecutionInfo.js'; import { AnalyticServiceExecutionStatus } from '../models/AnalyticServiceExecutionStatus.js'; import { AnalyticServiceLogQueryRequestFilter } from '../models/AnalyticServiceLogQueryRequestFilter.js'; @@ -28,7 +30,6 @@ import { AnalyticServiceQuerySQLResultResponse } from '../models/AnalyticService import { AnalyticServiceRerunSQLQueryRequest } from '../models/AnalyticServiceRerunSQLQueryRequest.js'; import { AnalyticServiceRerunSQLQueryResponse } from '../models/AnalyticServiceRerunSQLQueryResponse.js'; import { AnalyticServiceSQLQuery } from '../models/AnalyticServiceSQLQuery.js'; -import { AnalyticServiceSaveSQLRequest } from '../models/AnalyticServiceSaveSQLRequest.js'; import { AnalyticServiceSaveSQLResponse } from '../models/AnalyticServiceSaveSQLResponse.js'; import { AnalyticServiceSearchServiceQueryLogBody } from '../models/AnalyticServiceSearchServiceQueryLogBody.js'; import { AnalyticServiceSource } from '../models/AnalyticServiceSource.js'; @@ -448,6 +449,29 @@ export interface DataApiExecuteSQLRequest { body: AnalyticServiceAnalyticServiceExecuteSQLBody } +export interface DataApiExecuteSQLAsyncRequest { + /** + * username or organization name + * Defaults to: undefined + * @type string + * @memberof DataApiexecuteSQLAsync + */ + owner: string + /** + * project slug + * Defaults to: undefined + * @type string + * @memberof DataApiexecuteSQLAsync + */ + slug: string + /** + * + * @type AnalyticServiceAnalyticServiceExecuteSQLAsyncBody + * @memberof DataApiexecuteSQLAsync + */ + body: AnalyticServiceAnalyticServiceExecuteSQLAsyncBody +} + export interface DataApiGetMetricsRequest { /** * @@ -819,97 +843,27 @@ export interface DataApiQuerySQLResultRequest { * @memberof DataApiquerySQLResult */ slug: string - /** - * use project id if project_owner and project_slug are not provided - * Defaults to: undefined - * @type string - * @memberof DataApiquerySQLResult - */ - projectId?: string - /** - * version of the datasource, default to the active version if not provided - * Defaults to: undefined - * @type number - * @memberof DataApiquerySQLResult - */ - version?: number /** * * Defaults to: undefined * @type string * @memberof DataApiquerySQLResult */ - executionId?: string -} - -export interface DataApiQuerySQLResult2Request { - /** - * username or organization name - * Defaults to: undefined - * @type string - * @memberof DataApiquerySQLResult2 - */ - projectOwner?: string - /** - * project slug - * Defaults to: undefined - * @type string - * @memberof DataApiquerySQLResult2 - */ - projectSlug?: string + executionId: string /** * use project id if project_owner and project_slug are not provided * Defaults to: undefined * @type string - * @memberof DataApiquerySQLResult2 + * @memberof DataApiquerySQLResult */ projectId?: string /** * version of the datasource, default to the active version if not provided * Defaults to: undefined * @type number - * @memberof DataApiquerySQLResult2 + * @memberof DataApiquerySQLResult */ version?: number - /** - * - * Defaults to: undefined - * @type string - * @memberof DataApiquerySQLResult2 - */ - executionId?: string -} - -export interface DataApiRerunSQLQueryRequest { - /** - * username or organization name - * Defaults to: undefined - * @type string - * @memberof DataApirerunSQLQuery - */ - owner: string - /** - * project slug - * Defaults to: undefined - * @type string - * @memberof DataApirerunSQLQuery - */ - slug: string - /** - * - * @type AnalyticServiceAnalyticServiceRerunSQLQueryBody - * @memberof DataApirerunSQLQuery - */ - body: AnalyticServiceAnalyticServiceRerunSQLQueryBody -} - -export interface DataApiRerunSQLQuery2Request { - /** - * - * @type AnalyticServiceRerunSQLQueryRequest - * @memberof DataApirerunSQLQuery2 - */ - body: AnalyticServiceRerunSQLQueryRequest } export interface DataApiRetentionRequest { @@ -968,12 +922,26 @@ export interface DataApiSaveSQLRequest { } export interface DataApiSaveSQL2Request { + /** + * username or organization name + * Defaults to: undefined + * @type string + * @memberof DataApisaveSQL2 + */ + owner: string + /** + * project slug + * Defaults to: undefined + * @type string + * @memberof DataApisaveSQL2 + */ + slug: string /** * - * @type AnalyticServiceSaveSQLRequest + * @type AnalyticServiceAnalyticServiceSaveSQLBody * @memberof DataApisaveSQL2 */ - body: AnalyticServiceSaveSQLRequest + body: AnalyticServiceAnalyticServiceSaveSQLBody } export class ObjectDataApi { @@ -1001,6 +969,24 @@ export class ObjectDataApi { return this.api.executeSQL(param.owner, param.slug, param.body, options).toPromise(); } + /** + * Execute SQL in a project asynchronously. + * Execute SQL by Async + * @param param the request object + */ + public executeSQLAsyncWithHttpInfo(param: DataApiExecuteSQLAsyncRequest, options?: Configuration): Promise> { + return this.api.executeSQLAsyncWithHttpInfo(param.owner, param.slug, param.body, options).toPromise(); + } + + /** + * Execute SQL in a project asynchronously. + * Execute SQL by Async + * @param param the request object + */ + public executeSQLAsync(param: DataApiExecuteSQLAsyncRequest, options?: Configuration): Promise { + return this.api.executeSQLAsync(param.owner, param.slug, param.body, options).toPromise(); + } + /** * Get a list of metrics in a project * @param param the request object @@ -1143,7 +1129,7 @@ export class ObjectDataApi { * @param param the request object */ public querySQLResultWithHttpInfo(param: DataApiQuerySQLResultRequest, options?: Configuration): Promise> { - return this.api.querySQLResultWithHttpInfo(param.owner, param.slug, param.projectId, param.version, param.executionId, options).toPromise(); + return this.api.querySQLResultWithHttpInfo(param.owner, param.slug, param.executionId, param.projectId, param.version, options).toPromise(); } /** @@ -1152,61 +1138,7 @@ export class ObjectDataApi { * @param param the request object */ public querySQLResult(param: DataApiQuerySQLResultRequest, options?: Configuration): Promise { - return this.api.querySQLResult(param.owner, param.slug, param.projectId, param.version, param.executionId, options).toPromise(); - } - - /** - * Query the result of a SQL query by execution_id. - * Query SQL Result - * @param param the request object - */ - public querySQLResult2WithHttpInfo(param: DataApiQuerySQLResult2Request = {}, options?: Configuration): Promise> { - return this.api.querySQLResult2WithHttpInfo(param.projectOwner, param.projectSlug, param.projectId, param.version, param.executionId, options).toPromise(); - } - - /** - * Query the result of a SQL query by execution_id. - * Query SQL Result - * @param param the request object - */ - public querySQLResult2(param: DataApiQuerySQLResult2Request = {}, options?: Configuration): Promise { - return this.api.querySQLResult2(param.projectOwner, param.projectSlug, param.projectId, param.version, param.executionId, options).toPromise(); - } - - /** - * Rerun your SQL query by query_id, you can also update the query and run it. It will return execution_id, use it to query the result. - * Rerun SQL - * @param param the request object - */ - public rerunSQLQueryWithHttpInfo(param: DataApiRerunSQLQueryRequest, options?: Configuration): Promise> { - return this.api.rerunSQLQueryWithHttpInfo(param.owner, param.slug, param.body, options).toPromise(); - } - - /** - * Rerun your SQL query by query_id, you can also update the query and run it. It will return execution_id, use it to query the result. - * Rerun SQL - * @param param the request object - */ - public rerunSQLQuery(param: DataApiRerunSQLQueryRequest, options?: Configuration): Promise { - return this.api.rerunSQLQuery(param.owner, param.slug, param.body, options).toPromise(); - } - - /** - * Rerun your SQL query by query_id, you can also update the query and run it. It will return execution_id, use it to query the result. - * Rerun SQL - * @param param the request object - */ - public rerunSQLQuery2WithHttpInfo(param: DataApiRerunSQLQuery2Request, options?: Configuration): Promise> { - return this.api.rerunSQLQuery2WithHttpInfo(param.body, options).toPromise(); - } - - /** - * Rerun your SQL query by query_id, you can also update the query and run it. It will return execution_id, use it to query the result. - * Rerun SQL - * @param param the request object - */ - public rerunSQLQuery2(param: DataApiRerunSQLQuery2Request, options?: Configuration): Promise { - return this.api.rerunSQLQuery2(param.body, options).toPromise(); + return this.api.querySQLResult(param.owner, param.slug, param.executionId, param.projectId, param.version, options).toPromise(); } /** @@ -1246,7 +1178,7 @@ export class ObjectDataApi { } /** - * Save your SQL query, and you can run it immediately or later. It will return query_id, you can use it to rerun the query. if you enable the \"run_immediately\" field, it will run the query immediately, and return execution_id, use it to query the result. + * Save or update a SQL query in a project. * Save SQL * @param param the request object */ @@ -1255,7 +1187,7 @@ export class ObjectDataApi { } /** - * Save your SQL query, and you can run it immediately or later. It will return query_id, you can use it to rerun the query. if you enable the \"run_immediately\" field, it will run the query immediately, and return execution_id, use it to query the result. + * Save or update a SQL query in a project. * Save SQL * @param param the request object */ @@ -1264,21 +1196,21 @@ export class ObjectDataApi { } /** - * Save your SQL query, and you can run it immediately or later. It will return query_id, you can use it to rerun the query. if you enable the \"run_immediately\" field, it will run the query immediately, and return execution_id, use it to query the result. + * Save or update a SQL query in a project. * Save SQL * @param param the request object */ public saveSQL2WithHttpInfo(param: DataApiSaveSQL2Request, options?: Configuration): Promise> { - return this.api.saveSQL2WithHttpInfo(param.body, options).toPromise(); + return this.api.saveSQL2WithHttpInfo(param.owner, param.slug, param.body, options).toPromise(); } /** - * Save your SQL query, and you can run it immediately or later. It will return query_id, you can use it to rerun the query. if you enable the \"run_immediately\" field, it will run the query immediately, and return execution_id, use it to query the result. + * Save or update a SQL query in a project. * Save SQL * @param param the request object */ public saveSQL2(param: DataApiSaveSQL2Request, options?: Configuration): Promise { - return this.api.saveSQL2(param.body, options).toPromise(); + return this.api.saveSQL2(param.owner, param.slug, param.body, options).toPromise(); } } @@ -1862,6 +1794,82 @@ export class ObjectDebugAndSimulationApi { } +import { ObservableDefaultApi } from "./ObservableAPI.js"; +import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi.js"; + +export interface DefaultApiRerunSQLQueryRequest { + /** + * username or organization name + * Defaults to: undefined + * @type string + * @memberof DefaultApirerunSQLQuery + */ + owner: string + /** + * project slug + * Defaults to: undefined + * @type string + * @memberof DefaultApirerunSQLQuery + */ + slug: string + /** + * + * @type AnalyticServiceAnalyticServiceRerunSQLQueryBody + * @memberof DefaultApirerunSQLQuery + */ + body: AnalyticServiceAnalyticServiceRerunSQLQueryBody +} + +export interface DefaultApiRerunSQLQuery2Request { + /** + * Deprecated: will drop in the future. + * @type AnalyticServiceRerunSQLQueryRequest + * @memberof DefaultApirerunSQLQuery2 + */ + body: AnalyticServiceRerunSQLQueryRequest +} + +export class ObjectDefaultApi { + private api: ObservableDefaultApi + + public constructor(configuration: Configuration, requestFactory?: DefaultApiRequestFactory, responseProcessor?: DefaultApiResponseProcessor) { + this.api = new ObservableDefaultApi(configuration, requestFactory, responseProcessor); + } + + /** + * deprecated + * @param param the request object + */ + public rerunSQLQueryWithHttpInfo(param: DefaultApiRerunSQLQueryRequest, options?: Configuration): Promise> { + return this.api.rerunSQLQueryWithHttpInfo(param.owner, param.slug, param.body, options).toPromise(); + } + + /** + * deprecated + * @param param the request object + */ + public rerunSQLQuery(param: DefaultApiRerunSQLQueryRequest, options?: Configuration): Promise { + return this.api.rerunSQLQuery(param.owner, param.slug, param.body, options).toPromise(); + } + + /** + * deprecated + * @param param the request object + */ + public rerunSQLQuery2WithHttpInfo(param: DefaultApiRerunSQLQuery2Request, options?: Configuration): Promise> { + return this.api.rerunSQLQuery2WithHttpInfo(param.body, options).toPromise(); + } + + /** + * deprecated + * @param param the request object + */ + public rerunSQLQuery2(param: DefaultApiRerunSQLQuery2Request, options?: Configuration): Promise { + return this.api.rerunSQLQuery2(param.body, options).toPromise(); + } + +} + import { ObservableForksApi } from "./ObservableAPI.js"; import { ForksApiRequestFactory, ForksApiResponseProcessor} from "../apis/ForksApi.js"; diff --git a/src/types/ObservableAPI.ts b/src/types/ObservableAPI.ts index 6d12a72..68b2cfa 100755 --- a/src/types/ObservableAPI.ts +++ b/src/types/ObservableAPI.ts @@ -17,9 +17,11 @@ import { AlertServiceLogCondition } from '../models/AlertServiceLogCondition.js' import { AlertServiceMute } from '../models/AlertServiceMute.js'; import { AlertServiceSample } from '../models/AlertServiceSample.js'; import { AlertServiceSaveAlertRuleRequest } from '../models/AlertServiceSaveAlertRuleRequest.js'; +import { AnalyticServiceAnalyticServiceExecuteSQLAsyncBody } from '../models/AnalyticServiceAnalyticServiceExecuteSQLAsyncBody.js'; import { AnalyticServiceAnalyticServiceExecuteSQLBody } from '../models/AnalyticServiceAnalyticServiceExecuteSQLBody.js'; import { AnalyticServiceAnalyticServiceRerunSQLQueryBody } from '../models/AnalyticServiceAnalyticServiceRerunSQLQueryBody.js'; import { AnalyticServiceAnalyticServiceSaveSQLBody } from '../models/AnalyticServiceAnalyticServiceSaveSQLBody.js'; +import { AnalyticServiceAsyncExecuteSQLResponse } from '../models/AnalyticServiceAsyncExecuteSQLResponse.js'; import { AnalyticServiceExecutionInfo } from '../models/AnalyticServiceExecutionInfo.js'; import { AnalyticServiceExecutionStatus } from '../models/AnalyticServiceExecutionStatus.js'; import { AnalyticServiceLogQueryRequestFilter } from '../models/AnalyticServiceLogQueryRequestFilter.js'; @@ -29,7 +31,6 @@ import { AnalyticServiceQuerySQLResultResponse } from '../models/AnalyticService import { AnalyticServiceRerunSQLQueryRequest } from '../models/AnalyticServiceRerunSQLQueryRequest.js'; import { AnalyticServiceRerunSQLQueryResponse } from '../models/AnalyticServiceRerunSQLQueryResponse.js'; import { AnalyticServiceSQLQuery } from '../models/AnalyticServiceSQLQuery.js'; -import { AnalyticServiceSaveSQLRequest } from '../models/AnalyticServiceSaveSQLRequest.js'; import { AnalyticServiceSaveSQLResponse } from '../models/AnalyticServiceSaveSQLResponse.js'; import { AnalyticServiceSearchServiceQueryLogBody } from '../models/AnalyticServiceSearchServiceQueryLogBody.js'; import { AnalyticServiceSource } from '../models/AnalyticServiceSource.js'; @@ -494,6 +495,43 @@ export class ObservableDataApi { return this.executeSQLWithHttpInfo(owner, slug, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } + /** + * Execute SQL in a project asynchronously. + * Execute SQL by Async + * @param owner username or organization name + * @param slug project slug + * @param body + */ + public executeSQLAsyncWithHttpInfo(owner: string, slug: string, body: AnalyticServiceAnalyticServiceExecuteSQLAsyncBody, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.executeSQLAsync(owner, slug, body, _options); + + // build promise chain + let middlewarePreObservable = from(requestContextPromise); + for (const middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); + } + + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + pipe(mergeMap((response: ResponseContext) => { + let middlewarePostObservable = of(response); + for (const middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.executeSQLAsyncWithHttpInfo(rsp))); + })); + } + + /** + * Execute SQL in a project asynchronously. + * Execute SQL by Async + * @param owner username or organization name + * @param slug project slug + * @param body + */ + public executeSQLAsync(owner: string, slug: string, body: AnalyticServiceAnalyticServiceExecuteSQLAsyncBody, _options?: Configuration): Observable { + return this.executeSQLAsyncWithHttpInfo(owner, slug, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * Get a list of metrics in a project * @param [projectId] @@ -835,12 +873,12 @@ export class ObservableDataApi { * Query SQL Result * @param owner username or organization name * @param slug project slug + * @param executionId * @param [projectId] use project id if project_owner and project_slug are not provided * @param [version] version of the datasource, default to the active version if not provided - * @param [executionId] */ - public querySQLResultWithHttpInfo(owner: string, slug: string, projectId?: string, version?: number, executionId?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.querySQLResult(owner, slug, projectId, version, executionId, _options); + public querySQLResultWithHttpInfo(owner: string, slug: string, executionId: string, projectId?: string, version?: number, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.querySQLResult(owner, slug, executionId, projectId, version, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -863,123 +901,12 @@ export class ObservableDataApi { * Query SQL Result * @param owner username or organization name * @param slug project slug + * @param executionId * @param [projectId] use project id if project_owner and project_slug are not provided * @param [version] version of the datasource, default to the active version if not provided - * @param [executionId] - */ - public querySQLResult(owner: string, slug: string, projectId?: string, version?: number, executionId?: string, _options?: Configuration): Observable { - return this.querySQLResultWithHttpInfo(owner, slug, projectId, version, executionId, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); - } - - /** - * Query the result of a SQL query by execution_id. - * Query SQL Result - * @param [projectOwner] username or organization name - * @param [projectSlug] project slug - * @param [projectId] use project id if project_owner and project_slug are not provided - * @param [version] version of the datasource, default to the active version if not provided - * @param [executionId] - */ - public querySQLResult2WithHttpInfo(projectOwner?: string, projectSlug?: string, projectId?: string, version?: number, executionId?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.querySQLResult2(projectOwner, projectSlug, projectId, version, executionId, _options); - - // build promise chain - let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { - middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); - } - - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). - pipe(mergeMap((response: ResponseContext) => { - let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { - middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); - } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.querySQLResult2WithHttpInfo(rsp))); - })); - } - - /** - * Query the result of a SQL query by execution_id. - * Query SQL Result - * @param [projectOwner] username or organization name - * @param [projectSlug] project slug - * @param [projectId] use project id if project_owner and project_slug are not provided - * @param [version] version of the datasource, default to the active version if not provided - * @param [executionId] - */ - public querySQLResult2(projectOwner?: string, projectSlug?: string, projectId?: string, version?: number, executionId?: string, _options?: Configuration): Observable { - return this.querySQLResult2WithHttpInfo(projectOwner, projectSlug, projectId, version, executionId, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); - } - - /** - * Rerun your SQL query by query_id, you can also update the query and run it. It will return execution_id, use it to query the result. - * Rerun SQL - * @param owner username or organization name - * @param slug project slug - * @param body - */ - public rerunSQLQueryWithHttpInfo(owner: string, slug: string, body: AnalyticServiceAnalyticServiceRerunSQLQueryBody, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.rerunSQLQuery(owner, slug, body, _options); - - // build promise chain - let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { - middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); - } - - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). - pipe(mergeMap((response: ResponseContext) => { - let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { - middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); - } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.rerunSQLQueryWithHttpInfo(rsp))); - })); - } - - /** - * Rerun your SQL query by query_id, you can also update the query and run it. It will return execution_id, use it to query the result. - * Rerun SQL - * @param owner username or organization name - * @param slug project slug - * @param body - */ - public rerunSQLQuery(owner: string, slug: string, body: AnalyticServiceAnalyticServiceRerunSQLQueryBody, _options?: Configuration): Observable { - return this.rerunSQLQueryWithHttpInfo(owner, slug, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); - } - - /** - * Rerun your SQL query by query_id, you can also update the query and run it. It will return execution_id, use it to query the result. - * Rerun SQL - * @param body - */ - public rerunSQLQuery2WithHttpInfo(body: AnalyticServiceRerunSQLQueryRequest, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.rerunSQLQuery2(body, _options); - - // build promise chain - let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { - middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); - } - - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). - pipe(mergeMap((response: ResponseContext) => { - let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { - middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); - } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.rerunSQLQuery2WithHttpInfo(rsp))); - })); - } - - /** - * Rerun your SQL query by query_id, you can also update the query and run it. It will return execution_id, use it to query the result. - * Rerun SQL - * @param body */ - public rerunSQLQuery2(body: AnalyticServiceRerunSQLQueryRequest, _options?: Configuration): Observable { - return this.rerunSQLQuery2WithHttpInfo(body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + public querySQLResult(owner: string, slug: string, executionId: string, projectId?: string, version?: number, _options?: Configuration): Observable { + return this.querySQLResultWithHttpInfo(owner, slug, executionId, projectId, version, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** @@ -1053,7 +980,7 @@ export class ObservableDataApi { } /** - * Save your SQL query, and you can run it immediately or later. It will return query_id, you can use it to rerun the query. if you enable the \"run_immediately\" field, it will run the query immediately, and return execution_id, use it to query the result. + * Save or update a SQL query in a project. * Save SQL * @param owner username or organization name * @param slug project slug @@ -1079,7 +1006,7 @@ export class ObservableDataApi { } /** - * Save your SQL query, and you can run it immediately or later. It will return query_id, you can use it to rerun the query. if you enable the \"run_immediately\" field, it will run the query immediately, and return execution_id, use it to query the result. + * Save or update a SQL query in a project. * Save SQL * @param owner username or organization name * @param slug project slug @@ -1090,12 +1017,14 @@ export class ObservableDataApi { } /** - * Save your SQL query, and you can run it immediately or later. It will return query_id, you can use it to rerun the query. if you enable the \"run_immediately\" field, it will run the query immediately, and return execution_id, use it to query the result. + * Save or update a SQL query in a project. * Save SQL + * @param owner username or organization name + * @param slug project slug * @param body */ - public saveSQL2WithHttpInfo(body: AnalyticServiceSaveSQLRequest, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.saveSQL2(body, _options); + public saveSQL2WithHttpInfo(owner: string, slug: string, body: AnalyticServiceAnalyticServiceSaveSQLBody, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.saveSQL2(owner, slug, body, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -1114,12 +1043,14 @@ export class ObservableDataApi { } /** - * Save your SQL query, and you can run it immediately or later. It will return query_id, you can use it to rerun the query. if you enable the \"run_immediately\" field, it will run the query immediately, and return execution_id, use it to query the result. + * Save or update a SQL query in a project. * Save SQL + * @param owner username or organization name + * @param slug project slug * @param body */ - public saveSQL2(body: AnalyticServiceSaveSQLRequest, _options?: Configuration): Observable { - return this.saveSQL2WithHttpInfo(body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + public saveSQL2(owner: string, slug: string, body: AnalyticServiceAnalyticServiceSaveSQLBody, _options?: Configuration): Observable { + return this.saveSQL2WithHttpInfo(owner, slug, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } } @@ -1521,6 +1452,90 @@ export class ObservableDebugAndSimulationApi { } +import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi.js"; +export class ObservableDefaultApi { + private requestFactory: DefaultApiRequestFactory; + private responseProcessor: DefaultApiResponseProcessor; + private configuration: Configuration; + + public constructor( + configuration: Configuration, + requestFactory?: DefaultApiRequestFactory, + responseProcessor?: DefaultApiResponseProcessor + ) { + this.configuration = configuration; + this.requestFactory = requestFactory || new DefaultApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new DefaultApiResponseProcessor(); + } + + /** + * deprecated + * @param owner username or organization name + * @param slug project slug + * @param body + */ + public rerunSQLQueryWithHttpInfo(owner: string, slug: string, body: AnalyticServiceAnalyticServiceRerunSQLQueryBody, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.rerunSQLQuery(owner, slug, body, _options); + + // build promise chain + let middlewarePreObservable = from(requestContextPromise); + for (const middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); + } + + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + pipe(mergeMap((response: ResponseContext) => { + let middlewarePostObservable = of(response); + for (const middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.rerunSQLQueryWithHttpInfo(rsp))); + })); + } + + /** + * deprecated + * @param owner username or organization name + * @param slug project slug + * @param body + */ + public rerunSQLQuery(owner: string, slug: string, body: AnalyticServiceAnalyticServiceRerunSQLQueryBody, _options?: Configuration): Observable { + return this.rerunSQLQueryWithHttpInfo(owner, slug, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * deprecated + * @param body Deprecated: will drop in the future. + */ + public rerunSQLQuery2WithHttpInfo(body: AnalyticServiceRerunSQLQueryRequest, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.rerunSQLQuery2(body, _options); + + // build promise chain + let middlewarePreObservable = from(requestContextPromise); + for (const middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); + } + + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + pipe(mergeMap((response: ResponseContext) => { + let middlewarePostObservable = of(response); + for (const middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.rerunSQLQuery2WithHttpInfo(rsp))); + })); + } + + /** + * deprecated + * @param body Deprecated: will drop in the future. + */ + public rerunSQLQuery2(body: AnalyticServiceRerunSQLQueryRequest, _options?: Configuration): Observable { + return this.rerunSQLQuery2WithHttpInfo(body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + +} + import { ForksApiRequestFactory, ForksApiResponseProcessor} from "../apis/ForksApi.js"; export class ObservableForksApi { private requestFactory: ForksApiRequestFactory; diff --git a/src/types/PromiseAPI.ts b/src/types/PromiseAPI.ts index 33607b1..fc47ede 100755 --- a/src/types/PromiseAPI.ts +++ b/src/types/PromiseAPI.ts @@ -16,9 +16,11 @@ import { AlertServiceLogCondition } from '../models/AlertServiceLogCondition.js' import { AlertServiceMute } from '../models/AlertServiceMute.js'; import { AlertServiceSample } from '../models/AlertServiceSample.js'; import { AlertServiceSaveAlertRuleRequest } from '../models/AlertServiceSaveAlertRuleRequest.js'; +import { AnalyticServiceAnalyticServiceExecuteSQLAsyncBody } from '../models/AnalyticServiceAnalyticServiceExecuteSQLAsyncBody.js'; import { AnalyticServiceAnalyticServiceExecuteSQLBody } from '../models/AnalyticServiceAnalyticServiceExecuteSQLBody.js'; import { AnalyticServiceAnalyticServiceRerunSQLQueryBody } from '../models/AnalyticServiceAnalyticServiceRerunSQLQueryBody.js'; import { AnalyticServiceAnalyticServiceSaveSQLBody } from '../models/AnalyticServiceAnalyticServiceSaveSQLBody.js'; +import { AnalyticServiceAsyncExecuteSQLResponse } from '../models/AnalyticServiceAsyncExecuteSQLResponse.js'; import { AnalyticServiceExecutionInfo } from '../models/AnalyticServiceExecutionInfo.js'; import { AnalyticServiceExecutionStatus } from '../models/AnalyticServiceExecutionStatus.js'; import { AnalyticServiceLogQueryRequestFilter } from '../models/AnalyticServiceLogQueryRequestFilter.js'; @@ -28,7 +30,6 @@ import { AnalyticServiceQuerySQLResultResponse } from '../models/AnalyticService import { AnalyticServiceRerunSQLQueryRequest } from '../models/AnalyticServiceRerunSQLQueryRequest.js'; import { AnalyticServiceRerunSQLQueryResponse } from '../models/AnalyticServiceRerunSQLQueryResponse.js'; import { AnalyticServiceSQLQuery } from '../models/AnalyticServiceSQLQuery.js'; -import { AnalyticServiceSaveSQLRequest } from '../models/AnalyticServiceSaveSQLRequest.js'; import { AnalyticServiceSaveSQLResponse } from '../models/AnalyticServiceSaveSQLResponse.js'; import { AnalyticServiceSearchServiceQueryLogBody } from '../models/AnalyticServiceSearchServiceQueryLogBody.js'; import { AnalyticServiceSource } from '../models/AnalyticServiceSource.js'; @@ -413,6 +414,30 @@ export class PromiseDataApi { return result.toPromise(); } + /** + * Execute SQL in a project asynchronously. + * Execute SQL by Async + * @param owner username or organization name + * @param slug project slug + * @param body + */ + public executeSQLAsyncWithHttpInfo(owner: string, slug: string, body: AnalyticServiceAnalyticServiceExecuteSQLAsyncBody, _options?: Configuration): Promise> { + const result = this.api.executeSQLAsyncWithHttpInfo(owner, slug, body, _options); + return result.toPromise(); + } + + /** + * Execute SQL in a project asynchronously. + * Execute SQL by Async + * @param owner username or organization name + * @param slug project slug + * @param body + */ + public executeSQLAsync(owner: string, slug: string, body: AnalyticServiceAnalyticServiceExecuteSQLAsyncBody, _options?: Configuration): Promise { + const result = this.api.executeSQLAsync(owner, slug, body, _options); + return result.toPromise(); + } + /** * Get a list of metrics in a project * @param [projectId] @@ -650,12 +675,12 @@ export class PromiseDataApi { * Query SQL Result * @param owner username or organization name * @param slug project slug + * @param executionId * @param [projectId] use project id if project_owner and project_slug are not provided * @param [version] version of the datasource, default to the active version if not provided - * @param [executionId] */ - public querySQLResultWithHttpInfo(owner: string, slug: string, projectId?: string, version?: number, executionId?: string, _options?: Configuration): Promise> { - const result = this.api.querySQLResultWithHttpInfo(owner, slug, projectId, version, executionId, _options); + public querySQLResultWithHttpInfo(owner: string, slug: string, executionId: string, projectId?: string, version?: number, _options?: Configuration): Promise> { + const result = this.api.querySQLResultWithHttpInfo(owner, slug, executionId, projectId, version, _options); return result.toPromise(); } @@ -664,84 +689,12 @@ export class PromiseDataApi { * Query SQL Result * @param owner username or organization name * @param slug project slug + * @param executionId * @param [projectId] use project id if project_owner and project_slug are not provided * @param [version] version of the datasource, default to the active version if not provided - * @param [executionId] - */ - public querySQLResult(owner: string, slug: string, projectId?: string, version?: number, executionId?: string, _options?: Configuration): Promise { - const result = this.api.querySQLResult(owner, slug, projectId, version, executionId, _options); - return result.toPromise(); - } - - /** - * Query the result of a SQL query by execution_id. - * Query SQL Result - * @param [projectOwner] username or organization name - * @param [projectSlug] project slug - * @param [projectId] use project id if project_owner and project_slug are not provided - * @param [version] version of the datasource, default to the active version if not provided - * @param [executionId] - */ - public querySQLResult2WithHttpInfo(projectOwner?: string, projectSlug?: string, projectId?: string, version?: number, executionId?: string, _options?: Configuration): Promise> { - const result = this.api.querySQLResult2WithHttpInfo(projectOwner, projectSlug, projectId, version, executionId, _options); - return result.toPromise(); - } - - /** - * Query the result of a SQL query by execution_id. - * Query SQL Result - * @param [projectOwner] username or organization name - * @param [projectSlug] project slug - * @param [projectId] use project id if project_owner and project_slug are not provided - * @param [version] version of the datasource, default to the active version if not provided - * @param [executionId] - */ - public querySQLResult2(projectOwner?: string, projectSlug?: string, projectId?: string, version?: number, executionId?: string, _options?: Configuration): Promise { - const result = this.api.querySQLResult2(projectOwner, projectSlug, projectId, version, executionId, _options); - return result.toPromise(); - } - - /** - * Rerun your SQL query by query_id, you can also update the query and run it. It will return execution_id, use it to query the result. - * Rerun SQL - * @param owner username or organization name - * @param slug project slug - * @param body - */ - public rerunSQLQueryWithHttpInfo(owner: string, slug: string, body: AnalyticServiceAnalyticServiceRerunSQLQueryBody, _options?: Configuration): Promise> { - const result = this.api.rerunSQLQueryWithHttpInfo(owner, slug, body, _options); - return result.toPromise(); - } - - /** - * Rerun your SQL query by query_id, you can also update the query and run it. It will return execution_id, use it to query the result. - * Rerun SQL - * @param owner username or organization name - * @param slug project slug - * @param body - */ - public rerunSQLQuery(owner: string, slug: string, body: AnalyticServiceAnalyticServiceRerunSQLQueryBody, _options?: Configuration): Promise { - const result = this.api.rerunSQLQuery(owner, slug, body, _options); - return result.toPromise(); - } - - /** - * Rerun your SQL query by query_id, you can also update the query and run it. It will return execution_id, use it to query the result. - * Rerun SQL - * @param body */ - public rerunSQLQuery2WithHttpInfo(body: AnalyticServiceRerunSQLQueryRequest, _options?: Configuration): Promise> { - const result = this.api.rerunSQLQuery2WithHttpInfo(body, _options); - return result.toPromise(); - } - - /** - * Rerun your SQL query by query_id, you can also update the query and run it. It will return execution_id, use it to query the result. - * Rerun SQL - * @param body - */ - public rerunSQLQuery2(body: AnalyticServiceRerunSQLQueryRequest, _options?: Configuration): Promise { - const result = this.api.rerunSQLQuery2(body, _options); + public querySQLResult(owner: string, slug: string, executionId: string, projectId?: string, version?: number, _options?: Configuration): Promise { + const result = this.api.querySQLResult(owner, slug, executionId, projectId, version, _options); return result.toPromise(); } @@ -790,7 +743,7 @@ export class PromiseDataApi { } /** - * Save your SQL query, and you can run it immediately or later. It will return query_id, you can use it to rerun the query. if you enable the \"run_immediately\" field, it will run the query immediately, and return execution_id, use it to query the result. + * Save or update a SQL query in a project. * Save SQL * @param owner username or organization name * @param slug project slug @@ -802,7 +755,7 @@ export class PromiseDataApi { } /** - * Save your SQL query, and you can run it immediately or later. It will return query_id, you can use it to rerun the query. if you enable the \"run_immediately\" field, it will run the query immediately, and return execution_id, use it to query the result. + * Save or update a SQL query in a project. * Save SQL * @param owner username or organization name * @param slug project slug @@ -814,22 +767,26 @@ export class PromiseDataApi { } /** - * Save your SQL query, and you can run it immediately or later. It will return query_id, you can use it to rerun the query. if you enable the \"run_immediately\" field, it will run the query immediately, and return execution_id, use it to query the result. + * Save or update a SQL query in a project. * Save SQL + * @param owner username or organization name + * @param slug project slug * @param body */ - public saveSQL2WithHttpInfo(body: AnalyticServiceSaveSQLRequest, _options?: Configuration): Promise> { - const result = this.api.saveSQL2WithHttpInfo(body, _options); + public saveSQL2WithHttpInfo(owner: string, slug: string, body: AnalyticServiceAnalyticServiceSaveSQLBody, _options?: Configuration): Promise> { + const result = this.api.saveSQL2WithHttpInfo(owner, slug, body, _options); return result.toPromise(); } /** - * Save your SQL query, and you can run it immediately or later. It will return query_id, you can use it to rerun the query. if you enable the \"run_immediately\" field, it will run the query immediately, and return execution_id, use it to query the result. + * Save or update a SQL query in a project. * Save SQL + * @param owner username or organization name + * @param slug project slug * @param body */ - public saveSQL2(body: AnalyticServiceSaveSQLRequest, _options?: Configuration): Promise { - const result = this.api.saveSQL2(body, _options); + public saveSQL2(owner: string, slug: string, body: AnalyticServiceAnalyticServiceSaveSQLBody, _options?: Configuration): Promise { + const result = this.api.saveSQL2(owner, slug, body, _options); return result.toPromise(); } @@ -1119,6 +1076,65 @@ export class PromiseDebugAndSimulationApi { +import { ObservableDefaultApi } from './ObservableAPI.js'; + +import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi.js"; +export class PromiseDefaultApi { + private api: ObservableDefaultApi + + public constructor( + configuration: Configuration, + requestFactory?: DefaultApiRequestFactory, + responseProcessor?: DefaultApiResponseProcessor + ) { + this.api = new ObservableDefaultApi(configuration, requestFactory, responseProcessor); + } + + /** + * deprecated + * @param owner username or organization name + * @param slug project slug + * @param body + */ + public rerunSQLQueryWithHttpInfo(owner: string, slug: string, body: AnalyticServiceAnalyticServiceRerunSQLQueryBody, _options?: Configuration): Promise> { + const result = this.api.rerunSQLQueryWithHttpInfo(owner, slug, body, _options); + return result.toPromise(); + } + + /** + * deprecated + * @param owner username or organization name + * @param slug project slug + * @param body + */ + public rerunSQLQuery(owner: string, slug: string, body: AnalyticServiceAnalyticServiceRerunSQLQueryBody, _options?: Configuration): Promise { + const result = this.api.rerunSQLQuery(owner, slug, body, _options); + return result.toPromise(); + } + + /** + * deprecated + * @param body Deprecated: will drop in the future. + */ + public rerunSQLQuery2WithHttpInfo(body: AnalyticServiceRerunSQLQueryRequest, _options?: Configuration): Promise> { + const result = this.api.rerunSQLQuery2WithHttpInfo(body, _options); + return result.toPromise(); + } + + /** + * deprecated + * @param body Deprecated: will drop in the future. + */ + public rerunSQLQuery2(body: AnalyticServiceRerunSQLQueryRequest, _options?: Configuration): Promise { + const result = this.api.rerunSQLQuery2(body, _options); + return result.toPromise(); + } + + +} + + + import { ObservableForksApi } from './ObservableAPI.js'; import { ForksApiRequestFactory, ForksApiResponseProcessor} from "../apis/ForksApi.js";