From 861ad41960cd9e687e43e690ea5f5574abf572e6 Mon Sep 17 00:00:00 2001 From: Sentio Bot Date: Fri, 29 Nov 2024 09:16:07 +0000 Subject: [PATCH] chore: update --- doc/index.html | 10253 +++++++++++++++++----------------- openapi.json | 4 + src/AlertsApi.md | 53 + src/DefaultApi.md | 62 - src/apis/AlertsApi.ts | 66 + src/apis/DefaultApi.ts | 86 - src/index.ts | 2 +- src/types/ObjectParamAPI.ts | 62 +- src/types/ObservableAPI.ts | 78 +- src/types/PromiseAPI.ts | 53 +- 10 files changed, 5325 insertions(+), 5394 deletions(-) delete mode 100755 src/DefaultApi.md delete mode 100755 src/apis/DefaultApi.ts diff --git a/doc/index.html b/doc/index.html index 3372b73..2faeb1a 100755 --- a/doc/index.html +++ b/doc/index.html @@ -5630,6 +5630,9 @@ +
  • + deleteAlertRule +
  • getAlert
  • @@ -5722,10 +5725,6 @@
  • simulateTransactionBundle
  • - -
  • - deleteAlertRule -
  • createFork @@ -5824,11 +5823,11 @@

    API and SDK Documentation

    Alerts

    -
    -
    +
    +
    -

    getAlert

    -

    Find an alert rule by id, and list all alerts for this rule

    +

    deleteAlertRule

    +

    Delete an alert rule

    @@ -5836,35 +5835,35 @@

    getAlert


    -
    /api/v1/alerts/{ruleId}
    +
    /api/v1/alerts/rule/{id}

    Usage and SDK Samples

    -
    -
    curl -X GET \
    +                          
    +
    curl -X DELETE \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
    - "https://app.sentio.xyz/api/v1/alerts/{ruleId}?page=56&pageSize=56"
    + "https://app.sentio.xyz/api/v1/alerts/rule/{id}"
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -5885,15 +5884,13 @@ 

    Usage and SDK Samples

    // Create an instance of the API class AlertsApi apiInstance = new AlertsApi(); - String ruleId = ruleId_example; // String | - Integer page = 56; // Integer | - Integer pageSize = 56; // Integer | + String id = id_example; // String | try { - alert_service.GetAlertResponse result = apiInstance.getAlert(ruleId, page, pageSize); + Object result = apiInstance.deleteAlertRule(id); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AlertsApi#getAlert"); + System.err.println("Exception when calling AlertsApi#deleteAlertRule"); e.printStackTrace(); } } @@ -5901,50 +5898,46 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
     
    -final String ruleId = new String(); // String | 
    -final Integer page = new Integer(); // Integer | 
    -final Integer pageSize = new Integer(); // Integer | 
    +final String id = new String(); // String | 
     
     try {
    -    final result = await api_instance.getAlert(ruleId, page, pageSize);
    +    final result = await api_instance.deleteAlertRule(id);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->getAlert: $e\n');
    +    print('Exception when calling DefaultApi->deleteAlertRule: $e\n');
     }
     
     
    -
    +
    import org.openapitools.client.api.AlertsApi;
     
     public class AlertsApiExample {
         public static void main(String[] args) {
             AlertsApi apiInstance = new AlertsApi();
    -        String ruleId = ruleId_example; // String | 
    -        Integer page = 56; // Integer | 
    -        Integer pageSize = 56; // Integer | 
    +        String id = id_example; // String | 
     
             try {
    -            alert_service.GetAlertResponse result = apiInstance.getAlert(ruleId, page, pageSize);
    +            Object result = apiInstance.deleteAlertRule(id);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling AlertsApi#getAlert");
    +            System.err.println("Exception when calling AlertsApi#deleteAlertRule");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -5955,15 +5948,11 @@ 

    Usage and SDK Samples

    // Create an instance of the API class AlertsApi *apiInstance = [[AlertsApi alloc] init]; -String *ruleId = ruleId_example; // (default to null) -Integer *page = 56; // (optional) (default to null) -Integer *pageSize = 56; // (optional) (default to null) +String *id = id_example; // (default to null) -// Find an alert rule by id, and list all alerts for this rule -[apiInstance getAlertWith:ruleId - page:page - pageSize:pageSize - completionHandler: ^(alert_service.GetAlertResponse output, NSError* error) { +// Delete an alert rule +[apiInstance deleteAlertRuleWith:id + completionHandler: ^(Object output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -5974,7 +5963,7 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    // Create an instance of the API class var api = new SentioApi.AlertsApi() -var ruleId = ruleId_example; // {String} -var opts = { - 'page': 56, // {Integer} - 'pageSize': 56 // {Integer} -}; +var id = id_example; // {String} var callback = function(error, data, response) { if (error) { @@ -5999,14 +5984,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.getAlert(ruleId, opts, callback); +api.deleteAlertRule(id, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -6015,7 +6000,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class getAlertExample + public class deleteAlertRuleExample { public void main() { @@ -6026,16 +6011,14 @@

    Usage and SDK Samples

    // Create an instance of the API class var apiInstance = new AlertsApi(); - var ruleId = ruleId_example; // String | (default to null) - var page = 56; // Integer | (optional) (default to null) - var pageSize = 56; // Integer | (optional) (default to null) + var id = id_example; // String | (default to null) try { - // Find an alert rule by id, and list all alerts for this rule - alert_service.GetAlertResponse result = apiInstance.getAlert(ruleId, page, pageSize); + // Delete an alert rule + Object result = apiInstance.deleteAlertRule(id); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling AlertsApi.getAlert: " + e.Message ); + Debug.Print("Exception when calling AlertsApi.deleteAlertRule: " + e.Message ); } } } @@ -6043,7 +6026,7 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\AlertsApi(); -$ruleId = ruleId_example; // String | -$page = 56; // Integer | -$pageSize = 56; // Integer | +$id = id_example; // String | try { - $result = $api_instance->getAlert($ruleId, $page, $pageSize); + $result = $api_instance->deleteAlertRule($id); print_r($result); } catch (Exception $e) { - echo 'Exception when calling AlertsApi->getAlert: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling AlertsApi->deleteAlertRule: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::AlertsApi;
    @@ -6079,20 +6060,18 @@ 

    Usage and SDK Samples

    # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::AlertsApi->new(); -my $ruleId = ruleId_example; # String | -my $page = 56; # Integer | -my $pageSize = 56; # Integer | +my $id = id_example; # String | eval { - my $result = $api_instance->getAlert(ruleId => $ruleId, page => $page, pageSize => $pageSize); + my $result = $api_instance->deleteAlertRule(id => $id); print Dumper($result); }; if ($@) { - warn "Exception when calling AlertsApi->getAlert: $@\n"; + warn "Exception when calling AlertsApi->deleteAlertRule: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -6106,28 +6085,24 @@ 

    Usage and SDK Samples

    # Create an instance of the API class api_instance = openapi_client.AlertsApi() -ruleId = ruleId_example # String | (default to null) -page = 56 # Integer | (optional) (default to null) -pageSize = 56 # Integer | (optional) (default to null) +id = id_example # String | (default to null) try: - # Find an alert rule by id, and list all alerts for this rule - api_response = api_instance.get_alert(ruleId, page=page, pageSize=pageSize) + # Delete an alert rule + api_response = api_instance.delete_alert_rule(id) pprint(api_response) except ApiException as e: - print("Exception when calling AlertsApi->getAlert: %s\n" % e)
    + print("Exception when calling AlertsApi->deleteAlertRule: %s\n" % e)
    -
    +
    extern crate AlertsApi;
     
     pub fn main() {
    -    let ruleId = ruleId_example; // String
    -    let page = 56; // Integer
    -    let pageSize = 56; // Integer
    +    let id = id_example; // String
     
         let mut context = AlertsApi::Context::default();
    -    let result = client.getAlert(ruleId, page, pageSize, &context).wait();
    +    let result = client.deleteAlertRule(id, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -6148,11 +6123,11 @@ 

    Parameters

    Name Description - ruleId* + id* -
    +
    @@ -6173,72 +6148,25 @@

    Parameters

    -
    Query parameters
    - - - - - - - - - - - - - -
    NameDescription
    page - - -
    -
    -
    - - Integer - - - (int32) - - -
    -
    -
    -
    pageSize - - -
    -
    -
    - - Integer - - - (int32) - - -
    -
    -
    -

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    getAlertRules

    -

    List all alert rules for a project

    +

    getAlert

    +

    Find an alert rule by id, and list all alerts for this rule

    @@ -6313,35 +6241,35 @@

    getAlertRules


    -
    /api/v1/alerts/rule/project/{projectId}
    +
    /api/v1/alerts/{ruleId}

    Usage and SDK Samples

    -
    +
    curl -X GET \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
    - "https://app.sentio.xyz/api/v1/alerts/rule/project/{projectId}"
    + "https://app.sentio.xyz/api/v1/alerts/{ruleId}?page=56&pageSize=56"
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -6362,13 +6290,15 @@ 

    Usage and SDK Samples

    // Create an instance of the API class AlertsApi apiInstance = new AlertsApi(); - String projectId = projectId_example; // String | + String ruleId = ruleId_example; // String | + Integer page = 56; // Integer | + Integer pageSize = 56; // Integer | try { - alert_service.GetAlertRulesResponse result = apiInstance.getAlertRules(projectId); + alert_service.GetAlertResponse result = apiInstance.getAlert(ruleId, page, pageSize); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AlertsApi#getAlertRules"); + System.err.println("Exception when calling AlertsApi#getAlert"); e.printStackTrace(); } } @@ -6376,46 +6306,50 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
     
    -final String projectId = new String(); // String | 
    +final String ruleId = new String(); // String | 
    +final Integer page = new Integer(); // Integer | 
    +final Integer pageSize = new Integer(); // Integer | 
     
     try {
    -    final result = await api_instance.getAlertRules(projectId);
    +    final result = await api_instance.getAlert(ruleId, page, pageSize);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->getAlertRules: $e\n');
    +    print('Exception when calling DefaultApi->getAlert: $e\n');
     }
     
     
    -
    +
    import org.openapitools.client.api.AlertsApi;
     
     public class AlertsApiExample {
         public static void main(String[] args) {
             AlertsApi apiInstance = new AlertsApi();
    -        String projectId = projectId_example; // String | 
    +        String ruleId = ruleId_example; // String | 
    +        Integer page = 56; // Integer | 
    +        Integer pageSize = 56; // Integer | 
     
             try {
    -            alert_service.GetAlertRulesResponse result = apiInstance.getAlertRules(projectId);
    +            alert_service.GetAlertResponse result = apiInstance.getAlert(ruleId, page, pageSize);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling AlertsApi#getAlertRules");
    +            System.err.println("Exception when calling AlertsApi#getAlert");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -6426,11 +6360,15 @@ 

    Usage and SDK Samples

    // Create an instance of the API class AlertsApi *apiInstance = [[AlertsApi alloc] init]; -String *projectId = projectId_example; // (default to null) +String *ruleId = ruleId_example; // (default to null) +Integer *page = 56; // (optional) (default to null) +Integer *pageSize = 56; // (optional) (default to null) -// List all alert rules for a project -[apiInstance getAlertRulesWith:projectId - completionHandler: ^(alert_service.GetAlertRulesResponse output, NSError* error) { +// Find an alert rule by id, and list all alerts for this rule +[apiInstance getAlertWith:ruleId + page:page + pageSize:pageSize + completionHandler: ^(alert_service.GetAlertResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -6441,7 +6379,7 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    // Create an instance of the API class var api = new SentioApi.AlertsApi() -var projectId = projectId_example; // {String} +var ruleId = ruleId_example; // {String} +var opts = { + 'page': 56, // {Integer} + 'pageSize': 56 // {Integer} +}; var callback = function(error, data, response) { if (error) { @@ -6462,14 +6404,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.getAlertRules(projectId, callback); +api.getAlert(ruleId, opts, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -6478,7 +6420,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class getAlertRulesExample + public class getAlertExample { public void main() { @@ -6489,14 +6431,16 @@

    Usage and SDK Samples

    // Create an instance of the API class var apiInstance = new AlertsApi(); - var projectId = projectId_example; // String | (default to null) + var ruleId = ruleId_example; // String | (default to null) + var page = 56; // Integer | (optional) (default to null) + var pageSize = 56; // Integer | (optional) (default to null) try { - // List all alert rules for a project - alert_service.GetAlertRulesResponse result = apiInstance.getAlertRules(projectId); + // Find an alert rule by id, and list all alerts for this rule + alert_service.GetAlertResponse result = apiInstance.getAlert(ruleId, page, pageSize); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling AlertsApi.getAlertRules: " + e.Message ); + Debug.Print("Exception when calling AlertsApi.getAlert: " + e.Message ); } } } @@ -6504,7 +6448,7 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\AlertsApi(); -$projectId = projectId_example; // String | +$ruleId = ruleId_example; // String | +$page = 56; // Integer | +$pageSize = 56; // Integer | try { - $result = $api_instance->getAlertRules($projectId); + $result = $api_instance->getAlert($ruleId, $page, $pageSize); print_r($result); } catch (Exception $e) { - echo 'Exception when calling AlertsApi->getAlertRules: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling AlertsApi->getAlert: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::AlertsApi;
    @@ -6538,18 +6484,20 @@ 

    Usage and SDK Samples

    # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::AlertsApi->new(); -my $projectId = projectId_example; # String | +my $ruleId = ruleId_example; # String | +my $page = 56; # Integer | +my $pageSize = 56; # Integer | eval { - my $result = $api_instance->getAlertRules(projectId => $projectId); + my $result = $api_instance->getAlert(ruleId => $ruleId, page => $page, pageSize => $pageSize); print Dumper($result); }; if ($@) { - warn "Exception when calling AlertsApi->getAlertRules: $@\n"; + warn "Exception when calling AlertsApi->getAlert: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -6563,24 +6511,28 @@ 

    Usage and SDK Samples

    # Create an instance of the API class api_instance = openapi_client.AlertsApi() -projectId = projectId_example # String | (default to null) +ruleId = ruleId_example # String | (default to null) +page = 56 # Integer | (optional) (default to null) +pageSize = 56 # Integer | (optional) (default to null) try: - # List all alert rules for a project - api_response = api_instance.get_alert_rules(projectId) + # Find an alert rule by id, and list all alerts for this rule + api_response = api_instance.get_alert(ruleId, page=page, pageSize=pageSize) pprint(api_response) except ApiException as e: - print("Exception when calling AlertsApi->getAlertRules: %s\n" % e)
    + print("Exception when calling AlertsApi->getAlert: %s\n" % e)
    -
    +
    extern crate AlertsApi;
     
     pub fn main() {
    -    let projectId = projectId_example; // String
    +    let ruleId = ruleId_example; // String
    +    let page = 56; // Integer
    +    let pageSize = 56; // Integer
     
         let mut context = AlertsApi::Context::default();
    -    let result = client.getAlertRules(projectId, &context).wait();
    +    let result = client.getAlert(ruleId, page, pageSize, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -6601,11 +6553,11 @@ 

    Parameters

    Name Description - projectId* + ruleId* -
    +
    @@ -6626,25 +6578,72 @@

    Parameters

    +
    Query parameters
    + + + + + + + + + + + + + +
    NameDescription
    page + + +
    +
    +
    + + Integer + + + (int32) + + +
    +
    +
    +
    pageSize + + +
    +
    +
    + + Integer + + + (int32) + + +
    +
    +
    +

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    saveAlertRule

    -

    Save an alert rule

    +

    getAlertRules

    +

    List all alert rules for a project

    @@ -6719,37 +6718,35 @@

    saveAlertRule


    -
    /api/v1/alerts/rule
    +
    /api/v1/alerts/rule/project/{projectId}

    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/alerts/rule" \
    - -d ''
    + "https://app.sentio.xyz/api/v1/alerts/rule/project/{projectId}"
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -6770,13 +6767,13 @@ 

    Usage and SDK Samples

    // Create an instance of the API class AlertsApi apiInstance = new AlertsApi(); - AlertServiceSaveAlertRuleRequest body = ; // AlertServiceSaveAlertRuleRequest | + String projectId = projectId_example; // String | try { - Object result = apiInstance.saveAlertRule(body); + alert_service.GetAlertRulesResponse result = apiInstance.getAlertRules(projectId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AlertsApi#saveAlertRule"); + System.err.println("Exception when calling AlertsApi#getAlertRules"); e.printStackTrace(); } } @@ -6784,46 +6781,46 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
     
    -final AlertServiceSaveAlertRuleRequest body = new AlertServiceSaveAlertRuleRequest(); // AlertServiceSaveAlertRuleRequest | 
    +final String projectId = new String(); // String | 
     
     try {
    -    final result = await api_instance.saveAlertRule(body);
    +    final result = await api_instance.getAlertRules(projectId);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->saveAlertRule: $e\n');
    +    print('Exception when calling DefaultApi->getAlertRules: $e\n');
     }
     
     
    -
    +
    import org.openapitools.client.api.AlertsApi;
     
     public class AlertsApiExample {
         public static void main(String[] args) {
             AlertsApi apiInstance = new AlertsApi();
    -        AlertServiceSaveAlertRuleRequest body = ; // AlertServiceSaveAlertRuleRequest | 
    +        String projectId = projectId_example; // String | 
     
             try {
    -            Object result = apiInstance.saveAlertRule(body);
    +            alert_service.GetAlertRulesResponse result = apiInstance.getAlertRules(projectId);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling AlertsApi#saveAlertRule");
    +            System.err.println("Exception when calling AlertsApi#getAlertRules");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -6834,11 +6831,11 @@ 

    Usage and SDK Samples

    // Create an instance of the API class AlertsApi *apiInstance = [[AlertsApi alloc] init]; -AlertServiceSaveAlertRuleRequest *body = ; // +String *projectId = projectId_example; // (default to null) -// Save an alert rule -[apiInstance saveAlertRuleWith:body - completionHandler: ^(Object output, NSError* error) { +// List all alert rules for a project +[apiInstance getAlertRulesWith:projectId + completionHandler: ^(alert_service.GetAlertRulesResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -6849,7 +6846,7 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    // Create an instance of the API class var api = new SentioApi.AlertsApi() -var body = ; // {AlertServiceSaveAlertRuleRequest} +var projectId = projectId_example; // {String} var callback = function(error, data, response) { if (error) { @@ -6870,14 +6867,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.saveAlertRule(body, callback); +api.getAlertRules(projectId, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -6886,7 +6883,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class saveAlertRuleExample + public class getAlertRulesExample { public void main() { @@ -6897,14 +6894,14 @@

    Usage and SDK Samples

    // Create an instance of the API class var apiInstance = new AlertsApi(); - var body = new AlertServiceSaveAlertRuleRequest(); // AlertServiceSaveAlertRuleRequest | + var projectId = projectId_example; // String | (default to null) try { - // Save an alert rule - Object result = apiInstance.saveAlertRule(body); - Debug.WriteLine(result); + // List all alert rules for a project + alert_service.GetAlertRulesResponse result = apiInstance.getAlertRules(projectId); + Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling AlertsApi.saveAlertRule: " + e.Message ); + Debug.Print("Exception when calling AlertsApi.getAlertRules: " + e.Message ); } } } @@ -6912,7 +6909,7 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\AlertsApi(); -$body = ; // AlertServiceSaveAlertRuleRequest | +$projectId = projectId_example; // String | try { - $result = $api_instance->saveAlertRule($body); + $result = $api_instance->getAlertRules($projectId); print_r($result); } catch (Exception $e) { - echo 'Exception when calling AlertsApi->saveAlertRule: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling AlertsApi->getAlertRules: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::AlertsApi;
    @@ -6946,18 +6943,18 @@ 

    Usage and SDK Samples

    # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::AlertsApi->new(); -my $body = WWW::OPenAPIClient::Object::AlertServiceSaveAlertRuleRequest->new(); # AlertServiceSaveAlertRuleRequest | +my $projectId = projectId_example; # String | eval { - my $result = $api_instance->saveAlertRule(body => $body); + my $result = $api_instance->getAlertRules(projectId => $projectId); print Dumper($result); }; if ($@) { - warn "Exception when calling AlertsApi->saveAlertRule: $@\n"; + warn "Exception when calling AlertsApi->getAlertRules: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -6971,24 +6968,24 @@ 

    Usage and SDK Samples

    # Create an instance of the API class api_instance = openapi_client.AlertsApi() -body = # AlertServiceSaveAlertRuleRequest | +projectId = projectId_example # String | (default to null) try: - # Save an alert rule - api_response = api_instance.save_alert_rule(body) + # List all alert rules for a project + api_response = api_instance.get_alert_rules(projectId) pprint(api_response) except ApiException as e: - print("Exception when calling AlertsApi->saveAlertRule: %s\n" % e)
    + print("Exception when calling AlertsApi->getAlertRules: %s\n" % e)
    -
    +
    extern crate AlertsApi;
     
     pub fn main() {
    -    let body = ; // AlertServiceSaveAlertRuleRequest
    +    let projectId = projectId_example; // String
     
         let mut context = AlertsApi::Context::default();
    -    let result = client.saveAlertRule(body, &context).wait();
    +    let result = client.getAlertRules(projectId, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -7003,52 +7000,29 @@ 

    Scopes

    Parameters

    - - -
    Body parameters
    +
    Path parameters
    - - - - - + + + + + @@ -7056,24 +7030,26 @@

    Parameters

    + +

    Responses

    -

    -

    +

    +

    -
    NameDescription
    body *
    NameDescription
    projectId* -

    - -
    +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    - - - - - - - - -
    NameDescription
    id* - - -
    -
    -
    - - String - - -
    -
    - Required -
    -
    -
    -
    Body parameters
    @@ -7487,7 +7425,7 @@

    Parameters

    "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/alert_service.AlertService.SaveAlertRuleBody" + "$ref" : "#/components/schemas/alert_service.SaveAlertRuleRequest" } } }, @@ -7510,12 +7448,12 @@

    Parameters

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

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    -

    Data

    -
    -
    +
    +
    -

    executeSQL

    -

    Execute SQL

    +

    saveAlertRule2

    +

    Save an alert rule

    -

    Execute SQL in a project. Go to "Data Studio" -> "SQL Editor", write your query and then click "Export as cURL" - -![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(102).png) - -Find more: https://docs.sentio.xyz/reference/data#sql-api

    +


    -
    /api/v1/analytics/{owner}/{slug}/sql/execute
    +
    /api/v1/alerts/rule/{id}

    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/execute" \
    + "https://app.sentio.xyz/api/v1/alerts/rule/{id}" \
      -d ''
     
    -
    +
    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.AlertsApi;
     
     import java.io.File;
     import java.util.*;
     
    -public class DataApiExample {
    +public class AlertsApiExample {
         public static void main(String[] args) {
             ApiClient defaultClient = Configuration.getDefaultApiClient();
     
    @@ -7672,16 +7603,15 @@ 

    Usage and SDK Samples

    //ApiKeyAuth.setApiKeyPrefix("Token"); // 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 - AnalyticServiceAnalyticServiceExecuteSQLBody body = ; // AnalyticServiceAnalyticServiceExecuteSQLBody | + AlertsApi apiInstance = new AlertsApi(); + String id = id_example; // String | + AlertServiceAlertServiceSaveAlertRuleBody body = ; // AlertServiceAlertServiceSaveAlertRuleBody | try { - analytic_service.SyncExecuteSQLResponse result = apiInstance.executeSQL(owner, slug, body); + Object result = apiInstance.saveAlertRule2(id, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DataApi#executeSQL"); + System.err.println("Exception when calling AlertsApi#saveAlertRule2"); e.printStackTrace(); } } @@ -7689,50 +7619,48 @@

    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 AnalyticServiceAnalyticServiceExecuteSQLBody body = new AnalyticServiceAnalyticServiceExecuteSQLBody(); // AnalyticServiceAnalyticServiceExecuteSQLBody | 
    +final String id = new String(); // String | 
    +final AlertServiceAlertServiceSaveAlertRuleBody body = new AlertServiceAlertServiceSaveAlertRuleBody(); // AlertServiceAlertServiceSaveAlertRuleBody | 
     
     try {
    -    final result = await api_instance.executeSQL(owner, slug, body);
    +    final result = await api_instance.saveAlertRule2(id, body);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->executeSQL: $e\n');
    +    print('Exception when calling DefaultApi->saveAlertRule2: $e\n');
     }
     
     
    -
    -
    import org.openapitools.client.api.DataApi;
    +                          
    +
    import org.openapitools.client.api.AlertsApi;
     
    -public class DataApiExample {
    +public class AlertsApiExample {
         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
    -        AnalyticServiceAnalyticServiceExecuteSQLBody body = ; // AnalyticServiceAnalyticServiceExecuteSQLBody | 
    +        AlertsApi apiInstance = new AlertsApi();
    +        String id = id_example; // String | 
    +        AlertServiceAlertServiceSaveAlertRuleBody body = ; // AlertServiceAlertServiceSaveAlertRuleBody | 
     
             try {
    -            analytic_service.SyncExecuteSQLResponse result = apiInstance.executeSQL(owner, slug, body);
    +            Object result = apiInstance.saveAlertRule2(id, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DataApi#executeSQL");
    +            System.err.println("Exception when calling AlertsApi#saveAlertRule2");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -7742,16 +7670,14 @@ 

    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) -AnalyticServiceAnalyticServiceExecuteSQLBody *body = ; // +AlertsApi *apiInstance = [[AlertsApi alloc] init]; +String *id = id_example; // (default to null) +AlertServiceAlertServiceSaveAlertRuleBody *body = ; // -// Execute SQL -[apiInstance executeSQLWith:owner - slug:slug +// Save an alert rule +[apiInstance saveAlertRule2With:id body:body - completionHandler: ^(analytic_service.SyncExecuteSQLResponse output, NSError* error) { + completionHandler: ^(Object output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -7762,7 +7688,7 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    //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 body = ; // {AnalyticServiceAnalyticServiceExecuteSQLBody} +var api = new SentioApi.AlertsApi() +var id = id_example; // {String} +var body = ; // {AlertServiceAlertServiceSaveAlertRuleBody} var callback = function(error, data, response) { if (error) { @@ -7785,14 +7710,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.executeSQL(owner, slug, body, callback); +api.saveAlertRule2(id, body, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -7801,7 +7726,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class executeSQLExample + public class saveAlertRule2Example { public void main() { @@ -7811,17 +7736,16 @@

    Usage and SDK Samples

    // 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 body = new AnalyticServiceAnalyticServiceExecuteSQLBody(); // AnalyticServiceAnalyticServiceExecuteSQLBody | + var apiInstance = new AlertsApi(); + var id = id_example; // String | (default to null) + var body = new AlertServiceAlertServiceSaveAlertRuleBody(); // AlertServiceAlertServiceSaveAlertRuleBody | try { - // Execute SQL - analytic_service.SyncExecuteSQLResponse result = apiInstance.executeSQL(owner, slug, body); + // Save an alert rule + Object result = apiInstance.saveAlertRule2(id, body); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DataApi.executeSQL: " + e.Message ); + Debug.Print("Exception when calling AlertsApi.saveAlertRule2: " + e.Message ); } } } @@ -7829,7 +7753,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -7839,24 +7763,23 @@ 

    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(); -$owner = owner_example; // String | username or organization name -$slug = slug_example; // String | project slug -$body = ; // AnalyticServiceAnalyticServiceExecuteSQLBody | +$api_instance = new OpenAPITools\Client\Api\AlertsApi(); +$id = id_example; // String | +$body = ; // AlertServiceAlertServiceSaveAlertRuleBody | try { - $result = $api_instance->executeSQL($owner, $slug, $body); + $result = $api_instance->saveAlertRule2($id, $body); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DataApi->executeSQL: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling AlertsApi->saveAlertRule2: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
    -use WWW::OPenAPIClient::DataApi;
    +use WWW::OPenAPIClient::AlertsApi;
     
     # Configure API key authorization: ApiKeyAuth
     $WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
    @@ -7864,21 +7787,20 @@ 

    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 $owner = owner_example; # String | username or organization name -my $slug = slug_example; # String | project slug -my $body = WWW::OPenAPIClient::Object::AnalyticServiceAnalyticServiceExecuteSQLBody->new(); # AnalyticServiceAnalyticServiceExecuteSQLBody | +my $api_instance = WWW::OPenAPIClient::AlertsApi->new(); +my $id = id_example; # String | +my $body = WWW::OPenAPIClient::Object::AlertServiceAlertServiceSaveAlertRuleBody->new(); # AlertServiceAlertServiceSaveAlertRuleBody | eval { - my $result = $api_instance->executeSQL(owner => $owner, slug => $slug, body => $body); + my $result = $api_instance->saveAlertRule2(id => $id, body => $body); print Dumper($result); }; if ($@) { - warn "Exception when calling DataApi->executeSQL: $@\n"; + warn "Exception when calling AlertsApi->saveAlertRule2: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -7891,29 +7813,27 @@ 

    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() -owner = owner_example # String | username or organization name (default to null) -slug = slug_example # String | project slug (default to null) -body = # AnalyticServiceAnalyticServiceExecuteSQLBody | +api_instance = openapi_client.AlertsApi() +id = id_example # String | (default to null) +body = # AlertServiceAlertServiceSaveAlertRuleBody | try: - # Execute SQL - api_response = api_instance.execute_sql(owner, slug, body) + # Save an alert rule + api_response = api_instance.save_alert_rule2(id, body) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->executeSQL: %s\n" % e)
    + print("Exception when calling AlertsApi->saveAlertRule2: %s\n" % e)
    -
    -
    extern crate DataApi;
    +                            
    +
    extern crate AlertsApi;
     
     pub fn main() {
    -    let owner = owner_example; // String
    -    let slug = slug_example; // String
    -    let body = ; // AnalyticServiceAnalyticServiceExecuteSQLBody
    +    let id = id_example; // String
    +    let body = ; // AlertServiceAlertServiceSaveAlertRuleBody
     
    -    let mut context = DataApi::Context::default();
    -    let result = client.executeSQL(owner, slug, body, &context).wait();
    +    let mut context = AlertsApi::Context::default();
    +    let result = client.saveAlertRule2(id, body, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -7934,43 +7854,17 @@ 

    Parameters

    Name Description - owner* - - - -
    -
    -
    - - String - - -
    -username or organization name -
    -
    -
    - Required -
    -
    -
    - - - - slug* + id* -
    +
    String -
    -project slug -
    Required @@ -7998,7 +7892,7 @@

    Parameters

    "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/analytic_service.AnalyticService.ExecuteSQLBody" + "$ref" : "#/components/schemas/alert_service.AlertService.SaveAlertRuleBody" } } }, @@ -8021,12 +7915,12 @@

    Parameters

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

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    +

    Data

    +
    +
    -

    getMetrics

    -

    Get a list of metrics in a project

    +

    executeSQL

    +

    Execute SQL

    -

    +

    Execute SQL in a project. Go to "Data Studio" -> "SQL Editor", write your query and then click "Export as cURL" + +![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(102).png) + +Find more: https://docs.sentio.xyz/reference/data#sql-api


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

    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" \
    + -d ''
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -8175,15 +8078,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 + AnalyticServiceAnalyticServiceExecuteSQLBody body = ; // AnalyticServiceAnalyticServiceExecuteSQLBody | try { - metrics_service.GetMetricsResponse result = apiInstance.getMetrics(projectId, name, version); + analytic_service.SyncExecuteSQLResponse result = apiInstance.executeSQL(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#executeSQL"); e.printStackTrace(); } } @@ -8191,50 +8094,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 AnalyticServiceAnalyticServiceExecuteSQLBody body = new AnalyticServiceAnalyticServiceExecuteSQLBody(); // AnalyticServiceAnalyticServiceExecuteSQLBody | 
     
     try {
    -    final result = await api_instance.getMetrics(projectId, name, version);
    +    final result = await api_instance.executeSQL(owner, slug, body);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->getMetrics: $e\n');
    +    print('Exception when calling DefaultApi->executeSQL: $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
    +        AnalyticServiceAnalyticServiceExecuteSQLBody body = ; // AnalyticServiceAnalyticServiceExecuteSQLBody | 
     
             try {
    -            metrics_service.GetMetricsResponse result = apiInstance.getMetrics(projectId, name, version);
    +            analytic_service.SyncExecuteSQLResponse result = apiInstance.executeSQL(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#executeSQL");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -8245,15 +8148,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) +AnalyticServiceAnalyticServiceExecuteSQLBody *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 +[apiInstance executeSQLWith:owner + slug:slug + body:body + completionHandler: ^(analytic_service.SyncExecuteSQLResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -8264,7 +8167,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -8276,11 +8179,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 = ; // {AnalyticServiceAnalyticServiceExecuteSQLBody} var callback = function(error, data, response) { if (error) { @@ -8289,14 +8190,14 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    namespace Example { - public class getMetricsExample + public class executeSQLExample { public void main() { @@ -8316,16 +8217,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 AnalyticServiceAnalyticServiceExecuteSQLBody(); // AnalyticServiceAnalyticServiceExecuteSQLBody | try { - // Get a list of metrics in a project - metrics_service.GetMetricsResponse result = apiInstance.getMetrics(projectId, name, version); + // Execute SQL + analytic_service.SyncExecuteSQLResponse result = apiInstance.executeSQL(owner, slug, body); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DataApi.getMetrics: " + e.Message ); + Debug.Print("Exception when calling DataApi.executeSQL: " + e.Message ); } } } @@ -8333,7 +8234,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -8344,20 +8245,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 = ; // AnalyticServiceAnalyticServiceExecuteSQLBody | try { - $result = $api_instance->getMetrics($projectId, $name, $version); + $result = $api_instance->executeSQL($owner, $slug, $body); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DataApi->getMetrics: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DataApi->executeSQL: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DataApi;
    @@ -8369,20 +8270,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::AnalyticServiceAnalyticServiceExecuteSQLBody->new(); # AnalyticServiceAnalyticServiceExecuteSQLBody | eval { - my $result = $api_instance->getMetrics(projectId => $projectId, name => $name, version => $version); + my $result = $api_instance->executeSQL(owner => $owner, slug => $slug, body => $body); print Dumper($result); }; if ($@) { - warn "Exception when calling DataApi->getMetrics: $@\n"; + warn "Exception when calling DataApi->executeSQL: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -8396,28 +8297,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 = # AnalyticServiceAnalyticServiceExecuteSQLBody | try: - # Get a list of metrics in a project - api_response = api_instance.get_metrics(projectId=projectId, name=name, version=version) + # Execute SQL + api_response = api_instance.execute_sql(owner, slug, body) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->getMetrics: %s\n" % e)
    + print("Exception when calling DataApi->executeSQL: %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 = ; // AnalyticServiceAnalyticServiceExecuteSQLBody
     
         let mut context = DataApi::Context::default();
    -    let result = client.getMetrics(projectId, name, version, &context).wait();
    +    let result = client.executeSQL(owner, slug, body, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -8432,90 +8333,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.*;
    @@ -8639,19 +8580,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(); } } @@ -8659,58 +8596,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)
    @@ -8721,23 +8650,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); } @@ -8748,7 +8669,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -8760,14 +8681,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) { @@ -8777,14 +8694,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;
    @@ -8793,7 +8710,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class listCoinsExample + public class getMetricsExample { public void main() { @@ -8804,20 +8721,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); - Debug.WriteLine(result); + // 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 ); } } } @@ -8825,7 +8738,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -8836,24 +8749,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;
    @@ -8865,24 +8774,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
    @@ -8896,36 +8801,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);
     }
    @@ -8940,53 +8837,6 @@ 

    Scopes

    Parameters

    -
    Path parameters
    - - - - - - - - - - - - - -
    NameDescription
    owner* - - -
    -
    -
    - - String - - -
    -
    - Required -
    -
    -
    -
    slug* - - -
    -
    -
    - - String - - -
    -
    - Required -
    -
    -
    -
    @@ -9001,7 +8851,7 @@

    Parameters

    -
    +
    @@ -9014,39 +8864,16 @@

    Parameters

    - version - - - -
    -
    -
    - - Integer - - - (int32) - - -
    -
    -
    - - - - limit + name -
    +
    - Integer + String - - (int32) -
    @@ -9054,11 +8881,11 @@

    Parameters

    - offset + version -
    +
    @@ -9072,45 +8899,28 @@

    Parameters

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

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    listCoins2

    +

    listCoins

    List coins

    @@ -9185,35 +8995,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.*;
    @@ -9234,8 +9044,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 | @@ -9243,10 +9053,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(); } } @@ -9254,13 +9064,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 | 
    @@ -9268,23 +9078,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 | 
    @@ -9292,20 +9102,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)
    @@ -9316,8 +9126,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) @@ -9325,8 +9135,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 @@ -9343,7 +9153,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -9355,9 +9165,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} @@ -9372,14 +9182,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;
    @@ -9388,7 +9198,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class listCoins2Example + public class listCoinsExample { public void main() { @@ -9399,8 +9209,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) @@ -9409,10 +9219,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 ); } } } @@ -9420,7 +9230,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -9431,8 +9241,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 | @@ -9440,15 +9250,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;
    @@ -9460,8 +9270,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 | @@ -9469,15 +9279,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
    @@ -9491,8 +9301,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) @@ -9501,18 +9311,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
    @@ -9520,7 +9330,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); } @@ -9535,21 +9345,17 @@

    Scopes

    Parameters

    - - - - -
    Query parameters
    +
    Path parameters
    - - - - - + + + + + - + +
    NameDescription
    projectOwner
    NameDescription
    owner* -
    +
    @@ -9557,16 +9363,19 @@

    Parameters

    +
    + Required +
    projectSlug
    slug* -
    +
    @@ -9574,16 +9383,30 @@

    Parameters

    +
    + Required +
    + + + + +
    Query parameters
    + + + + +
    NameDescription
    projectId -
    +
    @@ -9600,7 +9423,7 @@

    Parameters

    -
    +
    @@ -9620,7 +9443,7 @@

    Parameters

    -
    +
    @@ -9640,7 +9463,7 @@

    Parameters

    -
    +
    @@ -9660,7 +9483,7 @@

    Parameters

    -
    +
    @@ -9676,23 +9499,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.*;
    @@ -9818,15 +9639,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(); } } @@ -9834,50 +9659,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)
    @@ -9888,26 +9721,34 @@ 

    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) { - if (output) { - NSLog(@"%@", output); - } - if (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); + } + if (error) { NSLog(@"Error: %@", error); } }];
    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -9919,9 +9760,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) { @@ -9930,14 +9777,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;
    @@ -9946,7 +9793,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class queryExample + public class listCoins2Example { public void main() { @@ -9957,16 +9804,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 ); } } } @@ -9974,7 +9825,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -9985,20 +9836,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;
    @@ -10010,20 +9865,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 | +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->query(owner => $owner, slug => $slug, body => $body); + 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
    @@ -10037,28 +9896,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);
     }
    @@ -10073,131 +9940,165 @@ 

    Scopes

    Parameters

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

    - -
    +
    +
    +
    + + String + + +
    +
    +
    + version + +
    +
    +
    + + Integer + + + (int32) + -

    Responses

    -

    -

    - +
    +
    +
    + + + limit + -

    -
    -
    +
    +
    -

    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.*;
    @@ -10324,13 +10225,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(); } } @@ -10338,26 +10239,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 {
    @@ -10365,23 +10266,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)
    @@ -10394,13 +10295,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); } @@ -10411,7 +10312,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -10425,7 +10326,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) { @@ -10434,14 +10335,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;
    @@ -10450,7 +10351,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class queryInstantExample + public class queryExample { public void main() { @@ -10463,14 +10364,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 ); } } } @@ -10478,7 +10379,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -10491,18 +10392,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;
    @@ -10516,18 +10417,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
    @@ -10543,26 +10444,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);
     }
    @@ -10587,7 +10488,7 @@ 

    Parameters

    -
    +
    @@ -10610,7 +10511,7 @@

    Parameters

    -
    +
    @@ -10647,7 +10548,7 @@

    Parameters

    "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/metrics_service.ObservabilityService.QueryBody" + "$ref" : "#/components/schemas/insights_service.InsightsService.QueryBody" } } }, @@ -10670,12 +10571,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()); }); -
    +
    @@ -10684,23 +10585,23 @@

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    queryLog

    -

    Query event logs

    +

    queryInstant

    +

    Metric instant queries

    @@ -10775,37 +10676,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.*;
    @@ -10826,15 +10727,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(); } } @@ -10842,50 +10743,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)
    @@ -10896,15 +10797,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); } @@ -10915,7 +10816,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -10927,9 +10828,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) { @@ -10938,14 +10839,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;
    @@ -10954,7 +10855,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class queryLogExample + public class queryInstantExample { public void main() { @@ -10965,16 +10866,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 ); } } } @@ -10982,7 +10883,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -10993,20 +10894,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;
    @@ -11018,20 +10919,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
    @@ -11045,28 +10946,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);
     }
    @@ -11091,13 +10992,16 @@ 

    Parameters

    -
    +
    String +
    +username or organization name +
    Required @@ -11111,13 +11015,16 @@

    Parameters

    -
    +
    String +
    +project slug +
    Required @@ -11145,7 +11052,7 @@

    Parameters

    "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/analytic_service.SearchService.QueryLogBody" + "$ref" : "#/components/schemas/metrics_service.ObservabilityService.QueryBody" } } }, @@ -11168,12 +11075,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()); }); -
    +
    @@ -11182,23 +11089,23 @@

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    queryLog2

    +

    queryLog

    Query event logs

    @@ -11273,35 +11180,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.*;
    @@ -11324,29 +11233,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(); } } @@ -11354,42 +11247,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 {
    @@ -11397,39 +11274,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)
    @@ -11442,44 +11303,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); @@ -11491,7 +11320,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -11505,25 +11334,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) { @@ -11532,14 +11343,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;
    @@ -11548,7 +11359,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class queryLog2Example + public class queryLogExample { public void main() { @@ -11561,30 +11372,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 ); } } } @@ -11592,7 +11387,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -11605,34 +11400,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;
    @@ -11646,34 +11425,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
    @@ -11689,58 +11452,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);
     }
    @@ -11765,7 +11496,7 @@ 

    Parameters

    -
    +
    @@ -11785,7 +11516,7 @@

    Parameters

    -
    +
    @@ -11804,241 +11535,642 @@

    Parameters

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

    + +
    timeRange.start.relativeTime.unit - - -
    -
    -
    - - String - - -
    -
    -
    -
    - timeRange.start.relativeTime.value - -
    -
    -
    - - Integer - - - (int32) - +

    Responses

    +

    +

    + -
    -
    -
    - - - timeRange.start.relativeTime.align - + -
    -
    -
    - - String - - - (int64) - +
    +
    +
    + +
    + +
    +
    +
    +
    +
    +
    +
    +
    +

    queryLog2

    +

    Query event logs

    +
    +
    +
    +

    +

    +

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

    +

    Usage and SDK Samples

    +

    + - timeRange.end.relativeTime.unit - +
    +
    +
    curl -X GET \
    +-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"
    +
    +
    +
    +
    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.*;
     
    -    
    -
    -
    - - String - +public class DataApiExample { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); -
    -
    -
    - - - - timeRange.end.relativeTime.value - + // 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"); + // 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 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 | -
    -
    -
    - - Integer - - - (int32) - + 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); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DataApi#queryLog2"); + e.printStackTrace(); + } + } +} +
    +
    -
    -
    -
    - - +
    +
    import 'package:openapi/api.dart';
     
    -                                timeRange.end.relativeTime.align
    -
    +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 | 
     
    -    
    -
    -
    - - String - +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); + print(result); +} catch (e) { + print('Exception when calling DefaultApi->queryLog2: $e\n'); +} -
    -
    -
    - - +
    +
    - timeRange.end.absoluteTime - +
    +
    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 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 | 
     
    -    
    -
    -
    - - String - - - (int64) - + 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); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DataApi#queryLog2"); + 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"]; - timeRange.step - +// 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 *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) -
    -
    -
    - - String - - - (int64) - +// Query event logs +[apiInstance queryLog2With: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 + completionHandler: ^(analytic_service.LogQueryResponse output, NSError* error) { + if (output) { + NSLog(@"%@", output); + } + if (error) { + NSLog(@"Error: %@", error); + } +}]; + +
    -
    -
    -
    - - +
    +
    var SentioApi = require('sentio_api');
    +var defaultClient = SentioApi.ApiClient.instance;
     
    -                                timeRange.interval.value
    -
    +// 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} 
    +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} 
    +};
     
    -    
    -
    -
    - - Double - - - (double) - +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +api.queryLog2(owner, slug, opts, callback); +
    +
    -
    -
    -
    - - + +
    +
    using System;
    +using System.Diagnostics;
    +using Org.OpenAPITools.Api;
    +using Org.OpenAPITools.Client;
    +using Org.OpenAPITools.Model;
     
    -                                timeRange.interval.unit
    +namespace Example
    +{
    +    public class queryLog2Example
    +    {
    +        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 |  (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)
    +
    +            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);
    +                Debug.WriteLine(result);
    +            } catch (Exception e) {
    +                Debug.Print("Exception when calling DataApi.queryLog2: " + 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 | 
    +$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;
    +}
    +?>
    +
    + +
    +
    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 | 
    +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 | 
    +
    +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);
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling DataApi->queryLog2: $@\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 |  (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)
    +
    + +
    +
    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 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);
    +}
    +
    +
    + + +

    Scopes

    + + +
    + +

    Parameters

    + +
    Path parameters
    + + + + + + - + - +
    NameDescription
    owner* -
    +
    @@ -12046,16 +12178,19 @@

    Parameters

    +
    + Required +
    timeRange.timezone
    slug* -
    +
    @@ -12063,24 +12198,35 @@

    Parameters

    +
    + Required +
    limit
    + + + + +
    Query parameters
    + + + + + + - + - + + + + + -
    NameDescription
    projectId -
    +
    - Integer + String - - (int32) -
    @@ -12088,19 +12234,16 @@

    Parameters

    offset
    query -
    +
    - Integer + String - - (int32) -
    @@ -12108,11 +12251,28 @@

    Parameters

    version
    timeRange.start.relativeTime.unit -
    +
    +
    +
    + + String + + +
    +
    +
    +
    timeRange.start.relativeTime.value + + +
    @@ -12128,455 +12288,246 @@

    Parameters

    + timeRange.start.relativeTime.align + -

    Responses

    -

    -

    - +
    +
    +
    + + String + -
    +
    +
    + + + timeRange.start.absoluteTime + +
    +
    +
    + + String + + + (int64) + - +
    +
    +
    + + + timeRange.end.relativeTime.unit + -
    -
    -
    - -
    - -
    -
    - - -
    -
    -
    -
    -

    queryRange

    -

    Metric range queries

    -
    -
    -
    -

    -

    The easiest way to build query is through UI, you could first create an insight chart, and then **Export as cURL**. +

    +
    +
    + + String + -![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(101).png)

    -

    -
    -
    /api/v1/metrics/{owner}/{slug}/query_range
    -

    -

    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_range" \
    - -d ''
    -
    -
    -
    -
    import org.openapitools.client.*;
    -import org.openapitools.client.auth.*;
    -import org.openapitools.client.model.*;
    -import org.openapitools.client.api.DataApi;
    +                                timeRange.end.relativeTime.value
    +
     
    -import java.io.File;
    -import java.util.*;
     
    -public class DataApiExample {
    -    public static void main(String[] args) {
    -        ApiClient defaultClient = Configuration.getDefaultApiClient();
    +    
    +
    +
    + + Integer + + + (int32) + - // 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"); +
    +
    +
    + + - // 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 | + timeRange.end.relativeTime.align + - try { - metrics_service.MetricsQueryResponse result = apiInstance.queryRange(owner, slug, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DataApi#queryRange"); - e.printStackTrace(); - } - } -} -
    -
    -
    -
    import 'package:openapi/api.dart';
    +    
    +
    +
    + + String + -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 | + timeRange.end.absoluteTime + -try { - final result = await api_instance.queryRange(owner, slug, body); - print(result); -} catch (e) { - print('Exception when calling DefaultApi->queryRange: $e\n'); -} -
    -
    +
    +
    +
    + + String + + + (int64) + -
    -
    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 | + timeRange.step + - try { - metrics_service.MetricsQueryResponse result = apiInstance.queryRange(owner, slug, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DataApi#queryRange"); - 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"];
    +    
    +
    +
    + + String + + + (int64) + +
    +
    +
    + + -// 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 = ; // + timeRange.interval.value + -// Metric range queries -[apiInstance queryRangeWith:owner - slug:slug - body:body - completionHandler: ^(metrics_service.MetricsQueryResponse output, NSError* error) { - if (output) { - NSLog(@"%@", output); - } - if (error) { - NSLog(@"Error: %@", error); - } -}]; -
    -
    -
    -
    var SentioApi = require('sentio_api');
    -var defaultClient = SentioApi.ApiClient.instance;
    +    
    +
    +
    + + Double + + + (double) + -// 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 body = ; // {MetricsServiceObservabilityServiceQueryRangeBody} + timeRange.interval.unit + -var callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -api.queryRange(owner, slug, body, callback); -
    -
    - -
    -
    using System;
    -using System.Diagnostics;
    -using Org.OpenAPITools.Api;
    -using Org.OpenAPITools.Client;
    -using Org.OpenAPITools.Model;
    +    
    +
    +
    + + String + -namespace Example -{ - public class queryRangeExample - { - 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 body = new MetricsServiceObservabilityServiceQueryRangeBody(); // MetricsServiceObservabilityServiceQueryRangeBody | + timeRange.timezone + - 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');
    +    
    +
    +
    + + String + -// 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 | + limit + -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;
    +    
    +
    +
    + + Integer + + + (int32) + -# 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 | + offset + -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
    - - - - - - - - + @@ -12584,76 +12535,24 @@

    Parameters

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

    - -
    -
    - - -

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    querySQLResult

    -

    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/{owner}/{slug}/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/{owner}/{slug}/sql/query_result?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.*;
    @@ -12779,15 +12682,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 - 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 | + MetricsServiceObservabilityServiceQueryRangeBody body = ; // MetricsServiceObservabilityServiceQueryRangeBody | try { - analytic_service.QuerySQLResultResponse result = apiInstance.querySQLResult(owner, slug, 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#querySQLResult"); + System.err.println("Exception when calling DataApi#queryRange"); e.printStackTrace(); } } @@ -12795,28 +12696,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 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 MetricsServiceObservabilityServiceQueryRangeBody body = new MetricsServiceObservabilityServiceQueryRangeBody(); // MetricsServiceObservabilityServiceQueryRangeBody | 
     
     try {
    -    final result = await api_instance.querySQLResult(owner, slug, projectId, version, executionId);
    +    final result = await api_instance.queryRange(owner, slug, body);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->querySQLResult: $e\n');
    +    print('Exception when calling DefaultApi->queryRange: $e\n');
     }
     
     
    -
    +
    import org.openapitools.client.api.DataApi;
     
     public class DataApiExample {
    @@ -12824,25 +12723,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 - 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 | + MetricsServiceObservabilityServiceQueryRangeBody body = ; // MetricsServiceObservabilityServiceQueryRangeBody | try { - analytic_service.QuerySQLResultResponse result = apiInstance.querySQLResult(owner, slug, 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#querySQLResult"); + System.err.println("Exception when calling DataApi#queryRange"); e.printStackTrace(); } } }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -12855,17 +12752,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) -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) +MetricsServiceObservabilityServiceQueryRangeBody *body = ; // -// Query SQL Result -[apiInstance querySQLResultWith:owner +// Metric range queries +[apiInstance queryRangeWith:owner slug:slug - projectId:projectId - version:version - executionId:executionId - completionHandler: ^(analytic_service.QuerySQLResultResponse output, NSError* error) { + body:body + completionHandler: ^(metrics_service.MetricsQueryResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -12876,7 +12769,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -12890,11 +12783,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 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} -}; +var body = ; // {MetricsServiceObservabilityServiceQueryRangeBody} var callback = function(error, data, response) { if (error) { @@ -12903,14 +12792,14 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    namespace Example { - public class querySQLResultExample + public class queryRangeExample { public void main() { @@ -12932,16 +12821,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 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 body = new MetricsServiceObservabilityServiceQueryRangeBody(); // MetricsServiceObservabilityServiceQueryRangeBody | try { - // Query SQL Result - analytic_service.QuerySQLResultResponse result = apiInstance.querySQLResult(owner, slug, 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.querySQLResult: " + e.Message ); + Debug.Print("Exception when calling DataApi.queryRange: " + e.Message ); } } } @@ -12949,7 +12836,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -12962,20 +12849,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 -$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 | +$body = ; // MetricsServiceObservabilityServiceQueryRangeBody | try { - $result = $api_instance->querySQLResult($owner, $slug, $projectId, $version, $executionId); + $result = $api_instance->queryRange($owner, $slug, $body); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DataApi->querySQLResult: ', $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;
    @@ -12989,20 +12874,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 $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 $body = WWW::OPenAPIClient::Object::MetricsServiceObservabilityServiceQueryRangeBody->new(); # MetricsServiceObservabilityServiceQueryRangeBody | eval { - my $result = $api_instance->querySQLResult(owner => $owner, slug => $slug, 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->querySQLResult: $@\n"; + warn "Exception when calling DataApi->queryRange: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -13018,30 +12901,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) -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) +body = # MetricsServiceObservabilityServiceQueryRangeBody | try: - # Query SQL Result - api_response = api_instance.query_sql_result(owner, slug, 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->querySQLResult: %s\n" % 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 projectId = projectId_example; // String
    -    let version = 56; // Integer
    -    let executionId = executionId_example; // String
    +    let body = ; // MetricsServiceObservabilityServiceQueryRangeBody
     
         let mut context = DataApi::Context::default();
    -    let result = client.querySQLResult(owner, slug, projectId, version, executionId, &context).wait();
    +    let result = client.queryRange(owner, slug, body, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -13066,7 +12945,7 @@ 

    Parameters

    -
    +
    @@ -13089,7 +12968,7 @@

    Parameters

    -
    +
    @@ -13111,94 +12990,75 @@

    Parameters

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

    + +
    executionId - - -
    -
    -
    - - String - +
    -
    -
    -
    - - -

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    querySQLResult2

    +

    querySQLResult

    Query SQL Result

    @@ -13273,35 +13133,35 @@

    querySQLResult2

    Query the result of a SQL query by execution_id.


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

    Usage and SDK Samples

    -
    +
    curl -X GET \
     -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"
    + "https://app.sentio.xyz/api/v1/analytics/{owner}/{slug}/sql/query_result?projectId=projectId_example&version=56&executionId=executionId_example"
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -13322,17 +13182,17 @@ 

    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 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.querySQLResult2(projectOwner, projectSlug, projectId, version, executionId); + 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#querySQLResult2"); + System.err.println("Exception when calling DataApi#querySQLResult"); e.printStackTrace(); } } @@ -13340,54 +13200,54 @@

    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 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.querySQLResult2(projectOwner, projectSlug, projectId, version, executionId);
    +    final result = await api_instance.querySQLResult(owner, slug, projectId, version, executionId);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->querySQLResult2: $e\n');
    +    print('Exception when calling DefaultApi->querySQLResult: $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 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.querySQLResult2(projectOwner, projectSlug, projectId, version, executionId);
    +            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#querySQLResult2");
    +            System.err.println("Exception when calling DataApi#querySQLResult");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -13398,15 +13258,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 *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 querySQLResult2With:projectOwner - projectSlug:projectSlug +[apiInstance querySQLResultWith:owner + slug:slug projectId:projectId version:version executionId:executionId @@ -13421,7 +13281,7 @@

    Usage and SDK Samples

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

    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 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} @@ -13448,14 +13308,14 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    namespace Example { - public class querySQLResult2Example + public class querySQLResultExample { public void main() { @@ -13475,18 +13335,18 @@

    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 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) try { // Query SQL Result - analytic_service.QuerySQLResultResponse result = apiInstance.querySQLResult2(projectOwner, projectSlug, projectId, version, executionId); + analytic_service.QuerySQLResultResponse result = apiInstance.querySQLResult(owner, slug, projectId, version, executionId); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DataApi.querySQLResult2: " + e.Message ); + Debug.Print("Exception when calling DataApi.querySQLResult: " + e.Message ); } } } @@ -13494,7 +13354,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -13505,22 +13365,22 @@ 

    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 +$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 | try { - $result = $api_instance->querySQLResult2($projectOwner, $projectSlug, $projectId, $version, $executionId); + $result = $api_instance->querySQLResult($owner, $slug, $projectId, $version, $executionId); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DataApi->querySQLResult2: ', $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;
    @@ -13532,22 +13392,22 @@ 

    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 $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 | eval { - my $result = $api_instance->querySQLResult2(projectOwner => $projectOwner, projectSlug => $projectSlug, projectId => $projectId, version => $version, executionId => $executionId); + my $result = $api_instance->querySQLResult(owner => $owner, slug => $slug, projectId => $projectId, version => $version, executionId => $executionId); print Dumper($result); }; if ($@) { - warn "Exception when calling DataApi->querySQLResult2: $@\n"; + warn "Exception when calling DataApi->querySQLResult: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -13561,32 +13421,32 @@ 

    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) +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) try: # Query SQL Result - api_response = api_instance.query_sql_result2(projectOwner=projectOwner, projectSlug=projectSlug, projectId=projectId, version=version, executionId=executionId) + 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->querySQLResult2: %s\n" % e)
    + print("Exception when calling DataApi->querySQLResult: %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 executionId = executionId_example; // String
     
         let mut context = DataApi::Context::default();
    -    let result = client.querySQLResult2(projectOwner, projectSlug, projectId, version, executionId, &context).wait();
    +    let result = client.querySQLResult(owner, slug, projectId, version, executionId, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -13601,21 +13461,17 @@ 

    Scopes

    Parameters

    - - - - -
    Query parameters
    +
    Path parameters
    - - - - - + + + + + - + +
    NameDescription
    projectOwner
    NameDescription
    owner* -
    +
    @@ -13626,16 +13482,19 @@

    Parameters

    username or organization name
    +
    + Required +
    projectSlug
    slug* -
    +
    @@ -13646,16 +13505,30 @@

    Parameters

    project slug
    +
    + Required +
    + + + + +
    Query parameters
    + + + + +
    NameDescription
    projectId -
    +
    @@ -13675,7 +13548,7 @@

    Parameters

    -
    +
    @@ -13698,7 +13571,7 @@

    Parameters

    -
    +
    @@ -13714,23 +13587,23 @@

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    rerunSQLQuery

    -

    Rerun SQL

    +

    querySQLResult2

    +

    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/sql/query_result

    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/sql/query_result?projectOwner=projectOwner_example&projectSlug=projectSlug_example&projectId=projectId_example&version=56&executionId=executionId_example"
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -13858,15 +13727,17 @@ 

    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 - AnalyticServiceAnalyticServiceRerunSQLQueryBody body = ; // AnalyticServiceAnalyticServiceRerunSQLQueryBody | + 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 | try { - analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery(owner, slug, body); + analytic_service.QuerySQLResultResponse result = apiInstance.querySQLResult2(projectOwner, projectSlug, projectId, version, executionId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DataApi#rerunSQLQuery"); + System.err.println("Exception when calling DataApi#querySQLResult2"); e.printStackTrace(); } } @@ -13874,50 +13745,54 @@

    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 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 | 
     
     try {
    -    final result = await api_instance.rerunSQLQuery(owner, slug, body);
    +    final result = await api_instance.querySQLResult2(projectOwner, projectSlug, projectId, version, executionId);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->rerunSQLQuery: $e\n');
    +    print('Exception when calling DefaultApi->querySQLResult2: $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
    -        AnalyticServiceAnalyticServiceRerunSQLQueryBody body = ; // AnalyticServiceAnalyticServiceRerunSQLQueryBody | 
    +        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 | 
     
             try {
    -            analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery(owner, slug, body);
    +            analytic_service.QuerySQLResultResponse result = apiInstance.querySQLResult2(projectOwner, projectSlug, projectId, version, executionId);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DataApi#rerunSQLQuery");
    +            System.err.println("Exception when calling DataApi#querySQLResult2");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -13928,15 +13803,19 @@ 

    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) -AnalyticServiceAnalyticServiceRerunSQLQueryBody *body = ; // +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) -// Rerun SQL -[apiInstance rerunSQLQueryWith:owner - slug:slug - body:body - completionHandler: ^(analytic_service.RerunSQLQueryResponse output, NSError* error) { +// Query SQL Result +[apiInstance querySQLResult2With:projectOwner + projectSlug:projectSlug + projectId:projectId + version:version + executionId:executionId + completionHandler: ^(analytic_service.QuerySQLResultResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -13947,7 +13826,7 @@

    Usage and SDK Samples

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

    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 = ; // {AnalyticServiceAnalyticServiceRerunSQLQueryBody} +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 callback = function(error, data, response) { if (error) { @@ -13970,14 +13853,14 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    namespace Example { - public class rerunSQLQueryExample + public class querySQLResult2Example { public void main() { @@ -13997,16 +13880,18 @@

    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 AnalyticServiceAnalyticServiceRerunSQLQueryBody(); // AnalyticServiceAnalyticServiceRerunSQLQueryBody | + 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) try { - // Rerun SQL - analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery(owner, slug, body); + // Query SQL Result + analytic_service.QuerySQLResultResponse result = apiInstance.querySQLResult2(projectOwner, projectSlug, projectId, version, executionId); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DataApi.rerunSQLQuery: " + e.Message ); + Debug.Print("Exception when calling DataApi.querySQLResult2: " + e.Message ); } } } @@ -14014,7 +13899,7 @@

    Usage and SDK Samples

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

    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 = ; // AnalyticServiceAnalyticServiceRerunSQLQueryBody | +$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 | try { - $result = $api_instance->rerunSQLQuery($owner, $slug, $body); + $result = $api_instance->querySQLResult2($projectOwner, $projectSlug, $projectId, $version, $executionId); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DataApi->rerunSQLQuery: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DataApi->querySQLResult2: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DataApi;
    @@ -14050,20 +13937,22 @@ 

    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::AnalyticServiceAnalyticServiceRerunSQLQueryBody->new(); # AnalyticServiceAnalyticServiceRerunSQLQueryBody | +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 | eval { - my $result = $api_instance->rerunSQLQuery(owner => $owner, slug => $slug, body => $body); + my $result = $api_instance->querySQLResult2(projectOwner => $projectOwner, projectSlug => $projectSlug, projectId => $projectId, version => $version, executionId => $executionId); print Dumper($result); }; if ($@) { - warn "Exception when calling DataApi->rerunSQLQuery: $@\n"; + warn "Exception when calling DataApi->querySQLResult2: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -14077,28 +13966,32 @@ 

    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 = # AnalyticServiceAnalyticServiceRerunSQLQueryBody | +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) try: - # Rerun SQL - api_response = api_instance.rerun_sql_query(owner, slug, body) + # Query SQL Result + api_response = api_instance.query_sql_result2(projectOwner=projectOwner, projectSlug=projectSlug, projectId=projectId, version=version, executionId=executionId) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->rerunSQLQuery: %s\n" % e)
    + print("Exception when calling DataApi->querySQLResult2: %s\n" % e)
    -
    +
    extern crate DataApi;
     
     pub fn main() {
    -    let owner = owner_example; // String
    -    let slug = slug_example; // String
    -    let body = ; // AnalyticServiceAnalyticServiceRerunSQLQueryBody
    +    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 mut context = DataApi::Context::default();
    -    let result = client.rerunSQLQuery(owner, slug, body, &context).wait();
    +    let result = client.querySQLResult2(projectOwner, projectSlug, projectId, version, executionId, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -14113,17 +14006,21 @@ 

    Scopes

    Parameters

    -
    Path parameters
    + + + + +
    Query parameters
    - - - - - + + + + + - + -
    NameDescription
    owner*
    NameDescription
    projectOwner -
    +
    @@ -14134,19 +14031,16 @@

    Parameters

    username or organization name
    -
    - Required -
    slug*
    projectSlug -
    +
    @@ -14157,86 +14051,91 @@

    Parameters

    project slug
    -
    - Required -
    + projectId + -
    Body parameters
    - - - - - - +
    +
    +
    + + String + + +
    +use project id if project_owner and project_slug are not provided +
    +
    +
    +
    + + + + -
    NameDescription
    body *
    version -

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

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    rerunSQLQuery2

    +

    rerunSQLQuery

    Rerun SQL

    @@ -14313,37 +14212,37 @@

    rerunSQLQuery2

    It will return execution_id, use it to query the result.


    -
    /api/v1/analytics/sql/rerun_query
    +
    /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/analytics/sql/rerun_query" \
    + "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.*;
    @@ -14364,13 +14263,15 @@ 

    Usage and SDK Samples

    // Create an instance of the API class DataApi apiInstance = new DataApi(); - AnalyticServiceRerunSQLQueryRequest body = ; // AnalyticServiceRerunSQLQueryRequest | + String owner = owner_example; // String | username or organization name + String slug = slug_example; // String | project slug + AnalyticServiceAnalyticServiceRerunSQLQueryBody body = ; // AnalyticServiceAnalyticServiceRerunSQLQueryBody | try { - analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery2(body); + analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery(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#rerunSQLQuery"); e.printStackTrace(); } } @@ -14378,46 +14279,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 | username or organization name
    +final String slug = new String(); // String | project slug
    +final AnalyticServiceAnalyticServiceRerunSQLQueryBody body = new AnalyticServiceAnalyticServiceRerunSQLQueryBody(); // AnalyticServiceAnalyticServiceRerunSQLQueryBody | 
     
     try {
    -    final result = await api_instance.rerunSQLQuery2(body);
    +    final result = await api_instance.rerunSQLQuery(owner, slug, body);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->rerunSQLQuery2: $e\n');
    +    print('Exception when calling DefaultApi->rerunSQLQuery: $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 | username or organization name
    +        String slug = slug_example; // String | project slug
    +        AnalyticServiceAnalyticServiceRerunSQLQueryBody body = ; // AnalyticServiceAnalyticServiceRerunSQLQueryBody | 
     
             try {
    -            analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery2(body);
    +            analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery(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#rerunSQLQuery");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -14428,10 +14333,14 @@ 

    Usage and SDK Samples

    // Create an instance of the API class DataApi *apiInstance = [[DataApi alloc] init]; -AnalyticServiceRerunSQLQueryRequest *body = ; // +String *owner = owner_example; // username or organization name (default to null) +String *slug = slug_example; // project slug (default to null) +AnalyticServiceAnalyticServiceRerunSQLQueryBody *body = ; // // Rerun SQL -[apiInstance rerunSQLQuery2With:body +[apiInstance rerunSQLQueryWith:owner + slug:slug + body:body completionHandler: ^(analytic_service.RerunSQLQueryResponse output, NSError* error) { if (output) { NSLog(@"%@", output); @@ -14443,7 +14352,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -14455,7 +14364,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} username or organization name +var slug = slug_example; // {String} project slug +var body = ; // {AnalyticServiceAnalyticServiceRerunSQLQueryBody} var callback = function(error, data, response) { if (error) { @@ -14464,14 +14375,14 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    namespace Example { - public class rerunSQLQuery2Example + public class rerunSQLQueryExample { public void main() { @@ -14491,14 +14402,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 | username or organization name (default to null) + var slug = slug_example; // String | project slug (default to null) + var body = new AnalyticServiceAnalyticServiceRerunSQLQueryBody(); // AnalyticServiceAnalyticServiceRerunSQLQueryBody | try { // Rerun SQL - analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery2(body); + analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery(owner, slug, body); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DataApi.rerunSQLQuery2: " + e.Message ); + Debug.Print("Exception when calling DataApi.rerunSQLQuery: " + e.Message ); } } } @@ -14506,7 +14419,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -14517,18 +14430,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 | username or organization name +$slug = slug_example; // String | project slug +$body = ; // AnalyticServiceAnalyticServiceRerunSQLQueryBody | try { - $result = $api_instance->rerunSQLQuery2($body); + $result = $api_instance->rerunSQLQuery($owner, $slug, $body); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DataApi->rerunSQLQuery2: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DataApi->rerunSQLQuery: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DataApi;
    @@ -14540,18 +14455,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 | username or organization name +my $slug = slug_example; # String | project slug +my $body = WWW::OPenAPIClient::Object::AnalyticServiceAnalyticServiceRerunSQLQueryBody->new(); # AnalyticServiceAnalyticServiceRerunSQLQueryBody | eval { - my $result = $api_instance->rerunSQLQuery2(body => $body); + my $result = $api_instance->rerunSQLQuery(owner => $owner, slug => $slug, body => $body); print Dumper($result); }; if ($@) { - warn "Exception when calling DataApi->rerunSQLQuery2: $@\n"; + warn "Exception when calling DataApi->rerunSQLQuery: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -14565,24 +14482,28 @@ 

    Usage and SDK Samples

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

    Scopes

    Parameters

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

    Parameters

    "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/analytic_service.RerunSQLQueryRequest" + "$ref" : "#/components/schemas/analytic_service.AnalyticService.RerunSQLQueryBody" } } }, @@ -14637,12 +14611,12 @@

    Parameters

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

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    retention

    -

    Retention query

    +

    rerunSQLQuery2

    +

    Rerun SQL

    -

    Query for retention.

    +

    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.


    -
    /api/v1/insights/{owner}/{slug}/retention
    +
    /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/insights/{owner}/{slug}/retention" \
    + "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.*;
    @@ -14793,15 +14769,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 | + AnalyticServiceRerunSQLQueryRequest body = ; // AnalyticServiceRerunSQLQueryRequest | try { - insights_service.RetentionResponse result = apiInstance.retention(owner, slug, body); + analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery2(body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DataApi#retention"); + System.err.println("Exception when calling DataApi#rerunSQLQuery2"); e.printStackTrace(); } } @@ -14809,50 +14783,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 AnalyticServiceRerunSQLQueryRequest body = new AnalyticServiceRerunSQLQueryRequest(); // AnalyticServiceRerunSQLQueryRequest | 
     
     try {
    -    final result = await api_instance.retention(owner, slug, body);
    +    final result = await api_instance.rerunSQLQuery2(body);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->retention: $e\n');
    +    print('Exception when calling DefaultApi->rerunSQLQuery2: $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 | 
    +        AnalyticServiceRerunSQLQueryRequest body = ; // AnalyticServiceRerunSQLQueryRequest | 
     
             try {
    -            insights_service.RetentionResponse result = apiInstance.retention(owner, slug, body);
    +            analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery2(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DataApi#retention");
    +            System.err.println("Exception when calling DataApi#rerunSQLQuery2");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -14863,15 +14833,11 @@ 

    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 = ; // +AnalyticServiceRerunSQLQueryRequest *body = ; // -// Retention query -[apiInstance retentionWith:owner - slug:slug - body:body - completionHandler: ^(insights_service.RetentionResponse output, NSError* error) { +// Rerun SQL +[apiInstance rerunSQLQuery2With:body + completionHandler: ^(analytic_service.RerunSQLQueryResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -14882,7 +14848,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -14894,9 +14860,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 = ; // {AnalyticServiceRerunSQLQueryRequest} var callback = function(error, data, response) { if (error) { @@ -14905,14 +14869,14 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    namespace Example { - public class retentionExample + public class rerunSQLQuery2Example { public void main() { @@ -14932,16 +14896,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 AnalyticServiceRerunSQLQueryRequest(); // AnalyticServiceRerunSQLQueryRequest | try { - // Retention query - insights_service.RetentionResponse result = apiInstance.retention(owner, slug, body); + // Rerun SQL + analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery2(body); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DataApi.retention: " + e.Message ); + Debug.Print("Exception when calling DataApi.rerunSQLQuery2: " + e.Message ); } } } @@ -14949,7 +14911,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -14960,20 +14922,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 = ; // AnalyticServiceRerunSQLQueryRequest | try { - $result = $api_instance->retention($owner, $slug, $body); + $result = $api_instance->rerunSQLQuery2($body); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DataApi->retention: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DataApi->rerunSQLQuery2: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DataApi;
    @@ -14985,20 +14945,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::AnalyticServiceRerunSQLQueryRequest->new(); # AnalyticServiceRerunSQLQueryRequest | eval { - my $result = $api_instance->retention(owner => $owner, slug => $slug, body => $body); + my $result = $api_instance->rerunSQLQuery2(body => $body); print Dumper($result); }; if ($@) { - warn "Exception when calling DataApi->retention: $@\n"; + warn "Exception when calling DataApi->rerunSQLQuery2: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -15012,28 +14970,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 = # AnalyticServiceRerunSQLQueryRequest | try: - # Retention query - api_response = api_instance.retention(owner, slug, body) + # Rerun SQL + api_response = api_instance.rerun_sql_query2(body) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->retention: %s\n" % e)
    + print("Exception when calling DataApi->rerunSQLQuery2: %s\n" % e)
    -
    +
    extern crate DataApi;
     
     pub fn main() {
    -    let owner = owner_example; // String
    -    let slug = slug_example; // String
    -    let body = ; // InsightsServiceInsightsServiceRetentionBody
    +    let body = ; // AnalyticServiceRerunSQLQueryRequest
     
         let mut context = DataApi::Context::default();
    -    let result = client.retention(owner, slug, body, &context).wait();
    +    let result = client.rerunSQLQuery2(body, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -15048,53 +15002,6 @@ 

    Scopes

    Parameters

    -
    Path parameters
    - - - - - - - - - - - - - -
    NameDescription
    owner* - - -
    -
    -
    - - String - - -
    -
    - Required -
    -
    -
    -
    slug* - - -
    -
    -
    - - String - - -
    -
    - Required -
    -
    -
    -
    Body parameters
    @@ -15112,7 +15019,7 @@

    Parameters

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

    Parameters

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

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    retention2

    +

    retention

    Retention query

    @@ -15240,37 +15147,37 @@

    retention2

    Query for retention.


    -
    /api/v1/insights/retention
    +
    /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/insights/retention" \
    + "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.*;
    @@ -15291,13 +15198,15 @@ 

    Usage and SDK Samples

    // Create an instance of the API class DataApi apiInstance = new DataApi(); - InsightsServiceRetentionRequest body = ; // InsightsServiceRetentionRequest | + String owner = owner_example; // String | + String slug = slug_example; // String | + InsightsServiceInsightsServiceRetentionBody body = ; // InsightsServiceInsightsServiceRetentionBody | try { - insights_service.RetentionResponse result = apiInstance.retention2(body); + insights_service.RetentionResponse result = apiInstance.retention(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#retention"); e.printStackTrace(); } } @@ -15305,46 +15214,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 | 
    +final String slug = new String(); // String | 
    +final InsightsServiceInsightsServiceRetentionBody body = new InsightsServiceInsightsServiceRetentionBody(); // InsightsServiceInsightsServiceRetentionBody | 
     
     try {
    -    final result = await api_instance.retention2(body);
    +    final result = await api_instance.retention(owner, slug, body);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->retention2: $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();
    -        InsightsServiceRetentionRequest body = ; // InsightsServiceRetentionRequest | 
    +        String owner = owner_example; // String | 
    +        String slug = slug_example; // String | 
    +        InsightsServiceInsightsServiceRetentionBody body = ; // InsightsServiceInsightsServiceRetentionBody | 
     
             try {
    -            insights_service.RetentionResponse result = apiInstance.retention2(body);
    +            insights_service.RetentionResponse result = apiInstance.retention(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#retention");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -15355,10 +15268,14 @@ 

    Usage and SDK Samples

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

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -15382,7 +15299,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} +var slug = slug_example; // {String} +var body = ; // {InsightsServiceInsightsServiceRetentionBody} var callback = function(error, data, response) { if (error) { @@ -15391,14 +15310,14 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    namespace Example { - public class retention2Example + public class retentionExample { public void main() { @@ -15418,14 +15337,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 | (default to null) + var slug = slug_example; // String | (default to null) + var body = new InsightsServiceInsightsServiceRetentionBody(); // InsightsServiceInsightsServiceRetentionBody | try { // Retention query - insights_service.RetentionResponse result = apiInstance.retention2(body); + insights_service.RetentionResponse result = apiInstance.retention(owner, slug, body); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DataApi.retention2: " + e.Message ); + Debug.Print("Exception when calling DataApi.retention: " + e.Message ); } } } @@ -15433,7 +15354,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -15444,18 +15365,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 | +$slug = slug_example; // String | +$body = ; // InsightsServiceInsightsServiceRetentionBody | try { - $result = $api_instance->retention2($body); + $result = $api_instance->retention($owner, $slug, $body); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DataApi->retention2: ', $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;
    @@ -15467,18 +15390,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 | +my $slug = slug_example; # String | +my $body = WWW::OPenAPIClient::Object::InsightsServiceInsightsServiceRetentionBody->new(); # InsightsServiceInsightsServiceRetentionBody | eval { - my $result = $api_instance->retention2(body => $body); + my $result = $api_instance->retention(owner => $owner, slug => $slug, body => $body); print Dumper($result); }; if ($@) { - warn "Exception when calling DataApi->retention2: $@\n"; + warn "Exception when calling DataApi->retention: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -15492,24 +15417,28 @@ 

    Usage and SDK Samples

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

    Scopes

    Parameters

    +
    Path parameters
    + + + + + + + + + + + + + +
    NameDescription
    owner* + + +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    +
    slug* + + +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    +
    Body parameters
    @@ -15541,7 +15517,7 @@

    Parameters

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

    Parameters

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

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    saveSQL

    -

    Save SQL

    +

    retention2

    +

    Retention query

    -

    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.

    +

    Query for retention.


    -
    /api/v1/analytics/{owner}/{slug}/sql/save_query
    +
    /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/analytics/{owner}/{slug}/sql/save_query" \
    + "https://app.sentio.xyz/api/v1/insights/retention" \
      -d ''
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -15723,15 +15696,13 @@ 

    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 - AnalyticServiceAnalyticServiceSaveSQLBody body = ; // AnalyticServiceAnalyticServiceSaveSQLBody | + InsightsServiceRetentionRequest body = ; // InsightsServiceRetentionRequest | try { - analytic_service.SaveSQLResponse result = apiInstance.saveSQL(owner, slug, body); + insights_service.RetentionResponse result = apiInstance.retention2(body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DataApi#saveSQL"); + System.err.println("Exception when calling DataApi#retention2"); e.printStackTrace(); } } @@ -15739,50 +15710,46 @@

    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 AnalyticServiceAnalyticServiceSaveSQLBody body = new AnalyticServiceAnalyticServiceSaveSQLBody(); // AnalyticServiceAnalyticServiceSaveSQLBody | 
    +final InsightsServiceRetentionRequest body = new InsightsServiceRetentionRequest(); // InsightsServiceRetentionRequest | 
     
     try {
    -    final result = await api_instance.saveSQL(owner, slug, body);
    +    final result = await api_instance.retention2(body);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->saveSQL: $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 | username or organization name
    -        String slug = slug_example; // String | project slug
    -        AnalyticServiceAnalyticServiceSaveSQLBody body = ; // AnalyticServiceAnalyticServiceSaveSQLBody | 
    +        InsightsServiceRetentionRequest body = ; // InsightsServiceRetentionRequest | 
     
             try {
    -            analytic_service.SaveSQLResponse result = apiInstance.saveSQL(owner, slug, body);
    +            insights_service.RetentionResponse result = apiInstance.retention2(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DataApi#saveSQL");
    +            System.err.println("Exception when calling DataApi#retention2");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -15793,15 +15760,11 @@ 

    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) -AnalyticServiceAnalyticServiceSaveSQLBody *body = ; // +InsightsServiceRetentionRequest *body = ; // -// Save SQL -[apiInstance saveSQLWith:owner - slug:slug - body:body - completionHandler: ^(analytic_service.SaveSQLResponse output, NSError* error) { +// Retention query +[apiInstance retention2With:body + completionHandler: ^(insights_service.RetentionResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -15812,7 +15775,7 @@

    Usage and SDK Samples

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

    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 = ; // {AnalyticServiceAnalyticServiceSaveSQLBody} +var body = ; // {InsightsServiceRetentionRequest} var callback = function(error, data, response) { if (error) { @@ -15835,14 +15796,14 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

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

    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 AnalyticServiceAnalyticServiceSaveSQLBody(); // AnalyticServiceAnalyticServiceSaveSQLBody | + var body = new InsightsServiceRetentionRequest(); // InsightsServiceRetentionRequest | try { - // Save SQL - analytic_service.SaveSQLResponse result = apiInstance.saveSQL(owner, slug, body); + // Retention query + insights_service.RetentionResponse result = apiInstance.retention2(body); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DataApi.saveSQL: " + e.Message ); + Debug.Print("Exception when calling DataApi.retention2: " + e.Message ); } } } @@ -15879,7 +15838,7 @@

    Usage and SDK Samples

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

    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 = ; // AnalyticServiceAnalyticServiceSaveSQLBody | +$body = ; // InsightsServiceRetentionRequest | try { - $result = $api_instance->saveSQL($owner, $slug, $body); + $result = $api_instance->retention2($body); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DataApi->saveSQL: ', $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;
    @@ -15915,20 +15872,18 @@ 

    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::AnalyticServiceAnalyticServiceSaveSQLBody->new(); # AnalyticServiceAnalyticServiceSaveSQLBody | +my $body = WWW::OPenAPIClient::Object::InsightsServiceRetentionRequest->new(); # InsightsServiceRetentionRequest | eval { - my $result = $api_instance->saveSQL(owner => $owner, slug => $slug, body => $body); + my $result = $api_instance->retention2(body => $body); print Dumper($result); }; if ($@) { - warn "Exception when calling DataApi->saveSQL: $@\n"; + warn "Exception when calling DataApi->retention2: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -15942,28 +15897,24 @@ 

    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 = # AnalyticServiceAnalyticServiceSaveSQLBody | +body = # InsightsServiceRetentionRequest | try: - # Save SQL - api_response = api_instance.save_sql(owner, slug, body) + # Retention query + api_response = api_instance.retention2(body) pprint(api_response) except ApiException as e: - print("Exception when calling DataApi->saveSQL: %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 = ; // AnalyticServiceAnalyticServiceSaveSQLBody
    +    let body = ; // InsightsServiceRetentionRequest
     
         let mut context = DataApi::Context::default();
    -    let result = client.saveSQL(owner, slug, body, &context).wait();
    +    let result = client.retention2(body, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -15978,59 +15929,6 @@ 

    Scopes

    Parameters

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

    Parameters

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

    Parameters

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

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    saveSQL2

    +

    saveSQL

    Save SQL

    @@ -16179,37 +16077,37 @@

    saveSQL2

    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/analytics/{owner}/{slug}/sql/save_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/analytics/sql/save_query" \
    + "https://app.sentio.xyz/api/v1/analytics/{owner}/{slug}/sql/save_query" \
      -d ''
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -16230,13 +16128,15 @@ 

    Usage and SDK Samples

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

    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 | username or organization name
    +final String slug = new String(); // String | project slug
    +final AnalyticServiceAnalyticServiceSaveSQLBody body = new AnalyticServiceAnalyticServiceSaveSQLBody(); // AnalyticServiceAnalyticServiceSaveSQLBody | 
     
     try {
    -    final result = await api_instance.saveSQL2(body);
    +    final result = await api_instance.saveSQL(owner, slug, body);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->saveSQL2: $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();
    -        AnalyticServiceSaveSQLRequest body = ; // AnalyticServiceSaveSQLRequest | 
    +        String owner = owner_example; // String | username or organization name
    +        String slug = slug_example; // String | project slug
    +        AnalyticServiceAnalyticServiceSaveSQLBody body = ; // AnalyticServiceAnalyticServiceSaveSQLBody | 
     
             try {
    -            analytic_service.SaveSQLResponse result = apiInstance.saveSQL2(body);
    +            analytic_service.SaveSQLResponse result = apiInstance.saveSQL(owner, slug, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DataApi#saveSQL2");
    +            System.err.println("Exception when calling DataApi#saveSQL");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -16294,10 +16198,14 @@ 

    Usage and SDK Samples

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

    Usage and SDK Samples

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

    Usage and SDK Samples

    // Create an instance of the API class var api = new SentioApi.DataApi() -var body = ; // {AnalyticServiceSaveSQLRequest} +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) { @@ -16330,14 +16240,14 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    namespace Example { - public class saveSQL2Example + public class saveSQLExample { public void main() { @@ -16357,14 +16267,16 @@

    Usage and SDK Samples

    // Create an instance of the API class var apiInstance = new DataApi(); - var body = new AnalyticServiceSaveSQLRequest(); // AnalyticServiceSaveSQLRequest | + 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 { // Save SQL - analytic_service.SaveSQLResponse result = apiInstance.saveSQL2(body); + analytic_service.SaveSQLResponse result = apiInstance.saveSQL(owner, slug, body); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DataApi.saveSQL2: " + e.Message ); + Debug.Print("Exception when calling DataApi.saveSQL: " + e.Message ); } } } @@ -16372,7 +16284,7 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    // Create an instance of the API class $api_instance = new OpenAPITools\Client\Api\DataApi(); -$body = ; // AnalyticServiceSaveSQLRequest | +$owner = owner_example; // String | username or organization name +$slug = slug_example; // String | project slug +$body = ; // AnalyticServiceAnalyticServiceSaveSQLBody | try { - $result = $api_instance->saveSQL2($body); + $result = $api_instance->saveSQL($owner, $slug, $body); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DataApi->saveSQL2: ', $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;
    @@ -16406,18 +16320,20 @@ 

    Usage and SDK Samples

    # Create an instance of the API class my $api_instance = WWW::OPenAPIClient::DataApi->new(); -my $body = WWW::OPenAPIClient::Object::AnalyticServiceSaveSQLRequest->new(); # AnalyticServiceSaveSQLRequest | +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->saveSQL2(body => $body); + my $result = $api_instance->saveSQL(owner => $owner, slug => $slug, body => $body); print Dumper($result); }; if ($@) { - warn "Exception when calling DataApi->saveSQL2: $@\n"; + warn "Exception when calling DataApi->saveSQL: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -16431,24 +16347,28 @@ 

    Usage and SDK Samples

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

    Scopes

    Parameters

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

    Parameters

    "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/analytic_service.SaveSQLRequest" + "$ref" : "#/components/schemas/analytic_service.AnalyticService.SaveSQLBody" } } }, @@ -16503,12 +16476,12 @@

    Parameters

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

    Parameters

    Responses

    -

    -

    +

    +

    -

    - -
    -

    DebugAndSimulation

    -
    -
    +
    +
    -

    getCallTraceByBundle

    -

    Get trace by bundle simulation

    +

    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.


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

    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}/{chainId}/bundle/{bundleId}/call_trace?withInternalCalls=true&disableOptimizer=true&ignoreGasCost=true"
    + -H "Content-Type: application/json" \
    + "https://app.sentio.xyz/api/v1/analytics/sql/save_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.DataApi;
     
     import java.io.File;
     import java.util.*;
     
    -public class DebugAndSimulationApiExample {
    +public class DataApiExample {
         public static void main(String[] args) {
             ApiClient defaultClient = Configuration.getDefaultApiClient();
     
    @@ -16659,20 +16634,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 | - 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. + DataApi apiInstance = new DataApi(); + AnalyticServiceSaveSQLRequest body = ; // AnalyticServiceSaveSQLRequest | try { - google.api.HttpBody result = apiInstance.getCallTraceByBundle(owner, slug, chainId, bundleId, withInternalCalls, disableOptimizer, ignoreGasCost); + analytic_service.SaveSQLResponse result = apiInstance.saveSQL2(body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByBundle"); + System.err.println("Exception when calling DataApi#saveSQL2"); e.printStackTrace(); } } @@ -16680,58 +16649,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 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.
    +final AnalyticServiceSaveSQLRequest body = new AnalyticServiceSaveSQLRequest(); // AnalyticServiceSaveSQLRequest | 
     
     try {
    -    final result = await api_instance.getCallTraceByBundle(owner, slug, chainId, bundleId, withInternalCalls, disableOptimizer, ignoreGasCost);
    +    final result = await api_instance.saveSQL2(body);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->getCallTraceByBundle: $e\n');
    +    print('Exception when calling DefaultApi->saveSQL2: $e\n');
     }
     
     
    -
    -
    import org.openapitools.client.api.DebugAndSimulationApi;
    +                          
    +
    import org.openapitools.client.api.DataApi;
     
    -public class DebugAndSimulationApiExample {
    +public class DataApiExample {
         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 | 
    -        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.
    +        DataApi apiInstance = new DataApi();
    +        AnalyticServiceSaveSQLRequest body = ; // AnalyticServiceSaveSQLRequest | 
     
             try {
    -            google.api.HttpBody result = apiInstance.getCallTraceByBundle(owner, slug, chainId, bundleId, withInternalCalls, disableOptimizer, ignoreGasCost);
    +            analytic_service.SaveSQLResponse result = apiInstance.saveSQL2(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByBundle");
    +            System.err.println("Exception when calling DataApi#saveSQL2");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -16741,24 +16698,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) -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) +DataApi *apiInstance = [[DataApi alloc] init]; +AnalyticServiceSaveSQLRequest *body = ; // -// 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) { +// Save SQL +[apiInstance saveSQL2With:body + completionHandler: ^(analytic_service.SaveSQLResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -16769,7 +16714,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -16780,16 +16725,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 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 api = new SentioApi.DataApi() +var body = ; // {AnalyticServiceSaveSQLRequest} var callback = function(error, data, response) { if (error) { @@ -16798,14 +16735,14 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    namespace Example { - public class getCallTraceByBundleExample + public class saveSQL2Example { public void main() { @@ -16824,21 +16761,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 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) + var apiInstance = new DataApi(); + var body = new AnalyticServiceSaveSQLRequest(); // AnalyticServiceSaveSQLRequest | try { - // Get trace by bundle simulation - google.api.HttpBody result = apiInstance.getCallTraceByBundle(owner, slug, chainId, bundleId, withInternalCalls, disableOptimizer, ignoreGasCost); + // Save SQL + analytic_service.SaveSQLResponse result = apiInstance.saveSQL2(body); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DebugAndSimulationApi.getCallTraceByBundle: " + e.Message ); + Debug.Print("Exception when calling DataApi.saveSQL2: " + e.Message ); } } } @@ -16846,7 +16777,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -16856,28 +16787,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 | -$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. +$api_instance = new OpenAPITools\Client\Api\DataApi(); +$body = ; // AnalyticServiceSaveSQLRequest | try { - $result = $api_instance->getCallTraceByBundle($owner, $slug, $chainId, $bundleId, $withInternalCalls, $disableOptimizer, $ignoreGasCost); + $result = $api_instance->saveSQL2($body); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DebugAndSimulationApi->getCallTraceByBundle: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DataApi->saveSQL2: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
    -use WWW::OPenAPIClient::DebugAndSimulationApi;
    +use WWW::OPenAPIClient::DataApi;
     
     # Configure API key authorization: ApiKeyAuth
     $WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
    @@ -16885,25 +16810,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 $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. +my $api_instance = WWW::OPenAPIClient::DataApi->new(); +my $body = WWW::OPenAPIClient::Object::AnalyticServiceSaveSQLRequest->new(); # AnalyticServiceSaveSQLRequest | eval { - my $result = $api_instance->getCallTraceByBundle(owner => $owner, slug => $slug, chainId => $chainId, bundleId => $bundleId, withInternalCalls => $withInternalCalls, disableOptimizer => $disableOptimizer, ignoreGasCost => $ignoreGasCost); + my $result = $api_instance->saveSQL2(body => $body); print Dumper($result); }; if ($@) { - warn "Exception when calling DebugAndSimulationApi->getCallTraceByBundle: $@\n"; + warn "Exception when calling DataApi->saveSQL2: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -16916,37 +16835,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) -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) +api_instance = openapi_client.DataApi() +body = # AnalyticServiceSaveSQLRequest | try: - # Get trace by bundle simulation - api_response = api_instance.get_call_trace_by_bundle(owner, slug, chainId, bundleId, withInternalCalls=withInternalCalls, disableOptimizer=disableOptimizer, ignoreGasCost=ignoreGasCost) + # Save SQL + api_response = api_instance.save_sql2(body) pprint(api_response) except ApiException as e: - print("Exception when calling DebugAndSimulationApi->getCallTraceByBundle: %s\n" % e)
    + print("Exception when calling DataApi->saveSQL2: %s\n" % e)
    -
    -
    extern crate DebugAndSimulationApi;
    +                            
    +
    extern crate DataApi;
     
     pub fn main() {
    -    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 body = ; // AnalyticServiceSaveSQLRequest
     
    -    let mut context = DebugAndSimulationApi::Context::default();
    -    let result = client.getCallTraceByBundle(owner, slug, chainId, bundleId, withInternalCalls, disableOptimizer, ignoreGasCost, &context).wait();
    +    let mut context = DataApi::Context::default();
    +    let result = client.saveSQL2(body, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -16961,194 +16868,88 @@ 

    Scopes

    Parameters

    -
    Path parameters
    - - - - - - - - - +
    Body parameters
    +
    NameDescription
    owner* - - -
    -
    -
    - - String - -
    -
    - Required -
    -
    -
    -
    slug*
    + + + + + - - - +
    NameDescription
    body * +

    + +
    chainId* - - -
    -
    -
    - - String - - -
    -
    - Required -
    -
    -
    -
    - bundleId* - -
    -
    -
    - - String - +

    Responses

    +

    +

    + -
    -
    - Required -
    -
    -
    - - - +

    -
    -
    +
    +
    +

    DebugAndSimulation

    +
    +
    -

    getCallTraceBySimulation

    -

    Get trace by simulation

    +

    getCallTraceByBundle

    +

    Get trace by bundle simulation

    @@ -17212,35 +17016,35 @@

    getCallTraceBySimulation


    -
    /api/v1/solidity/{owner}/{slug}/{chainId}/simulation/{simulationId}/call_trace
    +
    /api/v1/solidity/{owner}/{slug}/{chainId}/bundle/{bundleId}/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}/bundle/{bundleId}/call_trace?withInternalCalls=true&disableOptimizer=true&ignoreGasCost=true"
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -17264,16 +17068,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 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 { - google.api.HttpBody result = apiInstance.getCallTraceBySimulation(owner, slug, chainId, simulationId, withInternalCalls, disableOptimizer, ignoreGasCost); + 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 DebugAndSimulationApi#getCallTraceBySimulation"); + System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByBundle"); e.printStackTrace(); } } @@ -17281,7 +17085,7 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
    @@ -17289,22 +17093,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 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.getCallTraceBySimulation(owner, slug, chainId, simulationId, withInternalCalls, disableOptimizer, ignoreGasCost); + final result = await api_instance.getCallTraceByBundle(owner, slug, chainId, bundleId, withInternalCalls, disableOptimizer, ignoreGasCost); print(result); } catch (e) { - print('Exception when calling DefaultApi->getCallTraceBySimulation: $e\n'); + print('Exception when calling DefaultApi->getCallTraceByBundle: $e\n'); }
    -
    +
    import org.openapitools.client.api.DebugAndSimulationApi;
     
     public class DebugAndSimulationApiExample {
    @@ -17313,26 +17117,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 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 { - google.api.HttpBody result = apiInstance.getCallTraceBySimulation(owner, slug, chainId, simulationId, withInternalCalls, disableOptimizer, ignoreGasCost); + 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 DebugAndSimulationApi#getCallTraceBySimulation"); + System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByBundle"); e.printStackTrace(); } } }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -17346,16 +17150,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 *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) -// Get trace by simulation -[apiInstance getCallTraceBySimulationWith:owner +// Get trace by bundle simulation +[apiInstance getCallTraceByBundleWith:owner slug:slug chainId:chainId - simulationId:simulationId + bundleId:bundleId withInternalCalls:withInternalCalls disableOptimizer:disableOptimizer ignoreGasCost:ignoreGasCost @@ -17370,7 +17174,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -17385,7 +17189,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 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. @@ -17399,14 +17203,14 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    namespace Example { - public class getCallTraceBySimulationExample + public class getCallTraceByBundleExample { public void main() { @@ -17429,17 +17233,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 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 { - // Get trace by simulation - google.api.HttpBody result = apiInstance.getCallTraceBySimulation(owner, slug, chainId, simulationId, withInternalCalls, disableOptimizer, ignoreGasCost); + // 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 DebugAndSimulationApi.getCallTraceBySimulation: " + e.Message ); + Debug.Print("Exception when calling DebugAndSimulationApi.getCallTraceByBundle: " + e.Message ); } } } @@ -17447,7 +17251,7 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    $owner = owner_example; // String | $slug = slug_example; // String | $chainId = chainId_example; // String | -$simulationId = simulationId_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->getCallTraceBySimulation($owner, $slug, $chainId, $simulationId, $withInternalCalls, $disableOptimizer, $ignoreGasCost); + $result = $api_instance->getCallTraceByBundle($owner, $slug, $chainId, $bundleId, $withInternalCalls, $disableOptimizer, $ignoreGasCost); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DebugAndSimulationApi->getCallTraceBySimulation: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DebugAndSimulationApi->getCallTraceByBundle: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DebugAndSimulationApi;
    @@ -17490,21 +17294,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 $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->getCallTraceBySimulation(owner => $owner, slug => $slug, chainId => $chainId, simulationId => $simulationId, withInternalCalls => $withInternalCalls, disableOptimizer => $disableOptimizer, ignoreGasCost => $ignoreGasCost); + 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 DebugAndSimulationApi->getCallTraceBySimulation: $@\n"; + warn "Exception when calling DebugAndSimulationApi->getCallTraceByBundle: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -17521,33 +17325,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) +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: - # 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 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 DebugAndSimulationApi->getCallTraceBySimulation: %s\n" % e)
    + print("Exception when calling DebugAndSimulationApi->getCallTraceByBundle: %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 bundleId = bundleId_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.getCallTraceByBundle(owner, slug, chainId, bundleId, withInternalCalls, disableOptimizer, ignoreGasCost, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -17572,7 +17376,7 @@ 

    Parameters

    -
    +
    @@ -17592,7 +17396,7 @@

    Parameters

    -
    +
    @@ -17612,7 +17416,7 @@

    Parameters

    -
    +
    @@ -17628,11 +17432,11 @@

    Parameters

    - simulationId* + bundleId* -
    +
    @@ -17663,7 +17467,7 @@

    Parameters

    -
    +
    @@ -17683,7 +17487,7 @@

    Parameters

    -
    +
    @@ -17703,7 +17507,7 @@

    Parameters

    -
    +
    @@ -17722,23 +17526,23 @@

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    getCallTraceByTransaction

    -

    Get trace by transaction

    +

    getCallTraceBySimulation

    +

    Get trace by simulation

    -

    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}/{chainId}/simulation/{simulationId}/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}/transaction/{txHash}/call_trace?withInternalCalls=true&disableOptimizer=true&ignoreGasCost=true"
    + "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/{chainId}/simulation/{simulationId}/call_trace?withInternalCalls=true&disableOptimizer=true&ignoreGasCost=true"
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -17871,16 +17669,16 @@ 

    Usage and SDK Samples

    String owner = owner_example; // String | String slug = slug_example; // String | String chainId = chainId_example; // String | - String txHash = txHash_example; // String | + String simulationId = simulationId_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.getCallTraceByTransaction(owner, slug, chainId, txHash, withInternalCalls, disableOptimizer, ignoreGasCost); + google.api.HttpBody result = apiInstance.getCallTraceBySimulation(owner, slug, chainId, simulationId, withInternalCalls, disableOptimizer, ignoreGasCost); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByTransaction"); + System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceBySimulation"); e.printStackTrace(); } } @@ -17888,7 +17686,7 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
    @@ -17896,22 +17694,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 txHash = new String(); // String | +final String simulationId = 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.getCallTraceByTransaction(owner, slug, chainId, txHash, withInternalCalls, disableOptimizer, ignoreGasCost); + final result = await api_instance.getCallTraceBySimulation(owner, slug, chainId, simulationId, withInternalCalls, disableOptimizer, ignoreGasCost); print(result); } catch (e) { - print('Exception when calling DefaultApi->getCallTraceByTransaction: $e\n'); + print('Exception when calling DefaultApi->getCallTraceBySimulation: $e\n'); }
    -
    +
    import org.openapitools.client.api.DebugAndSimulationApi;
     
     public class DebugAndSimulationApiExample {
    @@ -17920,26 +17718,26 @@ 

    Usage and SDK Samples

    String owner = owner_example; // String | String slug = slug_example; // String | String chainId = chainId_example; // String | - String txHash = txHash_example; // String | + String simulationId = simulationId_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.getCallTraceByTransaction(owner, slug, chainId, txHash, withInternalCalls, disableOptimizer, ignoreGasCost); + google.api.HttpBody result = apiInstance.getCallTraceBySimulation(owner, slug, chainId, simulationId, withInternalCalls, disableOptimizer, ignoreGasCost); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByTransaction"); + System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceBySimulation"); e.printStackTrace(); } } }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -17953,16 +17751,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 *txHash = txHash_example; // (default to null) +String *simulationId = simulationId_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 transaction -[apiInstance getCallTraceByTransactionWith:owner +// Get trace by simulation +[apiInstance getCallTraceBySimulationWith:owner slug:slug chainId:chainId - txHash:txHash + simulationId:simulationId withInternalCalls:withInternalCalls disableOptimizer:disableOptimizer ignoreGasCost:ignoreGasCost @@ -17977,7 +17775,7 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    var owner = owner_example; // {String} var slug = slug_example; // {String} var chainId = chainId_example; // {String} -var txHash = txHash_example; // {String} +var simulationId = simulationId_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. @@ -18006,14 +17804,14 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    namespace Example { - public class getCallTraceByTransactionExample + public class getCallTraceBySimulationExample { public void main() { @@ -18036,17 +17834,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 txHash = txHash_example; // String | (default to null) + var simulationId = simulationId_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 transaction - google.api.HttpBody result = apiInstance.getCallTraceByTransaction(owner, slug, chainId, txHash, withInternalCalls, disableOptimizer, ignoreGasCost); + // Get trace by simulation + google.api.HttpBody result = apiInstance.getCallTraceBySimulation(owner, slug, chainId, simulationId, withInternalCalls, disableOptimizer, ignoreGasCost); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DebugAndSimulationApi.getCallTraceByTransaction: " + e.Message ); + Debug.Print("Exception when calling DebugAndSimulationApi.getCallTraceBySimulation: " + e.Message ); } } } @@ -18054,7 +17852,7 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    $owner = owner_example; // String | $slug = slug_example; // String | $chainId = chainId_example; // String | -$txHash = txHash_example; // String | +$simulationId = simulationId_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->getCallTraceByTransaction($owner, $slug, $chainId, $txHash, $withInternalCalls, $disableOptimizer, $ignoreGasCost); + $result = $api_instance->getCallTraceBySimulation($owner, $slug, $chainId, $simulationId, $withInternalCalls, $disableOptimizer, $ignoreGasCost); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DebugAndSimulationApi->getCallTraceByTransaction: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DebugAndSimulationApi->getCallTraceBySimulation: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DebugAndSimulationApi;
    @@ -18097,21 +17895,21 @@ 

    Usage and SDK Samples

    my $owner = owner_example; # String | my $slug = slug_example; # String | my $chainId = chainId_example; # String | -my $txHash = txHash_example; # String | +my $simulationId = simulationId_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->getCallTraceByTransaction(owner => $owner, slug => $slug, chainId => $chainId, txHash => $txHash, withInternalCalls => $withInternalCalls, disableOptimizer => $disableOptimizer, ignoreGasCost => $ignoreGasCost); + my $result = $api_instance->getCallTraceBySimulation(owner => $owner, slug => $slug, chainId => $chainId, simulationId => $simulationId, withInternalCalls => $withInternalCalls, disableOptimizer => $disableOptimizer, ignoreGasCost => $ignoreGasCost); print Dumper($result); }; if ($@) { - warn "Exception when calling DebugAndSimulationApi->getCallTraceByTransaction: $@\n"; + warn "Exception when calling DebugAndSimulationApi->getCallTraceBySimulation: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -18128,33 +17926,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) -txHash = txHash_example # String | (default to null) +simulationId = simulationId_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 transaction - api_response = api_instance.get_call_trace_by_transaction(owner, slug, chainId, txHash, withInternalCalls=withInternalCalls, disableOptimizer=disableOptimizer, ignoreGasCost=ignoreGasCost) + # Get trace by simulation + api_response = api_instance.get_call_trace_by_simulation(owner, slug, chainId, simulationId, withInternalCalls=withInternalCalls, disableOptimizer=disableOptimizer, ignoreGasCost=ignoreGasCost) pprint(api_response) except ApiException as e: - print("Exception when calling DebugAndSimulationApi->getCallTraceByTransaction: %s\n" % e)
    + print("Exception when calling DebugAndSimulationApi->getCallTraceBySimulation: %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 simulationId = simulationId_example; // String
         let withInternalCalls = true; // Boolean
         let disableOptimizer = true; // Boolean
         let ignoreGasCost = true; // Boolean
     
         let mut context = DebugAndSimulationApi::Context::default();
    -    let result = client.getCallTraceByTransaction(owner, slug, chainId, txHash, withInternalCalls, disableOptimizer, ignoreGasCost, &context).wait();
    +    let result = client.getCallTraceBySimulation(owner, slug, chainId, simulationId, withInternalCalls, disableOptimizer, ignoreGasCost, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -18179,7 +17977,7 @@ 

    Parameters

    -
    +
    @@ -18199,7 +17997,7 @@

    Parameters

    -
    +
    @@ -18219,7 +18017,7 @@

    Parameters

    -
    +
    @@ -18235,11 +18033,11 @@

    Parameters

    - txHash* + simulationId* -
    +
    @@ -18270,7 +18068,7 @@

    Parameters

    -
    +
    @@ -18290,7 +18088,7 @@

    Parameters

    -
    +
    @@ -18310,7 +18108,7 @@

    Parameters

    -
    +
    @@ -18329,23 +18127,23 @@

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    getSimulation

    -

    Get simulation by ID

    +

    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}/simulation/{simulationId}
    +
    /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}/simulation/{simulationId}"
    + "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.*;
    @@ -18471,13 +18275,17 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi apiInstance = new DebugAndSimulationApi(); String owner = owner_example; // String | String slug = slug_example; // String | - String simulationId = simulationId_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. try { - solidity_service.GetSimulationResponse result = apiInstance.getSimulation(owner, slug, simulationId); + 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#getSimulation"); + System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByTransaction"); e.printStackTrace(); } } @@ -18485,26 +18293,30 @@

    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 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.
     
     try {
    -    final result = await api_instance.getSimulation(owner, slug, simulationId);
    +    final result = await api_instance.getCallTraceByTransaction(owner, slug, chainId, txHash, withInternalCalls, disableOptimizer, ignoreGasCost);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->getSimulation: $e\n');
    +    print('Exception when calling DefaultApi->getCallTraceByTransaction: $e\n');
     }
     
     
    -
    +
    import org.openapitools.client.api.DebugAndSimulationApi;
     
     public class DebugAndSimulationApiExample {
    @@ -18512,23 +18324,27 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi apiInstance = new DebugAndSimulationApi(); String owner = owner_example; // String | String slug = slug_example; // String | - String simulationId = simulationId_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. try { - solidity_service.GetSimulationResponse result = apiInstance.getSimulation(owner, slug, simulationId); + 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#getSimulation"); + System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByTransaction"); e.printStackTrace(); } } }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -18541,13 +18357,21 @@ 

    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 *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) -// Get simulation by ID -[apiInstance getSimulationWith:owner +// Get trace by transaction +[apiInstance getCallTraceByTransactionWith:owner slug:slug - simulationId:simulationId - completionHandler: ^(solidity_service.GetSimulationResponse output, NSError* error) { + chainId:chainId + txHash:txHash + withInternalCalls:withInternalCalls + disableOptimizer:disableOptimizer + ignoreGasCost:ignoreGasCost + completionHandler: ^(google.api.HttpBody output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -18558,7 +18382,7 @@

    Usage and SDK Samples

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

    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 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 callback = function(error, data, response) { if (error) { @@ -18581,14 +18411,14 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

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

    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 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) try { - // Get simulation by ID - solidity_service.GetSimulationResponse result = apiInstance.getSimulation(owner, slug, simulationId); + // 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.getSimulation: " + e.Message ); + Debug.Print("Exception when calling DebugAndSimulationApi.getCallTraceByTransaction: " + e.Message ); } } } @@ -18625,7 +18459,7 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    $api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi(); $owner = owner_example; // String | $slug = slug_example; // String | -$simulationId = simulationId_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. try { - $result = $api_instance->getSimulation($owner, $slug, $simulationId); + $result = $api_instance->getCallTraceByTransaction($owner, $slug, $chainId, $txHash, $withInternalCalls, $disableOptimizer, $ignoreGasCost); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DebugAndSimulationApi->getSimulation: ', $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;
    @@ -18663,18 +18501,22 @@ 

    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 $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. eval { - my $result = $api_instance->getSimulation(owner => $owner, slug => $slug, simulationId => $simulationId); + 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->getSimulation: $@\n"; + warn "Exception when calling DebugAndSimulationApi->getCallTraceByTransaction: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -18690,26 +18532,34 @@ 

    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) +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) try: - # Get simulation by ID - api_response = api_instance.get_simulation(owner, slug, simulationId) + # 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->getSimulation: %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 simulationId = simulationId_example; // String
    +    let chainId = chainId_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.getSimulation(owner, slug, simulationId, &context).wait();
    +    let result = client.getCallTraceByTransaction(owner, slug, chainId, txHash, withInternalCalls, disableOptimizer, ignoreGasCost, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -18734,7 +18584,7 @@ 

    Parameters

    -
    +
    @@ -18754,7 +18604,7 @@

    Parameters

    -
    +
    @@ -18770,11 +18620,31 @@

    Parameters

    - simulationId* + chainId* -
    +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    + + + + txHash* + + + +
    @@ -18795,25 +18665,92 @@

    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

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    getSimulationBundleInProject

    -

    Get bundle simulation by ID

    +

    getSimulation

    +

    Get simulation by ID

    @@ -18888,35 +18825,35 @@

    getSimulationBundleInProject


    -
    /api/v1/solidity/{owner}/{slug}/simulation_bundle/{bundleId}
    +
    /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}/simulation_bundle/{bundleId}"
    + "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.*;
    @@ -18939,13 +18876,13 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi apiInstance = new DebugAndSimulationApi(); String owner = owner_example; // String | String slug = slug_example; // String | - String bundleId = bundleId_example; // String | + String simulationId = simulationId_example; // String | try { - solidity_service.GetSimulationBundleResponse result = apiInstance.getSimulationBundleInProject(owner, slug, bundleId); + solidity_service.GetSimulationResponse result = apiInstance.getSimulation(owner, slug, simulationId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#getSimulationBundleInProject"); + System.err.println("Exception when calling DebugAndSimulationApi#getSimulation"); e.printStackTrace(); } } @@ -18953,26 +18890,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 bundleId = new String(); // String | 
    +final String simulationId = new String(); // String | 
     
     try {
    -    final result = await api_instance.getSimulationBundleInProject(owner, slug, bundleId);
    +    final result = await api_instance.getSimulation(owner, slug, simulationId);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->getSimulationBundleInProject: $e\n');
    +    print('Exception when calling DefaultApi->getSimulation: $e\n');
     }
     
     
    -
    +
    import org.openapitools.client.api.DebugAndSimulationApi;
     
     public class DebugAndSimulationApiExample {
    @@ -18980,23 +18917,23 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi apiInstance = new DebugAndSimulationApi(); String owner = owner_example; // String | String slug = slug_example; // String | - String bundleId = bundleId_example; // String | + String simulationId = simulationId_example; // String | try { - solidity_service.GetSimulationBundleResponse result = apiInstance.getSimulationBundleInProject(owner, slug, bundleId); + solidity_service.GetSimulationResponse result = apiInstance.getSimulation(owner, slug, simulationId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#getSimulationBundleInProject"); + System.err.println("Exception when calling DebugAndSimulationApi#getSimulation"); e.printStackTrace(); } } }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -19009,13 +18946,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 *bundleId = bundleId_example; // (default to null) +String *simulationId = simulationId_example; // (default to null) -// Get bundle simulation by ID -[apiInstance getSimulationBundleInProjectWith:owner +// Get simulation by ID +[apiInstance getSimulationWith:owner slug:slug - bundleId:bundleId - completionHandler: ^(solidity_service.GetSimulationBundleResponse output, NSError* error) { + simulationId:simulationId + completionHandler: ^(solidity_service.GetSimulationResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -19026,7 +18963,7 @@

    Usage and SDK Samples

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

    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 simulationId = simulationId_example; // {String} var callback = function(error, data, response) { if (error) { @@ -19049,14 +18986,14 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    namespace Example { - public class getSimulationBundleInProjectExample + public class getSimulationExample { public void main() { @@ -19078,14 +19015,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 bundleId = bundleId_example; // String | (default to null) + var simulationId = simulationId_example; // String | (default to null) try { - // Get bundle simulation by ID - solidity_service.GetSimulationBundleResponse result = apiInstance.getSimulationBundleInProject(owner, slug, bundleId); + // 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.getSimulationBundleInProject: " + e.Message ); + Debug.Print("Exception when calling DebugAndSimulationApi.getSimulation: " + e.Message ); } } } @@ -19093,7 +19030,7 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    $api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi(); $owner = owner_example; // String | $slug = slug_example; // String | -$bundleId = bundleId_example; // String | +$simulationId = simulationId_example; // String | try { - $result = $api_instance->getSimulationBundleInProject($owner, $slug, $bundleId); + $result = $api_instance->getSimulation($owner, $slug, $simulationId); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DebugAndSimulationApi->getSimulationBundleInProject: ', $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;
    @@ -19131,18 +19068,18 @@ 

    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 $simulationId = simulationId_example; # String | eval { - my $result = $api_instance->getSimulationBundleInProject(owner => $owner, slug => $slug, bundleId => $bundleId); + my $result = $api_instance->getSimulation(owner => $owner, slug => $slug, simulationId => $simulationId); print Dumper($result); }; if ($@) { - warn "Exception when calling DebugAndSimulationApi->getSimulationBundleInProject: $@\n"; + warn "Exception when calling DebugAndSimulationApi->getSimulation: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -19158,26 +19095,26 @@ 

    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) +simulationId = simulationId_example # String | (default to null) try: - # Get bundle simulation by ID - api_response = api_instance.get_simulation_bundle_in_project(owner, slug, bundleId) + # 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->getSimulationBundleInProject: %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 bundleId = bundleId_example; // String
    +    let simulationId = simulationId_example; // String
     
         let mut context = DebugAndSimulationApi::Context::default();
    -    let result = client.getSimulationBundleInProject(owner, slug, bundleId, &context).wait();
    +    let result = client.getSimulation(owner, slug, simulationId, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -19202,7 +19139,7 @@ 

    Parameters

    -
    +
    @@ -19222,7 +19159,7 @@

    Parameters

    -
    +
    @@ -19238,11 +19175,11 @@

    Parameters

    - bundleId* + simulationId* -
    +
    @@ -19265,23 +19202,23 @@

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    getSimulations

    -

    Get list of simulations

    +

    getSimulationBundleInProject

    +

    Get bundle simulation by ID

    @@ -19356,35 +19293,35 @@

    getSimulations


    -
    /api/v1/solidity/{owner}/{slug}/simulation
    +
    /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?labelContains=labelContains_example&page=56&pageSize=56"
    + "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.*;
    @@ -19407,15 +19344,13 @@ 

    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 | + String bundleId = bundleId_example; // String | try { - solidity_service.GetSimulationsResponse result = apiInstance.getSimulations(owner, slug, labelContains, page, pageSize); + solidity_service.GetSimulationBundleResponse result = apiInstance.getSimulationBundleInProject(owner, slug, bundleId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#getSimulations"); + System.err.println("Exception when calling DebugAndSimulationApi#getSimulationBundleInProject"); e.printStackTrace(); } } @@ -19423,28 +19358,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 labelContains = new String(); // String | 
    -final Integer page = new Integer(); // Integer | 
    -final Integer pageSize = new Integer(); // Integer | 
    +final String bundleId = new String(); // String | 
     
     try {
    -    final result = await api_instance.getSimulations(owner, slug, labelContains, page, pageSize);
    +    final result = await api_instance.getSimulationBundleInProject(owner, slug, bundleId);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->getSimulations: $e\n');
    +    print('Exception when calling DefaultApi->getSimulationBundleInProject: $e\n');
     }
     
     
    -
    +
    import org.openapitools.client.api.DebugAndSimulationApi;
     
     public class DebugAndSimulationApiExample {
    @@ -19452,25 +19385,23 @@ 

    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 | + String bundleId = bundleId_example; // String | try { - solidity_service.GetSimulationsResponse result = apiInstance.getSimulations(owner, slug, labelContains, page, pageSize); + solidity_service.GetSimulationBundleResponse result = apiInstance.getSimulationBundleInProject(owner, slug, bundleId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#getSimulations"); + System.err.println("Exception when calling DebugAndSimulationApi#getSimulationBundleInProject"); e.printStackTrace(); } } }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -19483,17 +19414,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 *labelContains = labelContains_example; // (optional) (default to null) -Integer *page = 56; // (optional) (default to null) -Integer *pageSize = 56; // (optional) (default to null) +String *bundleId = bundleId_example; // (default to null) -// Get list of simulations -[apiInstance getSimulationsWith:owner +// Get bundle simulation by ID +[apiInstance getSimulationBundleInProjectWith:owner slug:slug - labelContains:labelContains - page:page - pageSize:pageSize - completionHandler: ^(solidity_service.GetSimulationsResponse output, NSError* error) { + bundleId:bundleId + completionHandler: ^(solidity_service.GetSimulationBundleResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -19504,7 +19431,7 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

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

    Usage and SDK Samples

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

    Usage and SDK Samples

    namespace Example { - public class getSimulationsExample + public class getSimulationBundleInProjectExample { public void main() { @@ -19560,16 +19483,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 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 bundleId = bundleId_example; // String | (default to null) try { - // Get list of simulations - solidity_service.GetSimulationsResponse result = apiInstance.getSimulations(owner, slug, labelContains, page, pageSize); + // 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.getSimulations: " + e.Message ); + Debug.Print("Exception when calling DebugAndSimulationApi.getSimulationBundleInProject: " + e.Message ); } } } @@ -19577,7 +19498,7 @@

    Usage and SDK Samples

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

    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 | +$bundleId = bundleId_example; // String | try { - $result = $api_instance->getSimulations($owner, $slug, $labelContains, $page, $pageSize); + $result = $api_instance->getSimulationBundleInProject($owner, $slug, $bundleId); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DebugAndSimulationApi->getSimulations: ', $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;
    @@ -19617,20 +19536,18 @@ 

    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 $bundleId = bundleId_example; # String | eval { - my $result = $api_instance->getSimulations(owner => $owner, slug => $slug, labelContains => $labelContains, page => $page, pageSize => $pageSize); + my $result = $api_instance->getSimulationBundleInProject(owner => $owner, slug => $slug, bundleId => $bundleId); print Dumper($result); }; if ($@) { - warn "Exception when calling DebugAndSimulationApi->getSimulations: $@\n"; + warn "Exception when calling DebugAndSimulationApi->getSimulationBundleInProject: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -19646,30 +19563,26 @@ 

    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) +bundleId = bundleId_example # String | (default to null) try: - # Get list of simulations - api_response = api_instance.get_simulations(owner, slug, labelContains=labelContains, page=page, pageSize=pageSize) + # 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->getSimulations: %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 labelContains = labelContains_example; // String
    -    let page = 56; // Integer
    -    let pageSize = 56; // Integer
    +    let bundleId = bundleId_example; // String
     
         let mut context = DebugAndSimulationApi::Context::default();
    -    let result = client.getSimulations(owner, slug, labelContains, page, pageSize, &context).wait();
    +    let result = client.getSimulationBundleInProject(owner, slug, bundleId, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -19694,7 +19607,7 @@ 

    Parameters

    -
    +
    @@ -19714,7 +19627,7 @@

    Parameters

    -
    +
    @@ -19730,22 +19643,11 @@

    Parameters

    - - - - - -
    Query parameters
    - - - - - - + - - - - - -
    NameDescription
    labelContains
    bundleId* -
    +
    @@ -19753,71 +19655,38 @@

    Parameters

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

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    searchTransactions

    -

    Search transactions

    +

    getSimulations

    +

    Get list of simulations

    @@ -19892,35 +19761,35 @@

    searchTransactions


    -
    /api/v1/solidity/{owner}/{slug}/search_transactions
    +
    /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}/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"
    + "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.*;
    @@ -19943,26 +19812,15 @@ 

    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 labelContains = labelContains_example; // String | + Integer page = 56; // Integer | + Integer pageSize = 56; // Integer | try { - txindex.EvmSearchTransactionsResponse result = apiInstance.searchTransactions(owner, slug, chainId, address, includeDirect, includeTrace, includeIn, includeOut, startBlock, endBlock, startTimestamp, endTimestamp, transactionStatus, methodSignature, limit, pageToken); + 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#searchTransactions"); + System.err.println("Exception when calling DebugAndSimulationApi#getSimulations"); e.printStackTrace(); } } @@ -19970,39 +19828,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 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 labelContains = new String(); // String | 
    +final Integer page = new Integer(); // Integer | 
    +final Integer pageSize = new Integer(); // Integer | 
     
     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.getSimulations(owner, slug, labelContains, page, pageSize);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->searchTransactions: $e\n');
    +    print('Exception when calling DefaultApi->getSimulations: $e\n');
     }
     
     
    -
    +
    import org.openapitools.client.api.DebugAndSimulationApi;
     
     public class DebugAndSimulationApiExample {
    @@ -20010,36 +19857,25 @@ 

    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 labelContains = labelContains_example; // String | + Integer page = 56; // Integer | + Integer pageSize = 56; // Integer | try { - txindex.EvmSearchTransactionsResponse result = apiInstance.searchTransactions(owner, slug, chainId, address, includeDirect, includeTrace, includeIn, includeOut, startBlock, endBlock, startTimestamp, endTimestamp, transactionStatus, methodSignature, limit, pageToken); + 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#searchTransactions"); + System.err.println("Exception when calling DebugAndSimulationApi#getSimulations"); e.printStackTrace(); } } }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -20052,39 +19888,17 @@ 

    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) +String *labelContains = labelContains_example; // (optional) (default to null) +Integer *page = 56; // (optional) (default to null) +Integer *pageSize = 56; // (optional) (default to null) -// Search transactions -[apiInstance searchTransactionsWith:owner +// Get list of simulations +[apiInstance getSimulationsWith: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) { + labelContains:labelContains + page:page + pageSize:pageSize + completionHandler: ^(solidity_service.GetSimulationsResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -20095,7 +19909,7 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    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[]} + 'labelContains': labelContains_example, // {String} + 'page': 56, // {Integer} + 'pageSize': 56 // {Integer} }; var callback = function(error, data, response) { @@ -20133,14 +19936,14 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    namespace Example { - public class searchTransactionsExample + public class getSimulationsExample { public void main() { @@ -20162,27 +19965,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 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 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 { - // Search transactions - txindex.EvmSearchTransactionsResponse result = apiInstance.searchTransactions(owner, slug, chainId, address, includeDirect, includeTrace, includeIn, includeOut, startBlock, endBlock, startTimestamp, endTimestamp, transactionStatus, methodSignature, limit, pageToken); + // 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.searchTransactions: " + e.Message ); + Debug.Print("Exception when calling DebugAndSimulationApi.getSimulations: " + e.Message ); } } } @@ -20190,7 +19982,7 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    $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[] | +$labelContains = labelContains_example; // String | +$page = 56; // Integer | +$pageSize = 56; // Integer | try { - $result = $api_instance->searchTransactions($owner, $slug, $chainId, $address, $includeDirect, $includeTrace, $includeIn, $includeOut, $startBlock, $endBlock, $startTimestamp, $endTimestamp, $transactionStatus, $methodSignature, $limit, $pageToken); + $result = $api_instance->getSimulations($owner, $slug, $labelContains, $page, $pageSize); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DebugAndSimulationApi->searchTransactions: ', $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;
    @@ -20241,31 +20022,20 @@ 

    Usage and SDK Samples

    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[] | +my $labelContains = labelContains_example; # String | +my $page = 56; # Integer | +my $pageSize = 56; # Integer | 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); + my $result = $api_instance->getSimulations(owner => $owner, slug => $slug, labelContains => $labelContains, page => $page, pageSize => $pageSize); print Dumper($result); }; if ($@) { - warn "Exception when calling DebugAndSimulationApi->searchTransactions: $@\n"; + warn "Exception when calling DebugAndSimulationApi->getSimulations: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -20281,52 +20051,30 @@ 

    Usage and SDK Samples

    api_instance = openapi_client.DebugAndSimulationApi() owner = owner_example # String | (default to null) slug = slug_example # String | (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) +labelContains = labelContains_example # String | (optional) (default to null) +page = 56 # Integer | (optional) (default to null) +pageSize = 56 # Integer | (optional) (default to null) try: - # 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) + # 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->searchTransactions: %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 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 labelContains = labelContains_example; // String
    +    let page = 56; // Integer
    +    let pageSize = 56; // Integer
     
         let mut context = DebugAndSimulationApi::Context::default();
    -    let result = client.searchTransactions(owner, slug, chainId, address, includeDirect, includeTrace, includeIn, includeOut, startBlock, endBlock, startTimestamp, endTimestamp, transactionStatus, methodSignature, limit, pageToken, &context).wait();
    +    let result = client.getSimulations(owner, slug, labelContains, page, pageSize, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -20351,7 +20099,7 @@ 

    Parameters

    -
    +
    @@ -20371,7 +20119,7 @@

    Parameters

    -
    +
    @@ -20398,15 +20146,15 @@

    Parameters

    Name Description - chainId + labelContains -
    +
    - array[String] + String
    @@ -20415,16 +20163,19 @@

    Parameters

    - address + page -
    +
    - array[String] + Integer + + (int32) +
    @@ -20432,16 +20183,19 @@

    Parameters

    - includeDirect + pageSize -
    +
    - Boolean + Integer + + (int32) +
    @@ -20449,245 +20203,37 @@

    Parameters

    - includeTrace - - + -
    -
    -
    - - Boolean - +

    Responses

    +

    +

    + -
    -
    -
    - - - includeIn - + -
    -
    -
    - - Boolean - - -
    -
    -
    - - - - startBlock - - - -
    -
    -
    - - String - - - (int64) - - -
    -
    -
    - - - - endBlock - - - -
    -
    -
    - - String - - - (int64) - - -
    -
    -
    - - - - startTimestamp - - - -
    -
    -
    - - String - - - (int64) - - -
    -
    -
    - - - - endTimestamp - - - -
    -
    -
    - - String - - - (int64) - - -
    -
    -
    - - - - transactionStatus - - - -
    -
    -
    - - array[Integer] - - - (int32) - - -
    -
    -
    - - - - methodSignature - - - -
    -
    -
    - - String - - -
    -
    -
    - - - - limit - - - -
    -
    -
    - - Integer - - - (int32) - - -
    -
    -
    - - - - pageToken - - - -
    -
    -
    - - byte[] - - - (byte) - - -
    -
    -
    - - - - - -

    Responses

    -

    -

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

    -
    -
    +
    +
    -

    simulateTransaction

    -

    Run simulation

    +

    searchTransactions

    +

    Search transactions

    -

    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/solidity/{owner}/{slug}/search_transactions

    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" \
    - -d ''
    +                        
    +
    +
    curl -X GET \
    +-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"
    +
    +
    +
    +
    import org.openapitools.client.*;
    +import org.openapitools.client.auth.*;
    +import org.openapitools.client.model.*;
    +import org.openapitools.client.api.DebugAndSimulationApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DebugAndSimulationApiExample {
    +    public static void main(String[] args) {
    +        ApiClient defaultClient = Configuration.getDefaultApiClient();
    +
    +        // 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");
    +
    +        // Create an instance of the API class
    +        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[] | 
    +
    +        try {
    +            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#searchTransactions");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    +
    + +
    +
    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[] | 
    +
    +try {
    +    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->searchTransactions: $e\n');
    +}
    +
    +
    +
    + +
    +
    import org.openapitools.client.api.DebugAndSimulationApi;
    +
    +public class DebugAndSimulationApiExample {
    +    public static void main(String[] args) {
    +        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[] | 
    +
    +        try {
    +            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#searchTransactions");
    +            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"];
    +
    +
    +// 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)
    +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
    +    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) {
    +    if (output) {
    +        NSLog(@"%@", output);
    +    }
    +    if (error) {
    +        NSLog(@"Error: %@", error);
    +    }
    +}];
    +
    +
    + +
    +
    var SentioApi = require('sentio_api');
    +var defaultClient = SentioApi.ApiClient.instance;
    +
    +// 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.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 callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.searchTransactions(owner, slug, opts, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using Org.OpenAPITools.Api;
    +using Org.OpenAPITools.Client;
    +using Org.OpenAPITools.Model;
    +
    +namespace Example
    +{
    +    public class searchTransactionsExample
    +    {
    +        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 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)
    +
    +            try {
    +                // 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.searchTransactions: " + 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 = ; // 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->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";
    +
    +# 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";
    +}
    +
    + +
    +
    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 =  # 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:
    +    # 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->searchTransactions: %s\n" % e)
    +
    + +
    +
    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[]
    +
    +    let mut context = DebugAndSimulationApi::Context::default();
    +    let result = client.searchTransactions(owner, slug, chainId, address, includeDirect, includeTrace, includeIn, includeOut, startBlock, endBlock, startTimestamp, endTimestamp, transactionStatus, methodSignature, limit, pageToken, &context).wait();
    +
    +    println!("{:?}", result);
    +}
     
    +
    -
    -
    import org.openapitools.client.*;
    -import org.openapitools.client.auth.*;
    -import org.openapitools.client.model.*;
    -import org.openapitools.client.api.DebugAndSimulationApi;
     
    -import java.io.File;
    -import java.util.*;
    +                          

    Scopes

    + + +
    -public class DebugAndSimulationApiExample { - 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.DebugAndSimulationApi;
    +                            
    NameDescription
    owner* - // 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 | - try { - solidity_service.SimulateTransactionResponse result = apiInstance.simulateTransaction(owner, slug, chainId, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#simulateTransaction"); - e.printStackTrace(); - } - } -} - - +
    +
    +
    + + String + -
    -
    import 'package:openapi/api.dart';
    +            
    +
    + Required +
    +
    +
    +
    slug* -final String owner = new String(); // String | -final String slug = new String(); // String | -final String chainId = new String(); // String | -final SolidityServiceSolidityAPIServiceSimulateTransactionBody body = new SolidityServiceSolidityAPIServiceSimulateTransactionBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBody | -try { - final result = await api_instance.simulateTransaction(owner, slug, chainId, body); - print(result); -} catch (e) { - print('Exception when calling DefaultApi->simulateTransaction: $e\n'); -} +
    +
    +
    + + String + - -
    +
    +
    + Required +
    +
    + +
    -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 | - SolidityServiceSolidityAPIServiceSimulateTransactionBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBody | - try { - solidity_service.SimulateTransactionResponse result = apiInstance.simulateTransaction(owner, slug, chainId, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#simulateTransaction"); - 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
    + + + + + + + + -// 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 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 | + + + -// 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 | + + + -# 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 | + + + -# 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 | + + + - let mut context = DebugAndSimulationApi::Context::default(); - let result = client.simulateTransaction(owner, slug, chainId, body, &context).wait(); + + + -
    Path parameters
    -
    NameDescription
    chainId -// 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 = ; // -// Run simulation -[apiInstance simulateTransactionWith:owner - slug:slug - chainId:chainId - body:body - completionHandler: ^(solidity_service.SimulateTransactionResponse output, NSError* error) { - if (output) { - NSLog(@"%@", output); - } - if (error) { - NSLog(@"Error: %@", error); - } -}]; - - +
    +
    +
    + + array[String] + -
    -
    var SentioApi = require('sentio_api');
    -var defaultClient = SentioApi.ApiClient.instance;
    +            
    +
    +
    +
    address -// 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 callback = function(error, data, response) { - if (error) { - console.error(error); - } else { - console.log('API called successfully. Returned data: ' + data); - } -}; -api.simulateTransaction(owner, slug, chainId, body, callback); - - +
    +
    +
    + + array[String] + + +
    +
    +
    +
    includeDirect + + +
    +
    +
    + + Boolean + + +
    +
    +
    +
    includeTrace + + +
    +
    +
    + + Boolean + + +
    +
    +
    +
    includeIn + + +
    +
    +
    + + Boolean + + +
    +
    +
    +
    includeOut + - -
    -
    using System;
    -using System.Diagnostics;
    -using Org.OpenAPITools.Api;
    -using Org.OpenAPITools.Client;
    -using Org.OpenAPITools.Model;
    +    
    +
    +
    + + Boolean + -namespace Example -{ - public class simulateTransactionExample - { - 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"); +
    +
    +
    +
    startBlock - try { - // Run simulation - solidity_service.SimulateTransactionResponse result = apiInstance.simulateTransaction(owner, slug, chainId, body); - Debug.WriteLine(result); - } catch (Exception e) { - Debug.Print("Exception when calling DebugAndSimulationApi.simulateTransaction: " + e.Message ); - } - } - } -} - - -
    -
    <?php
    -require_once(__DIR__ . '/vendor/autoload.php');
    +    
    +
    +
    + + String + + + (int64) + -// 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'); +
    +
    +
    +
    endBlock -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;
    +    
    +
    +
    + + String + + + (int64) + -# 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"; +
    +
    +
    +
    startTimestamp -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
    +    
    +
    +
    + + String + + + (int64) + -# 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' +
    +
    +
    +
    endTimestamp -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;
    +    
    +
    +
    + + String + + + (int64) + -pub fn main() { - let owner = owner_example; // String - let slug = slug_example; // String - let chainId = chainId_example; // String - let body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBody +
    +
    +
    +
    transactionStatus - println!("{:?}", result); -} - - - -

    Scopes

    - - -
    +
    +
    +
    + + array[Integer] + + + (int32) + -

    Parameters

    +
    +
    +
    +
    - - - - - + - + - + @@ -21137,76 +21064,24 @@

    Parameters

    NameDescription
    owner*
    methodSignature -
    +
    @@ -21087,49 +21017,46 @@

    Parameters

    -
    - Required -
    slug*
    limit -
    +
    - String + Integer + + (int32) +
    -
    - Required -
    chainId*
    pageToken -
    +
    - String + byte[] + + (byte) +
    -
    - Required -
    - -
    Body parameters
    - - - - - - - - - -
    NameDescription
    body * -

    - -
    -
    - - -

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    simulateTransactionBundle

    -

    Run bundle simulation

    +

    simulateTransaction

    +

    Run 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.

    +

    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_bundle
    +
    /api/v1/solidity/{owner}/{slug}/{chainId}/simulation

    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/solidity/{owner}/{slug}/{chainId}/simulation" \
      -d ''
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -21335,13 +21211,13 @@ 

    Usage and SDK Samples

    String owner = owner_example; // String | String slug = slug_example; // String | String chainId = chainId_example; // String | - SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | + SolidityServiceSolidityAPIServiceSimulateTransactionBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBody | try { - solidity_service.SimulateTransactionBundleResponse result = apiInstance.simulateTransactionBundle(owner, slug, chainId, body); + solidity_service.SimulateTransactionResponse result = apiInstance.simulateTransaction(owner, slug, chainId, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#simulateTransactionBundle"); + System.err.println("Exception when calling DebugAndSimulationApi#simulateTransaction"); e.printStackTrace(); } } @@ -21349,7 +21225,7 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
    @@ -21357,19 +21233,19 @@ 

    Usage and SDK Samples

    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 SolidityServiceSolidityAPIServiceSimulateTransactionBody body = new SolidityServiceSolidityAPIServiceSimulateTransactionBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBody | try { - final result = await api_instance.simulateTransactionBundle(owner, slug, chainId, body); + final result = await api_instance.simulateTransaction(owner, slug, chainId, body); print(result); } catch (e) { - print('Exception when calling DefaultApi->simulateTransactionBundle: $e\n'); + print('Exception when calling DefaultApi->simulateTransaction: $e\n'); }
    -
    +
    import org.openapitools.client.api.DebugAndSimulationApi;
     
     public class DebugAndSimulationApiExample {
    @@ -21378,23 +21254,23 @@ 

    Usage and SDK Samples

    String owner = owner_example; // String | String slug = slug_example; // String | String chainId = chainId_example; // String | - SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | + SolidityServiceSolidityAPIServiceSimulateTransactionBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBody | try { - solidity_service.SimulateTransactionBundleResponse result = apiInstance.simulateTransactionBundle(owner, slug, chainId, body); + solidity_service.SimulateTransactionResponse result = apiInstance.simulateTransaction(owner, slug, chainId, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#simulateTransactionBundle"); + System.err.println("Exception when calling DebugAndSimulationApi#simulateTransaction"); e.printStackTrace(); } } }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -21408,14 +21284,14 @@ 

    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) -SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody *body = ; // +SolidityServiceSolidityAPIServiceSimulateTransactionBody *body = ; // -// Run bundle simulation -[apiInstance simulateTransactionBundleWith:owner +// Run simulation +[apiInstance simulateTransactionWith:owner slug:slug chainId:chainId body:body - completionHandler: ^(solidity_service.SimulateTransactionBundleResponse output, NSError* error) { + completionHandler: ^(solidity_service.SimulateTransactionResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -21426,7 +21302,7 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    var owner = owner_example; // {String} var slug = slug_example; // {String} var chainId = chainId_example; // {String} -var body = ; // {SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody} +var body = ; // {SolidityServiceSolidityAPIServiceSimulateTransactionBody} var callback = function(error, data, response) { if (error) { @@ -21450,14 +21326,14 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    namespace Example { - public class simulateTransactionBundleExample + public class simulateTransactionExample { public void main() { @@ -21480,14 +21356,14 @@

    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 body = new SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | + var body = new SolidityServiceSolidityAPIServiceSimulateTransactionBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBody | try { - // Run bundle simulation - solidity_service.SimulateTransactionBundleResponse result = apiInstance.simulateTransactionBundle(owner, slug, chainId, body); + // Run simulation + solidity_service.SimulateTransactionResponse result = apiInstance.simulateTransaction(owner, slug, chainId, body); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DebugAndSimulationApi.simulateTransactionBundle: " + e.Message ); + Debug.Print("Exception when calling DebugAndSimulationApi.simulateTransaction: " + e.Message ); } } } @@ -21495,7 +21371,7 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    $owner = owner_example; // String | $slug = slug_example; // String | $chainId = chainId_example; // String | -$body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | +$body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBody | try { - $result = $api_instance->simulateTransactionBundle($owner, $slug, $chainId, $body); + $result = $api_instance->simulateTransaction($owner, $slug, $chainId, $body); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DebugAndSimulationApi->simulateTransactionBundle: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DebugAndSimulationApi->simulateTransaction: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DebugAndSimulationApi;
    @@ -21535,18 +21411,18 @@ 

    Usage and SDK Samples

    my $owner = owner_example; # String | my $slug = slug_example; # String | my $chainId = chainId_example; # String | -my $body = WWW::OPenAPIClient::Object::SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody->new(); # SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | +my $body = WWW::OPenAPIClient::Object::SolidityServiceSolidityAPIServiceSimulateTransactionBody->new(); # SolidityServiceSolidityAPIServiceSimulateTransactionBody | eval { - my $result = $api_instance->simulateTransactionBundle(owner => $owner, slug => $slug, chainId => $chainId, body => $body); + my $result = $api_instance->simulateTransaction(owner => $owner, slug => $slug, chainId => $chainId, body => $body); print Dumper($result); }; if ($@) { - warn "Exception when calling DebugAndSimulationApi->simulateTransactionBundle: $@\n"; + warn "Exception when calling DebugAndSimulationApi->simulateTransaction: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -21563,27 +21439,27 @@ 

    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) -body = # SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | +body = # SolidityServiceSolidityAPIServiceSimulateTransactionBody | try: - # Run bundle simulation - api_response = api_instance.simulate_transaction_bundle(owner, slug, chainId, body) + # Run simulation + api_response = api_instance.simulate_transaction(owner, slug, chainId, body) pprint(api_response) except ApiException as e: - print("Exception when calling DebugAndSimulationApi->simulateTransactionBundle: %s\n" % 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 = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody
    +    let body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBody
     
         let mut context = DebugAndSimulationApi::Context::default();
    -    let result = client.simulateTransactionBundle(owner, slug, chainId, body, &context).wait();
    +    let result = client.simulateTransaction(owner, slug, chainId, body, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -21608,7 +21484,7 @@ 

    Parameters

    -
    +
    @@ -21628,7 +21504,7 @@

    Parameters

    -
    +
    @@ -21648,7 +21524,7 @@

    Parameters

    -
    +
    @@ -21682,7 +21558,7 @@

    Parameters

    "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/solidity_service.SolidityAPIService.SimulateTransactionBundleBody" + "$ref" : "#/components/schemas/solidity_service.SolidityAPIService.SimulateTransactionBody" } } }, @@ -21705,12 +21581,12 @@

    Parameters

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

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    -

    Default

    -
    -
    +
    +
    -

    deleteAlertRule

    -

    +

    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/alerts/rule/{id}
    +
    /api/v1/solidity/{owner}/{slug}/{chainId}/simulation_bundle

    Usage and SDK Samples

    -
    -
    curl -X DELETE \
    +                          
    +
    curl -X POST \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
    - "https://app.sentio.xyz/api/v1/alerts/rule/{id}"
    + -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.DefaultApi;
    +import org.openapitools.client.api.DebugAndSimulationApi;
     
     import java.io.File;
     import java.util.*;
     
    -public class DefaultApiExample {
    +public class DebugAndSimulationApiExample {
         public static void main(String[] args) {
             ApiClient defaultClient = Configuration.getDefaultApiClient();
     
    @@ -21861,14 +21736,17 @@ 

    Usage and SDK Samples

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

    Usage and SDK Samples

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

    Usage and SDK Samples

    // Create an instance of the API class -DefaultApi *apiInstance = [[DefaultApi alloc] init]; -String *id = id_example; // (default to null) +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 = ; // -[apiInstance deleteAlertRuleWith:id - completionHandler: ^(Object output, NSError* error) { +// Run bundle simulation +[apiInstance simulateTransactionBundleWith:owner + slug:slug + chainId:chainId + body:body + completionHandler: ^(solidity_service.SimulateTransactionBundleResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -21940,7 +21831,7 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    //ApiKeyAuth.apiKeyPrefix['api-key'] = "Token"; // Create an instance of the API class -var api = new SentioApi.DefaultApi() -var id = id_example; // {String} +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) { @@ -21961,14 +21855,14 @@

    Usage and SDK Samples

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

    Usage and SDK Samples

    namespace Example { - public class deleteAlertRuleExample + public class simulateTransactionBundleExample { public void main() { @@ -21987,14 +21881,18 @@

    Usage and SDK Samples

    // Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer"); // Create an instance of the API class - var apiInstance = new DefaultApi(); - var id = id_example; // String | (default to null) + 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 { - Object result = apiInstance.deleteAlertRule(id); + // Run bundle simulation + solidity_service.SimulateTransactionBundleResponse result = apiInstance.simulateTransactionBundle(owner, slug, chainId, body); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DefaultApi.deleteAlertRule: " + e.Message ); + Debug.Print("Exception when calling DebugAndSimulationApi.simulateTransactionBundle: " + e.Message ); } } } @@ -22002,7 +21900,7 @@

    Usage and SDK Samples

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

    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\DefaultApi(); -$id = id_example; // String | +$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->deleteAlertRule($id); + $result = $api_instance->simulateTransactionBundle($owner, $slug, $chainId, $body); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DefaultApi->deleteAlertRule: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DebugAndSimulationApi->simulateTransactionBundle: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
    -use WWW::OPenAPIClient::DefaultApi;
    +use WWW::OPenAPIClient::DebugAndSimulationApi;
     
     # Configure API key authorization: ApiKeyAuth
     $WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
    @@ -22035,19 +21936,22 @@ 

    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::DefaultApi->new(); -my $id = id_example; # String | +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->deleteAlertRule(id => $id); + my $result = $api_instance->simulateTransactionBundle(owner => $owner, slug => $slug, chainId => $chainId, body => $body); print Dumper($result); }; if ($@) { - warn "Exception when calling DefaultApi->deleteAlertRule: $@\n"; + warn "Exception when calling DebugAndSimulationApi->simulateTransactionBundle: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -22060,24 +21964,31 @@ 

    Usage and SDK Samples

    # openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer' # Create an instance of the API class -api_instance = openapi_client.DefaultApi() -id = id_example # String | (default to null) +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: - api_response = api_instance.delete_alert_rule(id) + # 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 DefaultApi->deleteAlertRule: %s\n" % e)
    + print("Exception when calling DebugAndSimulationApi->simulateTransactionBundle: %s\n" % e)
    -
    -
    extern crate DefaultApi;
    +                            
    +
    extern crate DebugAndSimulationApi;
     
     pub fn main() {
    -    let id = id_example; // String
    +    let owner = owner_example; // String
    +    let slug = slug_example; // String
    +    let chainId = chainId_example; // String
    +    let body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody
     
    -    let mut context = DefaultApi::Context::default();
    -    let result = client.deleteAlertRule(id, &context).wait();
    +    let mut context = DebugAndSimulationApi::Context::default();
    +    let result = client.simulateTransactionBundle(owner, slug, chainId, body, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -22098,11 +22009,51 @@ 

    Parameters

    Name Description - id* + owner* -
    +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    + + + + slug* + + + +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    + + + + chainId* + + + +
    @@ -22121,27 +22072,75 @@

    Parameters

    +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * +

    + +
    +

    Responses

    -

    -

    +

    +

    -
    diff --git a/openapi.json b/openapi.json index 9079572..cf977f9 100644 --- a/openapi.json +++ b/openapi.json @@ -71,6 +71,7 @@ }, "/api/v1/alerts/rule/{id}": { "delete": { + "summary": "Delete an alert rule", "operationId": "DeleteAlertRule", "responses": { "200": { @@ -88,6 +89,9 @@ "required": true, "type": "string" } + ], + "tags": [ + "Alerts" ] }, "put": { diff --git a/src/AlertsApi.md b/src/AlertsApi.md index 43e26eb..9fe4067 100755 --- a/src/AlertsApi.md +++ b/src/AlertsApi.md @@ -4,12 +4,65 @@ All URIs are relative to *https://app.sentio.xyz* Method | HTTP request | Description ------------- | ------------- | ------------- +[**deleteAlertRule**](AlertsApi.md#deleteAlertRule) | **DELETE** /api/v1/alerts/rule/{id} | Delete an alert rule [**getAlert**](AlertsApi.md#getAlert) | **GET** /api/v1/alerts/{ruleId} | Find an alert rule by id, and list all alerts for this rule [**getAlertRules**](AlertsApi.md#getAlertRules) | **GET** /api/v1/alerts/rule/project/{projectId} | List all alert rules for a project [**saveAlertRule**](AlertsApi.md#saveAlertRule) | **POST** /api/v1/alerts/rule | Save an alert rule [**saveAlertRule2**](AlertsApi.md#saveAlertRule2) | **PUT** /api/v1/alerts/rule/{id} | Save an alert rule +# **deleteAlertRule** +> any deleteAlertRule() + + +### Example + + +```typescript +import { createConfiguration, AlertsApi } from ''; +import type { AlertsApiDeleteAlertRuleRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new AlertsApi(configuration); + +const request: AlertsApiDeleteAlertRuleRequest = { + + id: "id_example", +}; + +const data = await apiInstance.deleteAlertRule(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | [**string**] | | defaults to undefined + + +### Return type + +**any** + +### 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) + # **getAlert** > AlertServiceGetAlertResponse getAlert() diff --git a/src/DefaultApi.md b/src/DefaultApi.md deleted file mode 100755 index 4f9ba97..0000000 --- a/src/DefaultApi.md +++ /dev/null @@ -1,62 +0,0 @@ -# .DefaultApi - -All URIs are relative to *https://app.sentio.xyz* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**deleteAlertRule**](DefaultApi.md#deleteAlertRule) | **DELETE** /api/v1/alerts/rule/{id} | - - -# **deleteAlertRule** -> any deleteAlertRule() - - -### Example - - -```typescript -import { createConfiguration, DefaultApi } from ''; -import type { DefaultApiDeleteAlertRuleRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new DefaultApi(configuration); - -const request: DefaultApiDeleteAlertRuleRequest = { - - id: "id_example", -}; - -const data = await apiInstance.deleteAlertRule(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | [**string**] | | defaults to undefined - - -### Return type - -**any** - -### 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) - - diff --git a/src/apis/AlertsApi.ts b/src/apis/AlertsApi.ts index 1f36814..d8f338f 100755 --- a/src/apis/AlertsApi.ts +++ b/src/apis/AlertsApi.ts @@ -18,6 +18,43 @@ import { AlertServiceSaveAlertRuleRequest } from '../models/AlertServiceSaveAler */ export class AlertsApiRequestFactory extends BaseAPIRequestFactory { + /** + * Delete an alert rule + * @param id + */ + public async deleteAlertRule(id: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new RequiredError("AlertsApi", "deleteAlertRule", "id"); + } + + + // Path Params + const localVarPath = '/api/v1/alerts/rule/{id}' + .replace('{' + 'id' + '}', encodeURIComponent(String(id))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + + 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; + } + /** * Find an alert rule by id, and list all alerts for this rule * @param ruleId @@ -212,6 +249,35 @@ export class AlertsApiRequestFactory extends BaseAPIRequestFactory { export class AlertsApiResponseProcessor { + /** + * 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 deleteAlertRule + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteAlertRuleWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: any = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "any", "" + ) as any; + 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: any = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "any", "" + ) as any; + 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 deleted file mode 100755 index 5dbb622..0000000 --- a/src/apis/DefaultApi.ts +++ /dev/null @@ -1,86 +0,0 @@ -// 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'; - - - -/** - * no description - */ -export class DefaultApiRequestFactory extends BaseAPIRequestFactory { - - /** - * @param id - */ - public async deleteAlertRule(id: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError("DefaultApi", "deleteAlertRule", "id"); - } - - - // Path Params - const localVarPath = '/api/v1/alerts/rule/{id}' - .replace('{' + 'id' + '}', encodeURIComponent(String(id))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - - 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 deleteAlertRule - * @throws ApiException if the response code was not in [200, 299] - */ - public async deleteAlertRuleWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: any = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "any", "" - ) as any; - 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: any = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "any", "" - ) as any; - 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 063bb4b..451a5d8 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, PromiseDefaultApi as DefaultApi, PromiseForksApi as ForksApi, PromisePriceApi as PriceApi, PromiseWebApi as WebApi } from './types/PromiseAPI.js'; +export { PromiseAlertsApi as AlertsApi, PromiseDataApi as DataApi, PromiseDebugAndSimulationApi as DebugAndSimulationApi, PromiseForksApi as ForksApi, PromisePriceApi as PriceApi, PromiseWebApi as WebApi } from './types/PromiseAPI.js'; diff --git a/src/types/ObjectParamAPI.ts b/src/types/ObjectParamAPI.ts index cd5c51b..58951e8 100755 --- a/src/types/ObjectParamAPI.ts +++ b/src/types/ObjectParamAPI.ts @@ -264,6 +264,16 @@ import { WebServicePanel } from '../models/WebServicePanel.js'; import { ObservableAlertsApi } from "./ObservableAPI.js"; import { AlertsApiRequestFactory, AlertsApiResponseProcessor} from "../apis/AlertsApi.js"; +export interface AlertsApiDeleteAlertRuleRequest { + /** + * + * Defaults to: undefined + * @type string + * @memberof AlertsApideleteAlertRule + */ + id: string +} + export interface AlertsApiGetAlertRequest { /** * @@ -330,6 +340,22 @@ export class ObjectAlertsApi { this.api = new ObservableAlertsApi(configuration, requestFactory, responseProcessor); } + /** + * Delete an alert rule + * @param param the request object + */ + public deleteAlertRuleWithHttpInfo(param: AlertsApiDeleteAlertRuleRequest, options?: Configuration): Promise> { + return this.api.deleteAlertRuleWithHttpInfo(param.id, options).toPromise(); + } + + /** + * Delete an alert rule + * @param param the request object + */ + public deleteAlertRule(param: AlertsApiDeleteAlertRuleRequest, options?: Configuration): Promise { + return this.api.deleteAlertRule(param.id, options).toPromise(); + } + /** * Find an alert rule by id, and list all alerts for this rule * @param param the request object @@ -1836,42 +1862,6 @@ export class ObjectDebugAndSimulationApi { } -import { ObservableDefaultApi } from "./ObservableAPI.js"; -import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi.js"; - -export interface DefaultApiDeleteAlertRuleRequest { - /** - * - * Defaults to: undefined - * @type string - * @memberof DefaultApideleteAlertRule - */ - id: string -} - -export class ObjectDefaultApi { - private api: ObservableDefaultApi - - public constructor(configuration: Configuration, requestFactory?: DefaultApiRequestFactory, responseProcessor?: DefaultApiResponseProcessor) { - this.api = new ObservableDefaultApi(configuration, requestFactory, responseProcessor); - } - - /** - * @param param the request object - */ - public deleteAlertRuleWithHttpInfo(param: DefaultApiDeleteAlertRuleRequest, options?: Configuration): Promise> { - return this.api.deleteAlertRuleWithHttpInfo(param.id, options).toPromise(); - } - - /** - * @param param the request object - */ - public deleteAlertRule(param: DefaultApiDeleteAlertRuleRequest, options?: Configuration): Promise { - return this.api.deleteAlertRule(param.id, 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 7dc1bf6..0bd5d88 100755 --- a/src/types/ObservableAPI.ts +++ b/src/types/ObservableAPI.ts @@ -278,6 +278,37 @@ export class ObservableAlertsApi { this.responseProcessor = responseProcessor || new AlertsApiResponseProcessor(); } + /** + * Delete an alert rule + * @param id + */ + public deleteAlertRuleWithHttpInfo(id: string, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteAlertRule(id, _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.deleteAlertRuleWithHttpInfo(rsp))); + })); + } + + /** + * Delete an alert rule + * @param id + */ + public deleteAlertRule(id: string, _options?: Configuration): Observable { + return this.deleteAlertRuleWithHttpInfo(id, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * Find an alert rule by id, and list all alerts for this rule * @param ruleId @@ -1490,53 +1521,6 @@ 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(); - } - - /** - * @param id - */ - public deleteAlertRuleWithHttpInfo(id: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteAlertRule(id, _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.deleteAlertRuleWithHttpInfo(rsp))); - })); - } - - /** - * @param id - */ - public deleteAlertRule(id: string, _options?: Configuration): Observable { - return this.deleteAlertRuleWithHttpInfo(id, _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 ab25157..ca5dec2 100755 --- a/src/types/PromiseAPI.ts +++ b/src/types/PromiseAPI.ts @@ -274,6 +274,24 @@ export class PromiseAlertsApi { this.api = new ObservableAlertsApi(configuration, requestFactory, responseProcessor); } + /** + * Delete an alert rule + * @param id + */ + public deleteAlertRuleWithHttpInfo(id: string, _options?: Configuration): Promise> { + const result = this.api.deleteAlertRuleWithHttpInfo(id, _options); + return result.toPromise(); + } + + /** + * Delete an alert rule + * @param id + */ + public deleteAlertRule(id: string, _options?: Configuration): Promise { + const result = this.api.deleteAlertRule(id, _options); + return result.toPromise(); + } + /** * Find an alert rule by id, and list all alerts for this rule * @param ruleId @@ -1101,41 +1119,6 @@ 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); - } - - /** - * @param id - */ - public deleteAlertRuleWithHttpInfo(id: string, _options?: Configuration): Promise> { - const result = this.api.deleteAlertRuleWithHttpInfo(id, _options); - return result.toPromise(); - } - - /** - * @param id - */ - public deleteAlertRule(id: string, _options?: Configuration): Promise { - const result = this.api.deleteAlertRule(id, _options); - return result.toPromise(); - } - - -} - - - import { ObservableForksApi } from './ObservableAPI.js'; import { ForksApiRequestFactory, ForksApiResponseProcessor} from "../apis/ForksApi.js";