getMetrics
-Get a list of metrics in a project
+executeSQLAsync
+Execute SQL by Async
Execute SQL in a project asynchronously.
-
/api/v1/metrics
+ /api/v1/analytics/{owner}/{slug}/sql/execute/async
Usage and SDK Samples
-
-
- Curl -
- Java -
- Dart -
- Android - -
- Obj-C -
- JavaScript - -
- C# -
- PHP -
- Perl -
- Python -
- Rust +
- Curl +
- Java +
- Dart +
- Android + +
- Obj-C +
- JavaScript + +
- C# +
- PHP +
- Perl +
- Python +
- Rust
curl -X GET \
+
+ curl -X POST \
-H "api-key: [[apiKey]]" \
-H "Accept: application/json" \
- "https://app.sentio.xyz/api/v1/metrics?projectId=projectId_example&name=name_example&version=56"
+ -H "Content-Type: application/json" \
+ "https://app.sentio.xyz/api/v1/analytics/{owner}/{slug}/sql/execute/async" \
+ -d ''
-
+
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
@@ -8578,15 +8580,15 @@ Usage and SDK Samples
// Create an instance of the API class
DataApi apiInstance = new DataApi();
- String projectId = projectId_example; // String |
- String name = name_example; // String |
- Integer version = 56; // Integer |
+ String owner = owner_example; // String | username or organization name
+ String slug = slug_example; // String | project slug
+ AnalyticServiceAnalyticServiceExecuteSQLAsyncBody body = ; // AnalyticServiceAnalyticServiceExecuteSQLAsyncBody |
try {
- metrics_service.GetMetricsResponse result = apiInstance.getMetrics(projectId, name, version);
+ analytic_service.AsyncExecuteSQLResponse result = apiInstance.executeSQLAsync(owner, slug, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#getMetrics");
+ System.err.println("Exception when calling DataApi#executeSQLAsync");
e.printStackTrace();
}
}
@@ -8594,50 +8596,50 @@ Usage and SDK Samples
-
+
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
-final String projectId = new String(); // String |
-final String name = new String(); // String |
-final Integer version = new Integer(); // Integer |
+final String owner = new String(); // String | username or organization name
+final String slug = new String(); // String | project slug
+final AnalyticServiceAnalyticServiceExecuteSQLAsyncBody body = new AnalyticServiceAnalyticServiceExecuteSQLAsyncBody(); // AnalyticServiceAnalyticServiceExecuteSQLAsyncBody |
try {
- final result = await api_instance.getMetrics(projectId, name, version);
+ final result = await api_instance.executeSQLAsync(owner, slug, body);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->getMetrics: $e\n');
+ print('Exception when calling DefaultApi->executeSQLAsync: $e\n');
}
-
+
import org.openapitools.client.api.DataApi;
public class DataApiExample {
public static void main(String[] args) {
DataApi apiInstance = new DataApi();
- String projectId = projectId_example; // String |
- String name = name_example; // String |
- Integer version = 56; // Integer |
+ String owner = owner_example; // String | username or organization name
+ String slug = slug_example; // String | project slug
+ AnalyticServiceAnalyticServiceExecuteSQLAsyncBody body = ; // AnalyticServiceAnalyticServiceExecuteSQLAsyncBody |
try {
- metrics_service.GetMetricsResponse result = apiInstance.getMetrics(projectId, name, version);
+ analytic_service.AsyncExecuteSQLResponse result = apiInstance.executeSQLAsync(owner, slug, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#getMetrics");
+ System.err.println("Exception when calling DataApi#executeSQLAsync");
e.printStackTrace();
}
}
}
-
+
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
@@ -8648,15 +8650,15 @@ Usage and SDK Samples
// Create an instance of the API class
DataApi *apiInstance = [[DataApi alloc] init];
-String *projectId = projectId_example; // (optional) (default to null)
-String *name = name_example; // (optional) (default to null)
-Integer *version = 56; // (optional) (default to null)
+String *owner = owner_example; // username or organization name (default to null)
+String *slug = slug_example; // project slug (default to null)
+AnalyticServiceAnalyticServiceExecuteSQLAsyncBody *body = ; //
-// Get a list of metrics in a project
-[apiInstance getMetricsWith:projectId
- name:name
- version:version
- completionHandler: ^(metrics_service.GetMetricsResponse output, NSError* error) {
+// Execute SQL by Async
+[apiInstance executeSQLAsyncWith:owner
+ slug:slug
+ body:body
+ completionHandler: ^(analytic_service.AsyncExecuteSQLResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -8667,7 +8669,7 @@ Usage and SDK Samples
-
+
var SentioApi = require('sentio_api');
var defaultClient = SentioApi.ApiClient.instance;
@@ -8679,11 +8681,9 @@ Usage and SDK Samples
// Create an instance of the API class
var api = new SentioApi.DataApi()
-var opts = {
- 'projectId': projectId_example, // {String}
- 'name': name_example, // {String}
- 'version': 56 // {Integer}
-};
+var owner = owner_example; // {String} username or organization name
+var slug = slug_example; // {String} project slug
+var body = ; // {AnalyticServiceAnalyticServiceExecuteSQLAsyncBody}
var callback = function(error, data, response) {
if (error) {
@@ -8692,14 +8692,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.getMetrics(opts, callback);
+api.executeSQLAsync(owner, slug, body, callback);
-
-
+
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
@@ -8708,7 +8708,7 @@ Usage and SDK Samples
namespace Example
{
- public class getMetricsExample
+ public class executeSQLAsyncExample
{
public void main()
{
@@ -8719,16 +8719,16 @@ Usage and SDK Samples
// Create an instance of the API class
var apiInstance = new DataApi();
- var projectId = projectId_example; // String | (optional) (default to null)
- var name = name_example; // String | (optional) (default to null)
- var version = 56; // Integer | (optional) (default to null)
+ var owner = owner_example; // String | username or organization name (default to null)
+ var slug = slug_example; // String | project slug (default to null)
+ var body = new AnalyticServiceAnalyticServiceExecuteSQLAsyncBody(); // AnalyticServiceAnalyticServiceExecuteSQLAsyncBody |
try {
- // Get a list of metrics in a project
- metrics_service.GetMetricsResponse result = apiInstance.getMetrics(projectId, name, version);
+ // Execute SQL by Async
+ analytic_service.AsyncExecuteSQLResponse result = apiInstance.executeSQLAsync(owner, slug, body);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling DataApi.getMetrics: " + e.Message );
+ Debug.Print("Exception when calling DataApi.executeSQLAsync: " + e.Message );
}
}
}
@@ -8736,7 +8736,7 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
@@ -8747,20 +8747,20 @@ Usage and SDK Samples
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DataApi();
-$projectId = projectId_example; // String |
-$name = name_example; // String |
-$version = 56; // Integer |
+$owner = owner_example; // String | username or organization name
+$slug = slug_example; // String | project slug
+$body = ; // AnalyticServiceAnalyticServiceExecuteSQLAsyncBody |
try {
- $result = $api_instance->getMetrics($projectId, $name, $version);
+ $result = $api_instance->executeSQLAsync($owner, $slug, $body);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling DataApi->getMetrics: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling DataApi->executeSQLAsync: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DataApi;
@@ -8772,20 +8772,20 @@ Usage and SDK Samples
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DataApi->new();
-my $projectId = projectId_example; # String |
-my $name = name_example; # String |
-my $version = 56; # Integer |
+my $owner = owner_example; # String | username or organization name
+my $slug = slug_example; # String | project slug
+my $body = WWW::OPenAPIClient::Object::AnalyticServiceAnalyticServiceExecuteSQLAsyncBody->new(); # AnalyticServiceAnalyticServiceExecuteSQLAsyncBody |
eval {
- my $result = $api_instance->getMetrics(projectId => $projectId, name => $name, version => $version);
+ my $result = $api_instance->executeSQLAsync(owner => $owner, slug => $slug, body => $body);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling DataApi->getMetrics: $@\n";
+ warn "Exception when calling DataApi->executeSQLAsync: $@\n";
}
-
+
from __future__ import print_statement
import time
import openapi_client
@@ -8799,28 +8799,28 @@ Usage and SDK Samples
# Create an instance of the API class
api_instance = openapi_client.DataApi()
-projectId = projectId_example # String | (optional) (default to null)
-name = name_example # String | (optional) (default to null)
-version = 56 # Integer | (optional) (default to null)
+owner = owner_example # String | username or organization name (default to null)
+slug = slug_example # String | project slug (default to null)
+body = # AnalyticServiceAnalyticServiceExecuteSQLAsyncBody |
try:
- # Get a list of metrics in a project
- api_response = api_instance.get_metrics(projectId=projectId, name=name, version=version)
+ # Execute SQL by Async
+ api_response = api_instance.execute_sql_async(owner, slug, body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DataApi->getMetrics: %s\n" % e)
+ print("Exception when calling DataApi->executeSQLAsync: %s\n" % e)
-
+
extern crate DataApi;
pub fn main() {
- let projectId = projectId_example; // String
- let name = name_example; // String
- let version = 56; // Integer
+ let owner = owner_example; // String
+ let slug = slug_example; // String
+ let body = ; // AnalyticServiceAnalyticServiceExecuteSQLAsyncBody
let mut context = DataApi::Context::default();
- let result = client.getMetrics(projectId, name, version, &context).wait();
+ let result = client.executeSQLAsync(owner, slug, body, &context).wait();
println!("{:?}", result);
}
@@ -8835,90 +8835,130 @@ Scopes
Parameters
-
-
-
-
- Query parameters
+ Path parameters
-
- Name
- Description
-
- projectId
+
+ Name
+ Description
+
+ owner*
-
+
String
+
+username or organization name
+
+
+ Required
+
- name
+ slug*
-
+
String
+
+project slug
+
+
+ Required
+
- version
-
+
-
-
-
-
- Integer
-
-
- (int32)
-
+ Body parameters
+
+
+ Name
+ Description
+
+ 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
- - Java
- - Dart
- - Android
-
- - Obj-C
- - JavaScript
-
- - C#
- - PHP
- - Perl
- - Python
- - Rust
+ - Curl
+ - Java
+ - Dart
+ - Android
+
+ - Obj-C
+ - JavaScript
+
+ - C#
+ - PHP
+ - Perl
+ - Python
+ - Rust
-
+
curl -X GET \
-H "api-key: [[apiKey]]" \
-H "Accept: application/json" \
- "https://app.sentio.xyz/api/v1/insights/{owner}/{slug}/coins?projectId=projectId_example&version=56&limit=56&offset=56&searchQuery=searchQuery_example"
+ "https://app.sentio.xyz/api/v1/metrics?projectId=projectId_example&name=name_example&version=56"
-
+
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
@@ -9042,19 +9082,15 @@ Usage and SDK Samples
// Create an instance of the API class
DataApi apiInstance = new DataApi();
- String owner = owner_example; // String |
- String slug = slug_example; // String |
String projectId = projectId_example; // String |
+ String name = name_example; // String |
Integer version = 56; // Integer |
- Integer limit = 56; // Integer |
- Integer offset = 56; // Integer |
- String searchQuery = searchQuery_example; // String |
try {
- insights_service.ListCoinsResponse result = apiInstance.listCoins(owner, slug, projectId, version, limit, offset, searchQuery);
+ metrics_service.GetMetricsResponse result = apiInstance.getMetrics(projectId, name, version);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#listCoins");
+ System.err.println("Exception when calling DataApi#getMetrics");
e.printStackTrace();
}
}
@@ -9062,58 +9098,50 @@ Usage and SDK Samples
-
+
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
-final String owner = new String(); // String |
-final String slug = new String(); // String |
final String projectId = new String(); // String |
+final String name = new String(); // String |
final Integer version = new Integer(); // Integer |
-final Integer limit = new Integer(); // Integer |
-final Integer offset = new Integer(); // Integer |
-final String searchQuery = new String(); // String |
try {
- final result = await api_instance.listCoins(owner, slug, projectId, version, limit, offset, searchQuery);
+ final result = await api_instance.getMetrics(projectId, name, version);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->listCoins: $e\n');
+ print('Exception when calling DefaultApi->getMetrics: $e\n');
}
-
+
import org.openapitools.client.api.DataApi;
public class DataApiExample {
public static void main(String[] args) {
DataApi apiInstance = new DataApi();
- String owner = owner_example; // String |
- String slug = slug_example; // String |
String projectId = projectId_example; // String |
+ String name = name_example; // String |
Integer version = 56; // Integer |
- Integer limit = 56; // Integer |
- Integer offset = 56; // Integer |
- String searchQuery = searchQuery_example; // String |
try {
- insights_service.ListCoinsResponse result = apiInstance.listCoins(owner, slug, projectId, version, limit, offset, searchQuery);
+ metrics_service.GetMetricsResponse result = apiInstance.getMetrics(projectId, name, version);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#listCoins");
+ System.err.println("Exception when calling DataApi#getMetrics");
e.printStackTrace();
}
}
}
-
+
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
@@ -9124,23 +9152,15 @@ Usage and SDK Samples
// Create an instance of the API class
DataApi *apiInstance = [[DataApi alloc] init];
-String *owner = owner_example; // (default to null)
-String *slug = slug_example; // (default to null)
String *projectId = projectId_example; // (optional) (default to null)
+String *name = name_example; // (optional) (default to null)
Integer *version = 56; // (optional) (default to null)
-Integer *limit = 56; // (optional) (default to null)
-Integer *offset = 56; // (optional) (default to null)
-String *searchQuery = searchQuery_example; // (optional) (default to null)
-// List coins
-[apiInstance listCoinsWith:owner
- slug:slug
- projectId:projectId
+// Get a list of metrics in a project
+[apiInstance getMetricsWith:projectId
+ name:name
version:version
- limit:limit
- offset:offset
- searchQuery:searchQuery
- completionHandler: ^(insights_service.ListCoinsResponse output, NSError* error) {
+ completionHandler: ^(metrics_service.GetMetricsResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -9151,7 +9171,7 @@ Usage and SDK Samples
-
+
var SentioApi = require('sentio_api');
var defaultClient = SentioApi.ApiClient.instance;
@@ -9163,14 +9183,10 @@ Usage and SDK Samples
// Create an instance of the API class
var api = new SentioApi.DataApi()
-var owner = owner_example; // {String}
-var slug = slug_example; // {String}
var opts = {
'projectId': projectId_example, // {String}
- 'version': 56, // {Integer}
- 'limit': 56, // {Integer}
- 'offset': 56, // {Integer}
- 'searchQuery': searchQuery_example // {String}
+ 'name': name_example, // {String}
+ 'version': 56 // {Integer}
};
var callback = function(error, data, response) {
@@ -9180,14 +9196,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.listCoins(owner, slug, opts, callback);
+api.getMetrics(opts, callback);
-
-
+
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
@@ -9196,7 +9212,7 @@ Usage and SDK Samples
namespace Example
{
- public class listCoinsExample
+ public class getMetricsExample
{
public void main()
{
@@ -9207,20 +9223,16 @@ Usage and SDK Samples
// Create an instance of the API class
var apiInstance = new DataApi();
- var owner = owner_example; // String | (default to null)
- var slug = slug_example; // String | (default to null)
var projectId = projectId_example; // String | (optional) (default to null)
+ var name = name_example; // String | (optional) (default to null)
var version = 56; // Integer | (optional) (default to null)
- var limit = 56; // Integer | (optional) (default to null)
- var offset = 56; // Integer | (optional) (default to null)
- var searchQuery = searchQuery_example; // String | (optional) (default to null)
try {
- // List coins
- insights_service.ListCoinsResponse result = apiInstance.listCoins(owner, slug, projectId, version, limit, offset, searchQuery);
+ // Get a list of metrics in a project
+ metrics_service.GetMetricsResponse result = apiInstance.getMetrics(projectId, name, version);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling DataApi.listCoins: " + e.Message );
+ Debug.Print("Exception when calling DataApi.getMetrics: " + e.Message );
}
}
}
@@ -9228,7 +9240,7 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
@@ -9239,24 +9251,20 @@ Usage and SDK Samples
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DataApi();
-$owner = owner_example; // String |
-$slug = slug_example; // String |
$projectId = projectId_example; // String |
+$name = name_example; // String |
$version = 56; // Integer |
-$limit = 56; // Integer |
-$offset = 56; // Integer |
-$searchQuery = searchQuery_example; // String |
try {
- $result = $api_instance->listCoins($owner, $slug, $projectId, $version, $limit, $offset, $searchQuery);
+ $result = $api_instance->getMetrics($projectId, $name, $version);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling DataApi->listCoins: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling DataApi->getMetrics: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DataApi;
@@ -9268,24 +9276,20 @@ Usage and SDK Samples
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DataApi->new();
-my $owner = owner_example; # String |
-my $slug = slug_example; # String |
my $projectId = projectId_example; # String |
+my $name = name_example; # String |
my $version = 56; # Integer |
-my $limit = 56; # Integer |
-my $offset = 56; # Integer |
-my $searchQuery = searchQuery_example; # String |
eval {
- my $result = $api_instance->listCoins(owner => $owner, slug => $slug, projectId => $projectId, version => $version, limit => $limit, offset => $offset, searchQuery => $searchQuery);
+ my $result = $api_instance->getMetrics(projectId => $projectId, name => $name, version => $version);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling DataApi->listCoins: $@\n";
+ warn "Exception when calling DataApi->getMetrics: $@\n";
}
-
+
from __future__ import print_statement
import time
import openapi_client
@@ -9299,36 +9303,28 @@ Usage and SDK Samples
# Create an instance of the API class
api_instance = openapi_client.DataApi()
-owner = owner_example # String | (default to null)
-slug = slug_example # String | (default to null)
projectId = projectId_example # String | (optional) (default to null)
+name = name_example # String | (optional) (default to null)
version = 56 # Integer | (optional) (default to null)
-limit = 56 # Integer | (optional) (default to null)
-offset = 56 # Integer | (optional) (default to null)
-searchQuery = searchQuery_example # String | (optional) (default to null)
try:
- # List coins
- api_response = api_instance.list_coins(owner, slug, projectId=projectId, version=version, limit=limit, offset=offset, searchQuery=searchQuery)
+ # Get a list of metrics in a project
+ api_response = api_instance.get_metrics(projectId=projectId, name=name, version=version)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DataApi->listCoins: %s\n" % e)
+ print("Exception when calling DataApi->getMetrics: %s\n" % e)
-
+
extern crate DataApi;
pub fn main() {
- let owner = owner_example; // String
- let slug = slug_example; // String
let projectId = projectId_example; // String
+ let name = name_example; // String
let version = 56; // Integer
- let limit = 56; // Integer
- let offset = 56; // Integer
- let searchQuery = searchQuery_example; // String
let mut context = DataApi::Context::default();
- let result = client.listCoins(owner, slug, projectId, version, limit, offset, searchQuery, &context).wait();
+ let result = client.getMetrics(projectId, name, version, &context).wait();
println!("{:?}", result);
}
@@ -9343,53 +9339,6 @@ Scopes
Parameters
- Path parameters
-
-
- Name
- Description
-
- owner*
-
-
-
-
-
-
-
- String
-
-
-
-
- Required
-
-
-
-
-
-
- slug*
-
-
-
-
-
-
-
- String
-
-
-
-
- Required
-
-
-
-
-
-
-
@@ -9404,7 +9353,7 @@ Parameters
-
+
@@ -9417,39 +9366,16 @@ Parameters
- version
-
-
-
-
-
-
-
- Integer
-
-
- (int32)
-
-
-
-
-
-
-
-
- limit
+ name
-
+
- Integer
+ String
-
- (int32)
-
@@ -9457,11 +9383,11 @@ Parameters
- offset
+ version
-
+
@@ -9475,45 +9401,28 @@ Parameters
-
-
- searchQuery
-
-
-
-
-
-
-
- String
-
-
-
-
-
-
Responses
-
-
+
+
-
+
-
-
-
+
+
+
-
+
-
-
+
+
- listCoins2
+ listCoins
List coins
@@ -9588,35 +9497,35 @@ listCoins2
Get a list of coins in a project.
- /api/v1/insights/coins
+ /api/v1/insights/{owner}/{slug}/coins
Usage and SDK Samples
- - Curl
- - Java
- - Dart
- - Android
-
- - Obj-C
- - JavaScript
-
- - C#
- - PHP
- - Perl
- - Python
- - Rust
+ - Curl
+ - Java
+ - Dart
+ - Android
+
+ - Obj-C
+ - JavaScript
+
+ - C#
+ - PHP
+ - Perl
+ - Python
+ - Rust
-
+
curl -X GET \
-H "api-key: [[apiKey]]" \
-H "Accept: application/json" \
- "https://app.sentio.xyz/api/v1/insights/coins?projectOwner=projectOwner_example&projectSlug=projectSlug_example&projectId=projectId_example&version=56&limit=56&offset=56&searchQuery=searchQuery_example"
+ "https://app.sentio.xyz/api/v1/insights/{owner}/{slug}/coins?projectId=projectId_example&version=56&limit=56&offset=56&searchQuery=searchQuery_example"
-
+
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
@@ -9637,8 +9546,8 @@ Usage and SDK Samples
// Create an instance of the API class
DataApi apiInstance = new DataApi();
- String projectOwner = projectOwner_example; // String |
- String projectSlug = projectSlug_example; // String |
+ String owner = owner_example; // String |
+ String slug = slug_example; // String |
String projectId = projectId_example; // String |
Integer version = 56; // Integer |
Integer limit = 56; // Integer |
@@ -9646,10 +9555,10 @@ Usage and SDK Samples
String searchQuery = searchQuery_example; // String |
try {
- insights_service.ListCoinsResponse result = apiInstance.listCoins2(projectOwner, projectSlug, projectId, version, limit, offset, searchQuery);
+ insights_service.ListCoinsResponse result = apiInstance.listCoins(owner, slug, projectId, version, limit, offset, searchQuery);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#listCoins2");
+ System.err.println("Exception when calling DataApi#listCoins");
e.printStackTrace();
}
}
@@ -9657,13 +9566,13 @@ Usage and SDK Samples
-
+
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
-final String projectOwner = new String(); // String |
-final String projectSlug = new String(); // String |
+final String owner = new String(); // String |
+final String slug = new String(); // String |
final String projectId = new String(); // String |
final Integer version = new Integer(); // Integer |
final Integer limit = new Integer(); // Integer |
@@ -9671,23 +9580,23 @@ Usage and SDK Samples
final String searchQuery = new String(); // String |
try {
- final result = await api_instance.listCoins2(projectOwner, projectSlug, projectId, version, limit, offset, searchQuery);
+ final result = await api_instance.listCoins(owner, slug, projectId, version, limit, offset, searchQuery);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->listCoins2: $e\n');
+ print('Exception when calling DefaultApi->listCoins: $e\n');
}
-
+
import org.openapitools.client.api.DataApi;
public class DataApiExample {
public static void main(String[] args) {
DataApi apiInstance = new DataApi();
- String projectOwner = projectOwner_example; // String |
- String projectSlug = projectSlug_example; // String |
+ String owner = owner_example; // String |
+ String slug = slug_example; // String |
String projectId = projectId_example; // String |
Integer version = 56; // Integer |
Integer limit = 56; // Integer |
@@ -9695,20 +9604,20 @@ Usage and SDK Samples
String searchQuery = searchQuery_example; // String |
try {
- insights_service.ListCoinsResponse result = apiInstance.listCoins2(projectOwner, projectSlug, projectId, version, limit, offset, searchQuery);
+ insights_service.ListCoinsResponse result = apiInstance.listCoins(owner, slug, projectId, version, limit, offset, searchQuery);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#listCoins2");
+ System.err.println("Exception when calling DataApi#listCoins");
e.printStackTrace();
}
}
}
-
+
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
@@ -9719,8 +9628,8 @@ Usage and SDK Samples
// Create an instance of the API class
DataApi *apiInstance = [[DataApi alloc] init];
-String *projectOwner = projectOwner_example; // (optional) (default to null)
-String *projectSlug = projectSlug_example; // (optional) (default to null)
+String *owner = owner_example; // (default to null)
+String *slug = slug_example; // (default to null)
String *projectId = projectId_example; // (optional) (default to null)
Integer *version = 56; // (optional) (default to null)
Integer *limit = 56; // (optional) (default to null)
@@ -9728,8 +9637,8 @@ Usage and SDK Samples
String *searchQuery = searchQuery_example; // (optional) (default to null)
// List coins
-[apiInstance listCoins2With:projectOwner
- projectSlug:projectSlug
+[apiInstance listCoinsWith:owner
+ slug:slug
projectId:projectId
version:version
limit:limit
@@ -9746,7 +9655,7 @@ Usage and SDK Samples
-
+
var SentioApi = require('sentio_api');
var defaultClient = SentioApi.ApiClient.instance;
@@ -9758,9 +9667,9 @@ Usage and SDK Samples
// Create an instance of the API class
var api = new SentioApi.DataApi()
+var owner = owner_example; // {String}
+var slug = slug_example; // {String}
var opts = {
- 'projectOwner': projectOwner_example, // {String}
- 'projectSlug': projectSlug_example, // {String}
'projectId': projectId_example, // {String}
'version': 56, // {Integer}
'limit': 56, // {Integer}
@@ -9775,14 +9684,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.listCoins2(opts, callback);
+api.listCoins(owner, slug, opts, callback);
-
-
+
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
@@ -9791,7 +9700,7 @@ Usage and SDK Samples
namespace Example
{
- public class listCoins2Example
+ public class listCoinsExample
{
public void main()
{
@@ -9802,8 +9711,8 @@ Usage and SDK Samples
// Create an instance of the API class
var apiInstance = new DataApi();
- var projectOwner = projectOwner_example; // String | (optional) (default to null)
- var projectSlug = projectSlug_example; // String | (optional) (default to null)
+ var owner = owner_example; // String | (default to null)
+ var slug = slug_example; // String | (default to null)
var projectId = projectId_example; // String | (optional) (default to null)
var version = 56; // Integer | (optional) (default to null)
var limit = 56; // Integer | (optional) (default to null)
@@ -9812,10 +9721,10 @@ Usage and SDK Samples
try {
// List coins
- insights_service.ListCoinsResponse result = apiInstance.listCoins2(projectOwner, projectSlug, projectId, version, limit, offset, searchQuery);
+ insights_service.ListCoinsResponse result = apiInstance.listCoins(owner, slug, projectId, version, limit, offset, searchQuery);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling DataApi.listCoins2: " + e.Message );
+ Debug.Print("Exception when calling DataApi.listCoins: " + e.Message );
}
}
}
@@ -9823,7 +9732,7 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
@@ -9834,8 +9743,8 @@ Usage and SDK Samples
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DataApi();
-$projectOwner = projectOwner_example; // String |
-$projectSlug = projectSlug_example; // String |
+$owner = owner_example; // String |
+$slug = slug_example; // String |
$projectId = projectId_example; // String |
$version = 56; // Integer |
$limit = 56; // Integer |
@@ -9843,15 +9752,15 @@ Usage and SDK Samples
$searchQuery = searchQuery_example; // String |
try {
- $result = $api_instance->listCoins2($projectOwner, $projectSlug, $projectId, $version, $limit, $offset, $searchQuery);
+ $result = $api_instance->listCoins($owner, $slug, $projectId, $version, $limit, $offset, $searchQuery);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling DataApi->listCoins2: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling DataApi->listCoins: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DataApi;
@@ -9863,8 +9772,8 @@ Usage and SDK Samples
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DataApi->new();
-my $projectOwner = projectOwner_example; # String |
-my $projectSlug = projectSlug_example; # String |
+my $owner = owner_example; # String |
+my $slug = slug_example; # String |
my $projectId = projectId_example; # String |
my $version = 56; # Integer |
my $limit = 56; # Integer |
@@ -9872,15 +9781,15 @@ Usage and SDK Samples
my $searchQuery = searchQuery_example; # String |
eval {
- my $result = $api_instance->listCoins2(projectOwner => $projectOwner, projectSlug => $projectSlug, projectId => $projectId, version => $version, limit => $limit, offset => $offset, searchQuery => $searchQuery);
+ my $result = $api_instance->listCoins(owner => $owner, slug => $slug, projectId => $projectId, version => $version, limit => $limit, offset => $offset, searchQuery => $searchQuery);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling DataApi->listCoins2: $@\n";
+ warn "Exception when calling DataApi->listCoins: $@\n";
}
-
+
from __future__ import print_statement
import time
import openapi_client
@@ -9894,8 +9803,8 @@ Usage and SDK Samples
# Create an instance of the API class
api_instance = openapi_client.DataApi()
-projectOwner = projectOwner_example # String | (optional) (default to null)
-projectSlug = projectSlug_example # String | (optional) (default to null)
+owner = owner_example # String | (default to null)
+slug = slug_example # String | (default to null)
projectId = projectId_example # String | (optional) (default to null)
version = 56 # Integer | (optional) (default to null)
limit = 56 # Integer | (optional) (default to null)
@@ -9904,18 +9813,18 @@ Usage and SDK Samples
try:
# List coins
- api_response = api_instance.list_coins2(projectOwner=projectOwner, projectSlug=projectSlug, projectId=projectId, version=version, limit=limit, offset=offset, searchQuery=searchQuery)
+ api_response = api_instance.list_coins(owner, slug, projectId=projectId, version=version, limit=limit, offset=offset, searchQuery=searchQuery)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DataApi->listCoins2: %s\n" % e)
+ print("Exception when calling DataApi->listCoins: %s\n" % e)
-
+
extern crate DataApi;
pub fn main() {
- let projectOwner = projectOwner_example; // String
- let projectSlug = projectSlug_example; // String
+ let owner = owner_example; // String
+ let slug = slug_example; // String
let projectId = projectId_example; // String
let version = 56; // Integer
let limit = 56; // Integer
@@ -9923,7 +9832,7 @@ Usage and SDK Samples
let searchQuery = searchQuery_example; // String
let mut context = DataApi::Context::default();
- let result = client.listCoins2(projectOwner, projectSlug, projectId, version, limit, offset, searchQuery, &context).wait();
+ let result = client.listCoins(owner, slug, projectId, version, limit, offset, searchQuery, &context).wait();
println!("{:?}", result);
}
@@ -9938,21 +9847,17 @@ Scopes
Parameters
-
-
-
-
- Query parameters
+ Path parameters
-
- Name
- Description
-
- projectOwner
+
+ Name
+ Description
+
+ owner*
-
+
@@ -9960,16 +9865,19 @@ Parameters
+
+ Required
+
- projectSlug
+ slug*
-
+
@@ -9977,16 +9885,30 @@ Parameters
+
+ Required
+
+
+
+
+
+
+ Query parameters
+
+
+ Name
+ Description
+
projectId
-
+
@@ -10003,7 +9925,7 @@ Parameters
-
+
@@ -10023,7 +9945,7 @@ Parameters
-
+
@@ -10043,7 +9965,7 @@ Parameters
-
+
@@ -10063,7 +9985,7 @@ Parameters
-
+
@@ -10079,23 +10001,23 @@ Parameters
Responses
-
-
+
+
-
+
-
-
-
+
+
+
-
+
-
-
+
+
- query
- Insight Query
+ listCoins2
+ List coins
- Query for metrics,event logs and coin prices in a project.
+ Get a list of coins in a project.
- /api/v1/insights/{owner}/{slug}/query
+ /api/v1/insights/coins
Usage and SDK Samples
- - Curl
- - Java
- - Dart
- - Android
-
- - Obj-C
- - JavaScript
-
- - C#
- - PHP
- - Perl
- - Python
- - Rust
+ - Curl
+ - Java
+ - Dart
+ - Android
+
+ - Obj-C
+ - JavaScript
+
+ - C#
+ - PHP
+ - Perl
+ - Python
+ - Rust
-
- curl -X POST \
+
+ curl -X GET \
-H "api-key: [[apiKey]]" \
-H "Accept: application/json" \
- -H "Content-Type: application/json" \
- "https://app.sentio.xyz/api/v1/insights/{owner}/{slug}/query" \
- -d ''
+ "https://app.sentio.xyz/api/v1/insights/coins?projectOwner=projectOwner_example&projectSlug=projectSlug_example&projectId=projectId_example&version=56&limit=56&offset=56&searchQuery=searchQuery_example"
-
+
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
@@ -10221,15 +10141,19 @@ Usage and SDK Samples
// Create an instance of the API class
DataApi apiInstance = new DataApi();
- String owner = owner_example; // String | username or organization name
- String slug = slug_example; // String | project slug
- InsightsServiceInsightsServiceQueryBody body = ; // InsightsServiceInsightsServiceQueryBody |
+ String projectOwner = projectOwner_example; // String |
+ String projectSlug = projectSlug_example; // String |
+ String projectId = projectId_example; // String |
+ Integer version = 56; // Integer |
+ Integer limit = 56; // Integer |
+ Integer offset = 56; // Integer |
+ String searchQuery = searchQuery_example; // String |
try {
- insights_service.QueryResponse result = apiInstance.query(owner, slug, body);
+ insights_service.ListCoinsResponse result = apiInstance.listCoins2(projectOwner, projectSlug, projectId, version, limit, offset, searchQuery);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#query");
+ System.err.println("Exception when calling DataApi#listCoins2");
e.printStackTrace();
}
}
@@ -10237,50 +10161,58 @@ Usage and SDK Samples
-
+
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
-final String owner = new String(); // String | username or organization name
-final String slug = new String(); // String | project slug
-final InsightsServiceInsightsServiceQueryBody body = new InsightsServiceInsightsServiceQueryBody(); // InsightsServiceInsightsServiceQueryBody |
+final String projectOwner = new String(); // String |
+final String projectSlug = new String(); // String |
+final String projectId = new String(); // String |
+final Integer version = new Integer(); // Integer |
+final Integer limit = new Integer(); // Integer |
+final Integer offset = new Integer(); // Integer |
+final String searchQuery = new String(); // String |
try {
- final result = await api_instance.query(owner, slug, body);
+ final result = await api_instance.listCoins2(projectOwner, projectSlug, projectId, version, limit, offset, searchQuery);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->query: $e\n');
+ print('Exception when calling DefaultApi->listCoins2: $e\n');
}
-
+
import org.openapitools.client.api.DataApi;
public class DataApiExample {
public static void main(String[] args) {
DataApi apiInstance = new DataApi();
- String owner = owner_example; // String | username or organization name
- String slug = slug_example; // String | project slug
- InsightsServiceInsightsServiceQueryBody body = ; // InsightsServiceInsightsServiceQueryBody |
+ String projectOwner = projectOwner_example; // String |
+ String projectSlug = projectSlug_example; // String |
+ String projectId = projectId_example; // String |
+ Integer version = 56; // Integer |
+ Integer limit = 56; // Integer |
+ Integer offset = 56; // Integer |
+ String searchQuery = searchQuery_example; // String |
try {
- insights_service.QueryResponse result = apiInstance.query(owner, slug, body);
+ insights_service.ListCoinsResponse result = apiInstance.listCoins2(projectOwner, projectSlug, projectId, version, limit, offset, searchQuery);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#query");
+ System.err.println("Exception when calling DataApi#listCoins2");
e.printStackTrace();
}
}
}
-
+
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
@@ -10291,15 +10223,23 @@ Usage and SDK Samples
// Create an instance of the API class
DataApi *apiInstance = [[DataApi alloc] init];
-String *owner = owner_example; // username or organization name (default to null)
-String *slug = slug_example; // project slug (default to null)
-InsightsServiceInsightsServiceQueryBody *body = ; //
+String *projectOwner = projectOwner_example; // (optional) (default to null)
+String *projectSlug = projectSlug_example; // (optional) (default to null)
+String *projectId = projectId_example; // (optional) (default to null)
+Integer *version = 56; // (optional) (default to null)
+Integer *limit = 56; // (optional) (default to null)
+Integer *offset = 56; // (optional) (default to null)
+String *searchQuery = searchQuery_example; // (optional) (default to null)
-// Insight Query
-[apiInstance queryWith:owner
- slug:slug
- body:body
- completionHandler: ^(insights_service.QueryResponse output, NSError* error) {
+// List coins
+[apiInstance listCoins2With:projectOwner
+ projectSlug:projectSlug
+ projectId:projectId
+ version:version
+ limit:limit
+ offset:offset
+ searchQuery:searchQuery
+ completionHandler: ^(insights_service.ListCoinsResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -10310,7 +10250,7 @@ Usage and SDK Samples
-
+
var SentioApi = require('sentio_api');
var defaultClient = SentioApi.ApiClient.instance;
@@ -10322,9 +10262,15 @@ Usage and SDK Samples
// Create an instance of the API class
var api = new SentioApi.DataApi()
-var owner = owner_example; // {String} username or organization name
-var slug = slug_example; // {String} project slug
-var body = ; // {InsightsServiceInsightsServiceQueryBody}
+var opts = {
+ 'projectOwner': projectOwner_example, // {String}
+ 'projectSlug': projectSlug_example, // {String}
+ 'projectId': projectId_example, // {String}
+ 'version': 56, // {Integer}
+ 'limit': 56, // {Integer}
+ 'offset': 56, // {Integer}
+ 'searchQuery': searchQuery_example // {String}
+};
var callback = function(error, data, response) {
if (error) {
@@ -10333,14 +10279,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.query(owner, slug, body, callback);
+api.listCoins2(opts, callback);
-
-
+
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
@@ -10349,7 +10295,7 @@ Usage and SDK Samples
namespace Example
{
- public class queryExample
+ public class listCoins2Example
{
public void main()
{
@@ -10360,16 +10306,20 @@ Usage and SDK Samples
// Create an instance of the API class
var apiInstance = new DataApi();
- var owner = owner_example; // String | username or organization name (default to null)
- var slug = slug_example; // String | project slug (default to null)
- var body = new InsightsServiceInsightsServiceQueryBody(); // InsightsServiceInsightsServiceQueryBody |
+ var projectOwner = projectOwner_example; // String | (optional) (default to null)
+ var projectSlug = projectSlug_example; // String | (optional) (default to null)
+ var projectId = projectId_example; // String | (optional) (default to null)
+ var version = 56; // Integer | (optional) (default to null)
+ var limit = 56; // Integer | (optional) (default to null)
+ var offset = 56; // Integer | (optional) (default to null)
+ var searchQuery = searchQuery_example; // String | (optional) (default to null)
try {
- // Insight Query
- insights_service.QueryResponse result = apiInstance.query(owner, slug, body);
+ // List coins
+ insights_service.ListCoinsResponse result = apiInstance.listCoins2(projectOwner, projectSlug, projectId, version, limit, offset, searchQuery);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling DataApi.query: " + e.Message );
+ Debug.Print("Exception when calling DataApi.listCoins2: " + e.Message );
}
}
}
@@ -10377,7 +10327,7 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
@@ -10388,20 +10338,24 @@ Usage and SDK Samples
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DataApi();
-$owner = owner_example; // String | username or organization name
-$slug = slug_example; // String | project slug
-$body = ; // InsightsServiceInsightsServiceQueryBody |
+$projectOwner = projectOwner_example; // String |
+$projectSlug = projectSlug_example; // String |
+$projectId = projectId_example; // String |
+$version = 56; // Integer |
+$limit = 56; // Integer |
+$offset = 56; // Integer |
+$searchQuery = searchQuery_example; // String |
try {
- $result = $api_instance->query($owner, $slug, $body);
+ $result = $api_instance->listCoins2($projectOwner, $projectSlug, $projectId, $version, $limit, $offset, $searchQuery);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling DataApi->query: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling DataApi->listCoins2: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DataApi;
@@ -10413,20 +10367,24 @@ Usage and SDK Samples
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DataApi->new();
-my $owner = owner_example; # String | username or organization name
-my $slug = slug_example; # String | project slug
-my $body = WWW::OPenAPIClient::Object::InsightsServiceInsightsServiceQueryBody->new(); # InsightsServiceInsightsServiceQueryBody |
-
-eval {
- my $result = $api_instance->query(owner => $owner, slug => $slug, body => $body);
+my $projectOwner = projectOwner_example; # String |
+my $projectSlug = projectSlug_example; # String |
+my $projectId = projectId_example; # String |
+my $version = 56; # Integer |
+my $limit = 56; # Integer |
+my $offset = 56; # Integer |
+my $searchQuery = searchQuery_example; # String |
+
+eval {
+ my $result = $api_instance->listCoins2(projectOwner => $projectOwner, projectSlug => $projectSlug, projectId => $projectId, version => $version, limit => $limit, offset => $offset, searchQuery => $searchQuery);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling DataApi->query: $@\n";
+ warn "Exception when calling DataApi->listCoins2: $@\n";
}
-
+
from __future__ import print_statement
import time
import openapi_client
@@ -10440,28 +10398,36 @@ Usage and SDK Samples
# Create an instance of the API class
api_instance = openapi_client.DataApi()
-owner = owner_example # String | username or organization name (default to null)
-slug = slug_example # String | project slug (default to null)
-body = # InsightsServiceInsightsServiceQueryBody |
+projectOwner = projectOwner_example # String | (optional) (default to null)
+projectSlug = projectSlug_example # String | (optional) (default to null)
+projectId = projectId_example # String | (optional) (default to null)
+version = 56 # Integer | (optional) (default to null)
+limit = 56 # Integer | (optional) (default to null)
+offset = 56 # Integer | (optional) (default to null)
+searchQuery = searchQuery_example # String | (optional) (default to null)
try:
- # Insight Query
- api_response = api_instance.query(owner, slug, body)
+ # List coins
+ api_response = api_instance.list_coins2(projectOwner=projectOwner, projectSlug=projectSlug, projectId=projectId, version=version, limit=limit, offset=offset, searchQuery=searchQuery)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DataApi->query: %s\n" % e)
+ print("Exception when calling DataApi->listCoins2: %s\n" % e)
-
+
extern crate DataApi;
pub fn main() {
- let owner = owner_example; // String
- let slug = slug_example; // String
- let body = ; // InsightsServiceInsightsServiceQueryBody
+ let projectOwner = projectOwner_example; // String
+ let projectSlug = projectSlug_example; // String
+ let projectId = projectId_example; // String
+ let version = 56; // Integer
+ let limit = 56; // Integer
+ let offset = 56; // Integer
+ let searchQuery = searchQuery_example; // String
let mut context = DataApi::Context::default();
- let result = client.query(owner, slug, body, &context).wait();
+ let result = client.listCoins2(projectOwner, projectSlug, projectId, version, limit, offset, searchQuery, &context).wait();
println!("{:?}", result);
}
@@ -10476,130 +10442,164 @@ Scopes
Parameters
- Path parameters
+
+
+
+
+ Query parameters
-
- Name
- Description
-
- owner*
+
+ Name
+ Description
+
+ projectOwner
-
+
String
-
-username or organization name
-
-
- Required
-
- slug*
+ projectSlug
-
+
String
-
-project slug
-
-
- Required
-
-
+ projectId
+
- Body parameters
-
-
- Name
- Description
-
- body *
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+ version
-
-
-
+
+
+
+
+ Integer
+
+
+ (int32)
+
+
+
+
+
-
+ limit
+
+
+
+
+
+
+
+ Integer
+
+
+ (int32)
+
+
+
+
+
+
+
+
+ offset
+
+
+
+
+
+
+
+ Integer
+
+
+ (int32)
+
+
+
+
+
+
+
+
+ searchQuery
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+
Responses
-
-
+
+
-
+
-
-
-
+
+
+
-
+
-
-
+
+
- queryInstant
- Metric instant queries
+ query
+ Insight Query
-
+ Query for metrics,event logs and coin prices in a project.
- /api/v1/metrics/{owner}/{slug}/query
+ /api/v1/insights/{owner}/{slug}/query
Usage and SDK Samples
- - Curl
- - Java
- - Dart
- - Android
-
- - Obj-C
- - JavaScript
-
- - C#
- - PHP
- - Perl
- - Python
- - Rust
+ - Curl
+ - Java
+ - Dart
+ - Android
+
+ - Obj-C
+ - JavaScript
+
+ - C#
+ - PHP
+ - Perl
+ - Python
+ - Rust
-
+
curl -X POST \
-H "api-key: [[apiKey]]" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
- "https://app.sentio.xyz/api/v1/metrics/{owner}/{slug}/query" \
+ "https://app.sentio.xyz/api/v1/insights/{owner}/{slug}/query" \
-d ''
-
+
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
@@ -10727,13 +10727,13 @@ Usage and SDK Samples
DataApi apiInstance = new DataApi();
String owner = owner_example; // String | username or organization name
String slug = slug_example; // String | project slug
- MetricsServiceObservabilityServiceQueryBody body = ; // MetricsServiceObservabilityServiceQueryBody |
+ InsightsServiceInsightsServiceQueryBody body = ; // InsightsServiceInsightsServiceQueryBody |
try {
- metrics_service.QueryValueResponse result = apiInstance.queryInstant(owner, slug, body);
+ insights_service.QueryResponse result = apiInstance.query(owner, slug, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#queryInstant");
+ System.err.println("Exception when calling DataApi#query");
e.printStackTrace();
}
}
@@ -10741,26 +10741,26 @@ Usage and SDK Samples
-
+
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final String owner = new String(); // String | username or organization name
final String slug = new String(); // String | project slug
-final MetricsServiceObservabilityServiceQueryBody body = new MetricsServiceObservabilityServiceQueryBody(); // MetricsServiceObservabilityServiceQueryBody |
+final InsightsServiceInsightsServiceQueryBody body = new InsightsServiceInsightsServiceQueryBody(); // InsightsServiceInsightsServiceQueryBody |
try {
- final result = await api_instance.queryInstant(owner, slug, body);
+ final result = await api_instance.query(owner, slug, body);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->queryInstant: $e\n');
+ print('Exception when calling DefaultApi->query: $e\n');
}
-
+
import org.openapitools.client.api.DataApi;
public class DataApiExample {
@@ -10768,23 +10768,23 @@ Usage and SDK Samples
DataApi apiInstance = new DataApi();
String owner = owner_example; // String | username or organization name
String slug = slug_example; // String | project slug
- MetricsServiceObservabilityServiceQueryBody body = ; // MetricsServiceObservabilityServiceQueryBody |
+ InsightsServiceInsightsServiceQueryBody body = ; // InsightsServiceInsightsServiceQueryBody |
try {
- metrics_service.QueryValueResponse result = apiInstance.queryInstant(owner, slug, body);
+ insights_service.QueryResponse result = apiInstance.query(owner, slug, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#queryInstant");
+ System.err.println("Exception when calling DataApi#query");
e.printStackTrace();
}
}
}
-
+
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
@@ -10797,13 +10797,13 @@ Usage and SDK Samples
DataApi *apiInstance = [[DataApi alloc] init];
String *owner = owner_example; // username or organization name (default to null)
String *slug = slug_example; // project slug (default to null)
-MetricsServiceObservabilityServiceQueryBody *body = ; //
+InsightsServiceInsightsServiceQueryBody *body = ; //
-// Metric instant queries
-[apiInstance queryInstantWith:owner
+// Insight Query
+[apiInstance queryWith:owner
slug:slug
body:body
- completionHandler: ^(metrics_service.QueryValueResponse output, NSError* error) {
+ completionHandler: ^(insights_service.QueryResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -10814,7 +10814,7 @@ Usage and SDK Samples
-
+
var SentioApi = require('sentio_api');
var defaultClient = SentioApi.ApiClient.instance;
@@ -10828,7 +10828,7 @@ Usage and SDK Samples
var api = new SentioApi.DataApi()
var owner = owner_example; // {String} username or organization name
var slug = slug_example; // {String} project slug
-var body = ; // {MetricsServiceObservabilityServiceQueryBody}
+var body = ; // {InsightsServiceInsightsServiceQueryBody}
var callback = function(error, data, response) {
if (error) {
@@ -10837,14 +10837,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.queryInstant(owner, slug, body, callback);
+api.query(owner, slug, body, callback);
-
-
+
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
@@ -10853,7 +10853,7 @@ Usage and SDK Samples
namespace Example
{
- public class queryInstantExample
+ public class queryExample
{
public void main()
{
@@ -10866,14 +10866,14 @@ Usage and SDK Samples
var apiInstance = new DataApi();
var owner = owner_example; // String | username or organization name (default to null)
var slug = slug_example; // String | project slug (default to null)
- var body = new MetricsServiceObservabilityServiceQueryBody(); // MetricsServiceObservabilityServiceQueryBody |
+ var body = new InsightsServiceInsightsServiceQueryBody(); // InsightsServiceInsightsServiceQueryBody |
try {
- // Metric instant queries
- metrics_service.QueryValueResponse result = apiInstance.queryInstant(owner, slug, body);
+ // Insight Query
+ insights_service.QueryResponse result = apiInstance.query(owner, slug, body);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling DataApi.queryInstant: " + e.Message );
+ Debug.Print("Exception when calling DataApi.query: " + e.Message );
}
}
}
@@ -10881,7 +10881,7 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
@@ -10894,18 +10894,18 @@ Usage and SDK Samples
$api_instance = new OpenAPITools\Client\Api\DataApi();
$owner = owner_example; // String | username or organization name
$slug = slug_example; // String | project slug
-$body = ; // MetricsServiceObservabilityServiceQueryBody |
+$body = ; // InsightsServiceInsightsServiceQueryBody |
try {
- $result = $api_instance->queryInstant($owner, $slug, $body);
+ $result = $api_instance->query($owner, $slug, $body);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling DataApi->queryInstant: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling DataApi->query: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DataApi;
@@ -10919,18 +10919,18 @@ Usage and SDK Samples
my $api_instance = WWW::OPenAPIClient::DataApi->new();
my $owner = owner_example; # String | username or organization name
my $slug = slug_example; # String | project slug
-my $body = WWW::OPenAPIClient::Object::MetricsServiceObservabilityServiceQueryBody->new(); # MetricsServiceObservabilityServiceQueryBody |
+my $body = WWW::OPenAPIClient::Object::InsightsServiceInsightsServiceQueryBody->new(); # InsightsServiceInsightsServiceQueryBody |
eval {
- my $result = $api_instance->queryInstant(owner => $owner, slug => $slug, body => $body);
+ my $result = $api_instance->query(owner => $owner, slug => $slug, body => $body);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling DataApi->queryInstant: $@\n";
+ warn "Exception when calling DataApi->query: $@\n";
}
-
+
from __future__ import print_statement
import time
import openapi_client
@@ -10946,26 +10946,26 @@ Usage and SDK Samples
api_instance = openapi_client.DataApi()
owner = owner_example # String | username or organization name (default to null)
slug = slug_example # String | project slug (default to null)
-body = # MetricsServiceObservabilityServiceQueryBody |
+body = # InsightsServiceInsightsServiceQueryBody |
try:
- # Metric instant queries
- api_response = api_instance.query_instant(owner, slug, body)
+ # Insight Query
+ api_response = api_instance.query(owner, slug, body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DataApi->queryInstant: %s\n" % e)
+ print("Exception when calling DataApi->query: %s\n" % e)
-
+
extern crate DataApi;
pub fn main() {
let owner = owner_example; // String
let slug = slug_example; // String
- let body = ; // MetricsServiceObservabilityServiceQueryBody
+ let body = ; // InsightsServiceInsightsServiceQueryBody
let mut context = DataApi::Context::default();
- let result = client.queryInstant(owner, slug, body, &context).wait();
+ let result = client.query(owner, slug, body, &context).wait();
println!("{:?}", result);
}
@@ -10990,7 +10990,7 @@ Parameters
-
+
@@ -11013,7 +11013,7 @@ Parameters
-
+
@@ -11050,7 +11050,7 @@ Parameters
"content" : {
"application/json" : {
"schema" : {
- "$ref" : "#/components/schemas/metrics_service.ObservabilityService.QueryBody"
+ "$ref" : "#/components/schemas/insights_service.InsightsService.QueryBody"
}
}
},
@@ -11073,12 +11073,12 @@ Parameters
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
- var result = $('#d2e199_queryInstant_body');
+ var result = $('#d2e199_query_body');
result.empty();
result.append(view.render());
});
-
+
@@ -11087,23 +11087,23 @@ Parameters
Responses
-
-
+
+
-
+
-
-
-
+
+
+
-
+
-
-
+
+
- queryLog
- Query event logs
+ queryInstant
+ Metric instant queries
@@ -11178,37 +11178,37 @@ queryLog
- /api/v1/eventlogs/{owner}/{slug}
+ /api/v1/metrics/{owner}/{slug}/query
Usage and SDK Samples
- - Curl
- - Java
- - Dart
- - Android
-
- - Obj-C
- - JavaScript
-
- - C#
- - PHP
- - Perl
- - Python
- - Rust
+ - Curl
+ - Java
+ - Dart
+ - Android
+
+ - Obj-C
+ - JavaScript
+
+ - C#
+ - PHP
+ - Perl
+ - Python
+ - Rust
-
+
curl -X POST \
-H "api-key: [[apiKey]]" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
- "https://app.sentio.xyz/api/v1/eventlogs/{owner}/{slug}" \
+ "https://app.sentio.xyz/api/v1/metrics/{owner}/{slug}/query" \
-d ''
-
+
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
@@ -11229,15 +11229,15 @@ Usage and SDK Samples
// Create an instance of the API class
DataApi apiInstance = new DataApi();
- String owner = owner_example; // String |
- String slug = slug_example; // String |
- AnalyticServiceSearchServiceQueryLogBody body = ; // AnalyticServiceSearchServiceQueryLogBody |
+ String owner = owner_example; // String | username or organization name
+ String slug = slug_example; // String | project slug
+ MetricsServiceObservabilityServiceQueryBody body = ; // MetricsServiceObservabilityServiceQueryBody |
try {
- analytic_service.LogQueryResponse result = apiInstance.queryLog(owner, slug, body);
+ metrics_service.QueryValueResponse result = apiInstance.queryInstant(owner, slug, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#queryLog");
+ System.err.println("Exception when calling DataApi#queryInstant");
e.printStackTrace();
}
}
@@ -11245,50 +11245,50 @@ Usage and SDK Samples
-
+
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
-final String owner = new String(); // String |
-final String slug = new String(); // String |
-final AnalyticServiceSearchServiceQueryLogBody body = new AnalyticServiceSearchServiceQueryLogBody(); // AnalyticServiceSearchServiceQueryLogBody |
+final String owner = new String(); // String | username or organization name
+final String slug = new String(); // String | project slug
+final MetricsServiceObservabilityServiceQueryBody body = new MetricsServiceObservabilityServiceQueryBody(); // MetricsServiceObservabilityServiceQueryBody |
try {
- final result = await api_instance.queryLog(owner, slug, body);
+ final result = await api_instance.queryInstant(owner, slug, body);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->queryLog: $e\n');
+ print('Exception when calling DefaultApi->queryInstant: $e\n');
}
-
+
import org.openapitools.client.api.DataApi;
public class DataApiExample {
public static void main(String[] args) {
DataApi apiInstance = new DataApi();
- String owner = owner_example; // String |
- String slug = slug_example; // String |
- AnalyticServiceSearchServiceQueryLogBody body = ; // AnalyticServiceSearchServiceQueryLogBody |
+ String owner = owner_example; // String | username or organization name
+ String slug = slug_example; // String | project slug
+ MetricsServiceObservabilityServiceQueryBody body = ; // MetricsServiceObservabilityServiceQueryBody |
try {
- analytic_service.LogQueryResponse result = apiInstance.queryLog(owner, slug, body);
+ metrics_service.QueryValueResponse result = apiInstance.queryInstant(owner, slug, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#queryLog");
+ System.err.println("Exception when calling DataApi#queryInstant");
e.printStackTrace();
}
}
}
-
+
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
@@ -11299,15 +11299,15 @@ Usage and SDK Samples
// Create an instance of the API class
DataApi *apiInstance = [[DataApi alloc] init];
-String *owner = owner_example; // (default to null)
-String *slug = slug_example; // (default to null)
-AnalyticServiceSearchServiceQueryLogBody *body = ; //
+String *owner = owner_example; // username or organization name (default to null)
+String *slug = slug_example; // project slug (default to null)
+MetricsServiceObservabilityServiceQueryBody *body = ; //
-// Query event logs
-[apiInstance queryLogWith:owner
+// Metric instant queries
+[apiInstance queryInstantWith:owner
slug:slug
body:body
- completionHandler: ^(analytic_service.LogQueryResponse output, NSError* error) {
+ completionHandler: ^(metrics_service.QueryValueResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -11318,7 +11318,7 @@ Usage and SDK Samples
-
+
var SentioApi = require('sentio_api');
var defaultClient = SentioApi.ApiClient.instance;
@@ -11330,9 +11330,9 @@ Usage and SDK Samples
// Create an instance of the API class
var api = new SentioApi.DataApi()
-var owner = owner_example; // {String}
-var slug = slug_example; // {String}
-var body = ; // {AnalyticServiceSearchServiceQueryLogBody}
+var owner = owner_example; // {String} username or organization name
+var slug = slug_example; // {String} project slug
+var body = ; // {MetricsServiceObservabilityServiceQueryBody}
var callback = function(error, data, response) {
if (error) {
@@ -11341,14 +11341,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.queryLog(owner, slug, body, callback);
+api.queryInstant(owner, slug, body, callback);
-
-
+
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
@@ -11357,7 +11357,7 @@ Usage and SDK Samples
namespace Example
{
- public class queryLogExample
+ public class queryInstantExample
{
public void main()
{
@@ -11368,16 +11368,16 @@ Usage and SDK Samples
// Create an instance of the API class
var apiInstance = new DataApi();
- var owner = owner_example; // String | (default to null)
- var slug = slug_example; // String | (default to null)
- var body = new AnalyticServiceSearchServiceQueryLogBody(); // AnalyticServiceSearchServiceQueryLogBody |
+ var owner = owner_example; // String | username or organization name (default to null)
+ var slug = slug_example; // String | project slug (default to null)
+ var body = new MetricsServiceObservabilityServiceQueryBody(); // MetricsServiceObservabilityServiceQueryBody |
try {
- // Query event logs
- analytic_service.LogQueryResponse result = apiInstance.queryLog(owner, slug, body);
+ // Metric instant queries
+ metrics_service.QueryValueResponse result = apiInstance.queryInstant(owner, slug, body);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling DataApi.queryLog: " + e.Message );
+ Debug.Print("Exception when calling DataApi.queryInstant: " + e.Message );
}
}
}
@@ -11385,7 +11385,7 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
@@ -11396,20 +11396,20 @@ Usage and SDK Samples
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DataApi();
-$owner = owner_example; // String |
-$slug = slug_example; // String |
-$body = ; // AnalyticServiceSearchServiceQueryLogBody |
+$owner = owner_example; // String | username or organization name
+$slug = slug_example; // String | project slug
+$body = ; // MetricsServiceObservabilityServiceQueryBody |
try {
- $result = $api_instance->queryLog($owner, $slug, $body);
+ $result = $api_instance->queryInstant($owner, $slug, $body);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling DataApi->queryLog: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling DataApi->queryInstant: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DataApi;
@@ -11421,20 +11421,20 @@ Usage and SDK Samples
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DataApi->new();
-my $owner = owner_example; # String |
-my $slug = slug_example; # String |
-my $body = WWW::OPenAPIClient::Object::AnalyticServiceSearchServiceQueryLogBody->new(); # AnalyticServiceSearchServiceQueryLogBody |
+my $owner = owner_example; # String | username or organization name
+my $slug = slug_example; # String | project slug
+my $body = WWW::OPenAPIClient::Object::MetricsServiceObservabilityServiceQueryBody->new(); # MetricsServiceObservabilityServiceQueryBody |
eval {
- my $result = $api_instance->queryLog(owner => $owner, slug => $slug, body => $body);
+ my $result = $api_instance->queryInstant(owner => $owner, slug => $slug, body => $body);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling DataApi->queryLog: $@\n";
+ warn "Exception when calling DataApi->queryInstant: $@\n";
}
-
+
from __future__ import print_statement
import time
import openapi_client
@@ -11448,28 +11448,28 @@ Usage and SDK Samples
# Create an instance of the API class
api_instance = openapi_client.DataApi()
-owner = owner_example # String | (default to null)
-slug = slug_example # String | (default to null)
-body = # AnalyticServiceSearchServiceQueryLogBody |
+owner = owner_example # String | username or organization name (default to null)
+slug = slug_example # String | project slug (default to null)
+body = # MetricsServiceObservabilityServiceQueryBody |
try:
- # Query event logs
- api_response = api_instance.query_log(owner, slug, body)
+ # Metric instant queries
+ api_response = api_instance.query_instant(owner, slug, body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DataApi->queryLog: %s\n" % e)
+ print("Exception when calling DataApi->queryInstant: %s\n" % e)
-
+
extern crate DataApi;
pub fn main() {
let owner = owner_example; // String
let slug = slug_example; // String
- let body = ; // AnalyticServiceSearchServiceQueryLogBody
+ let body = ; // MetricsServiceObservabilityServiceQueryBody
let mut context = DataApi::Context::default();
- let result = client.queryLog(owner, slug, body, &context).wait();
+ let result = client.queryInstant(owner, slug, body, &context).wait();
println!("{:?}", result);
}
@@ -11494,13 +11494,16 @@ Parameters
-
+
String
+
+username or organization name
+
Required
@@ -11514,13 +11517,16 @@ Parameters
-
+
String
+
+project slug
+
Required
@@ -11548,7 +11554,7 @@ Parameters
"content" : {
"application/json" : {
"schema" : {
- "$ref" : "#/components/schemas/analytic_service.SearchService.QueryLogBody"
+ "$ref" : "#/components/schemas/metrics_service.ObservabilityService.QueryBody"
}
}
},
@@ -11571,12 +11577,12 @@ Parameters
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
- var result = $('#d2e199_queryLog_body');
+ var result = $('#d2e199_queryInstant_body');
result.empty();
result.append(view.render());
});
-
+
@@ -11585,23 +11591,23 @@ Parameters
Responses
-
-
+
+
-
+
-
-
-
+
+
+
-
+
-
-
+
+
- queryLog2
+ queryLog
Query event logs
@@ -11676,35 +11682,37 @@ queryLog2
- /api/v1/eventlogs/{owner}/{slug}/query
+ /api/v1/eventlogs/{owner}/{slug}
Usage and SDK Samples
- - Curl
- - Java
- - Dart
- - Android
-
- - Obj-C
- - JavaScript
-
- - C#
- - PHP
- - Perl
- - Python
- - Rust
+ - Curl
+ - Java
+ - Dart
+ - Android
+
+ - Obj-C
+ - JavaScript
+
+ - C#
+ - PHP
+ - Perl
+ - Python
+ - Rust
-
- curl -X GET \
+
+ curl -X POST \
-H "api-key: [[apiKey]]" \
-H "Accept: application/json" \
- "https://app.sentio.xyz/api/v1/eventlogs/{owner}/{slug}/query?projectId=projectId_example&query=query_example&timeRange.start.relativeTime.unit=timeRangePeriodstartPeriodrelativeTimePeriodunit_example&timeRange.start.relativeTime.value=56&timeRange.start.relativeTime.align=timeRangePeriodstartPeriodrelativeTimePeriodalign_example&timeRange.start.absoluteTime=timeRangePeriodstartPeriodabsoluteTime_example&timeRange.end.relativeTime.unit=timeRangePeriodendPeriodrelativeTimePeriodunit_example&timeRange.end.relativeTime.value=56&timeRange.end.relativeTime.align=timeRangePeriodendPeriodrelativeTimePeriodalign_example&timeRange.end.absoluteTime=timeRangePeriodendPeriodabsoluteTime_example&timeRange.step=timeRangePeriodstep_example&timeRange.interval.value=1.2&timeRange.interval.unit=timeRangePeriodintervalPeriodunit_example&timeRange.timezone=timeRangePeriodtimezone_example&limit=56&offset=56&version=56"
+ -H "Content-Type: application/json" \
+ "https://app.sentio.xyz/api/v1/eventlogs/{owner}/{slug}" \
+ -d ''
-
+
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
@@ -11727,29 +11735,13 @@ Usage and SDK Samples
DataApi apiInstance = new DataApi();
String owner = owner_example; // String |
String slug = slug_example; // String |
- String projectId = projectId_example; // String |
- String query = query_example; // String |
- String timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; // String |
- Integer timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; // Integer |
- String timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; // String |
- String timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; // String |
- String timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; // String |
- Integer timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; // Integer |
- String timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; // String |
- String timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; // String |
- String timeRangePeriodstep = timeRangePeriodstep_example; // String |
- Double timeRangePeriodintervalPeriodvalue = 1.2; // Double |
- String timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; // String |
- String timeRangePeriodtimezone = timeRangePeriodtimezone_example; // String |
- Integer limit = 56; // Integer |
- Integer offset = 56; // Integer |
- Integer version = 56; // Integer |
+ AnalyticServiceSearchServiceQueryLogBody body = ; // AnalyticServiceSearchServiceQueryLogBody |
try {
- analytic_service.LogQueryResponse result = apiInstance.queryLog2(owner, slug, projectId, query, timeRangePeriodstartPeriodrelativeTimePeriodunit, timeRangePeriodstartPeriodrelativeTimePeriodvalue, timeRangePeriodstartPeriodrelativeTimePeriodalign, timeRangePeriodstartPeriodabsoluteTime, timeRangePeriodendPeriodrelativeTimePeriodunit, timeRangePeriodendPeriodrelativeTimePeriodvalue, timeRangePeriodendPeriodrelativeTimePeriodalign, timeRangePeriodendPeriodabsoluteTime, timeRangePeriodstep, timeRangePeriodintervalPeriodvalue, timeRangePeriodintervalPeriodunit, timeRangePeriodtimezone, limit, offset, version);
+ analytic_service.LogQueryResponse result = apiInstance.queryLog(owner, slug, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#queryLog2");
+ System.err.println("Exception when calling DataApi#queryLog");
e.printStackTrace();
}
}
@@ -11757,42 +11749,26 @@ Usage and SDK Samples
-
+
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final String owner = new String(); // String |
final String slug = new String(); // String |
-final String projectId = new String(); // String |
-final String query = new String(); // String |
-final String timeRangePeriodstartPeriodrelativeTimePeriodunit = new String(); // String |
-final Integer timeRangePeriodstartPeriodrelativeTimePeriodvalue = new Integer(); // Integer |
-final String timeRangePeriodstartPeriodrelativeTimePeriodalign = new String(); // String |
-final String timeRangePeriodstartPeriodabsoluteTime = new String(); // String |
-final String timeRangePeriodendPeriodrelativeTimePeriodunit = new String(); // String |
-final Integer timeRangePeriodendPeriodrelativeTimePeriodvalue = new Integer(); // Integer |
-final String timeRangePeriodendPeriodrelativeTimePeriodalign = new String(); // String |
-final String timeRangePeriodendPeriodabsoluteTime = new String(); // String |
-final String timeRangePeriodstep = new String(); // String |
-final Double timeRangePeriodintervalPeriodvalue = new Double(); // Double |
-final String timeRangePeriodintervalPeriodunit = new String(); // String |
-final String timeRangePeriodtimezone = new String(); // String |
-final Integer limit = new Integer(); // Integer |
-final Integer offset = new Integer(); // Integer |
-final Integer version = new Integer(); // Integer |
+final AnalyticServiceSearchServiceQueryLogBody body = new AnalyticServiceSearchServiceQueryLogBody(); // AnalyticServiceSearchServiceQueryLogBody |
try {
- final result = await api_instance.queryLog2(owner, slug, projectId, query, timeRangePeriodstartPeriodrelativeTimePeriodunit, timeRangePeriodstartPeriodrelativeTimePeriodvalue, timeRangePeriodstartPeriodrelativeTimePeriodalign, timeRangePeriodstartPeriodabsoluteTime, timeRangePeriodendPeriodrelativeTimePeriodunit, timeRangePeriodendPeriodrelativeTimePeriodvalue, timeRangePeriodendPeriodrelativeTimePeriodalign, timeRangePeriodendPeriodabsoluteTime, timeRangePeriodstep, timeRangePeriodintervalPeriodvalue, timeRangePeriodintervalPeriodunit, timeRangePeriodtimezone, limit, offset, version);
+ final result = await api_instance.queryLog(owner, slug, body);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->queryLog2: $e\n');
+ print('Exception when calling DefaultApi->queryLog: $e\n');
}
-
+
import org.openapitools.client.api.DataApi;
public class DataApiExample {
@@ -11800,39 +11776,23 @@ Usage and SDK Samples
DataApi apiInstance = new DataApi();
String owner = owner_example; // String |
String slug = slug_example; // String |
- String projectId = projectId_example; // String |
- String query = query_example; // String |
- String timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; // String |
- Integer timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; // Integer |
- String timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; // String |
- String timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; // String |
- String timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; // String |
- Integer timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; // Integer |
- String timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; // String |
- String timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; // String |
- String timeRangePeriodstep = timeRangePeriodstep_example; // String |
- Double timeRangePeriodintervalPeriodvalue = 1.2; // Double |
- String timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; // String |
- String timeRangePeriodtimezone = timeRangePeriodtimezone_example; // String |
- Integer limit = 56; // Integer |
- Integer offset = 56; // Integer |
- Integer version = 56; // Integer |
+ AnalyticServiceSearchServiceQueryLogBody body = ; // AnalyticServiceSearchServiceQueryLogBody |
try {
- analytic_service.LogQueryResponse result = apiInstance.queryLog2(owner, slug, projectId, query, timeRangePeriodstartPeriodrelativeTimePeriodunit, timeRangePeriodstartPeriodrelativeTimePeriodvalue, timeRangePeriodstartPeriodrelativeTimePeriodalign, timeRangePeriodstartPeriodabsoluteTime, timeRangePeriodendPeriodrelativeTimePeriodunit, timeRangePeriodendPeriodrelativeTimePeriodvalue, timeRangePeriodendPeriodrelativeTimePeriodalign, timeRangePeriodendPeriodabsoluteTime, timeRangePeriodstep, timeRangePeriodintervalPeriodvalue, timeRangePeriodintervalPeriodunit, timeRangePeriodtimezone, limit, offset, version);
+ analytic_service.LogQueryResponse result = apiInstance.queryLog(owner, slug, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#queryLog2");
+ System.err.println("Exception when calling DataApi#queryLog");
e.printStackTrace();
}
}
}
-
+
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
@@ -11845,44 +11805,12 @@ Usage and SDK Samples
DataApi *apiInstance = [[DataApi alloc] init];
String *owner = owner_example; // (default to null)
String *slug = slug_example; // (default to null)
-String *projectId = projectId_example; // (optional) (default to null)
-String *query = query_example; // (optional) (default to null)
-String *timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; // (optional) (default to null)
-Integer *timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; // (optional) (default to null)
-String *timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; // (optional) (default to null)
-String *timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; // (optional) (default to null)
-String *timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; // (optional) (default to null)
-Integer *timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; // (optional) (default to null)
-String *timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; // (optional) (default to null)
-String *timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; // (optional) (default to null)
-String *timeRangePeriodstep = timeRangePeriodstep_example; // (optional) (default to null)
-Double *timeRangePeriodintervalPeriodvalue = 1.2; // (optional) (default to null)
-String *timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; // (optional) (default to null)
-String *timeRangePeriodtimezone = timeRangePeriodtimezone_example; // (optional) (default to null)
-Integer *limit = 56; // (optional) (default to null)
-Integer *offset = 56; // (optional) (default to null)
-Integer *version = 56; // (optional) (default to null)
+AnalyticServiceSearchServiceQueryLogBody *body = ; //
// Query event logs
-[apiInstance queryLog2With:owner
+[apiInstance queryLogWith:owner
slug:slug
- projectId:projectId
- query:query
- timeRangePeriodstartPeriodrelativeTimePeriodunit:timeRangePeriodstartPeriodrelativeTimePeriodunit
- timeRangePeriodstartPeriodrelativeTimePeriodvalue:timeRangePeriodstartPeriodrelativeTimePeriodvalue
- timeRangePeriodstartPeriodrelativeTimePeriodalign:timeRangePeriodstartPeriodrelativeTimePeriodalign
- timeRangePeriodstartPeriodabsoluteTime:timeRangePeriodstartPeriodabsoluteTime
- timeRangePeriodendPeriodrelativeTimePeriodunit:timeRangePeriodendPeriodrelativeTimePeriodunit
- timeRangePeriodendPeriodrelativeTimePeriodvalue:timeRangePeriodendPeriodrelativeTimePeriodvalue
- timeRangePeriodendPeriodrelativeTimePeriodalign:timeRangePeriodendPeriodrelativeTimePeriodalign
- timeRangePeriodendPeriodabsoluteTime:timeRangePeriodendPeriodabsoluteTime
- timeRangePeriodstep:timeRangePeriodstep
- timeRangePeriodintervalPeriodvalue:timeRangePeriodintervalPeriodvalue
- timeRangePeriodintervalPeriodunit:timeRangePeriodintervalPeriodunit
- timeRangePeriodtimezone:timeRangePeriodtimezone
- limit:limit
- offset:offset
- version:version
+ body:body
completionHandler: ^(analytic_service.LogQueryResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
@@ -11894,7 +11822,7 @@ Usage and SDK Samples
-
+
var SentioApi = require('sentio_api');
var defaultClient = SentioApi.ApiClient.instance;
@@ -11908,25 +11836,7 @@ Usage and SDK Samples
var api = new SentioApi.DataApi()
var owner = owner_example; // {String}
var slug = slug_example; // {String}
-var opts = {
- 'projectId': projectId_example, // {String}
- 'query': query_example, // {String}
- 'timeRangePeriodstartPeriodrelativeTimePeriodunit': timeRangePeriodstartPeriodrelativeTimePeriodunit_example, // {String}
- 'timeRangePeriodstartPeriodrelativeTimePeriodvalue': 56, // {Integer}
- 'timeRangePeriodstartPeriodrelativeTimePeriodalign': timeRangePeriodstartPeriodrelativeTimePeriodalign_example, // {String}
- 'timeRangePeriodstartPeriodabsoluteTime': timeRangePeriodstartPeriodabsoluteTime_example, // {String}
- 'timeRangePeriodendPeriodrelativeTimePeriodunit': timeRangePeriodendPeriodrelativeTimePeriodunit_example, // {String}
- 'timeRangePeriodendPeriodrelativeTimePeriodvalue': 56, // {Integer}
- 'timeRangePeriodendPeriodrelativeTimePeriodalign': timeRangePeriodendPeriodrelativeTimePeriodalign_example, // {String}
- 'timeRangePeriodendPeriodabsoluteTime': timeRangePeriodendPeriodabsoluteTime_example, // {String}
- 'timeRangePeriodstep': timeRangePeriodstep_example, // {String}
- 'timeRangePeriodintervalPeriodvalue': 1.2, // {Double}
- 'timeRangePeriodintervalPeriodunit': timeRangePeriodintervalPeriodunit_example, // {String}
- 'timeRangePeriodtimezone': timeRangePeriodtimezone_example, // {String}
- 'limit': 56, // {Integer}
- 'offset': 56, // {Integer}
- 'version': 56 // {Integer}
-};
+var body = ; // {AnalyticServiceSearchServiceQueryLogBody}
var callback = function(error, data, response) {
if (error) {
@@ -11935,14 +11845,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.queryLog2(owner, slug, opts, callback);
+api.queryLog(owner, slug, body, callback);
-
-
+
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
@@ -11951,7 +11861,7 @@ Usage and SDK Samples
namespace Example
{
- public class queryLog2Example
+ public class queryLogExample
{
public void main()
{
@@ -11964,30 +11874,14 @@ Usage and SDK Samples
var apiInstance = new DataApi();
var owner = owner_example; // String | (default to null)
var slug = slug_example; // String | (default to null)
- var projectId = projectId_example; // String | (optional) (default to null)
- var query = query_example; // String | (optional) (default to null)
- var timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; // String | (optional) (default to null)
- var timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; // Integer | (optional) (default to null)
- var timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; // String | (optional) (default to null)
- var timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; // String | (optional) (default to null)
- var timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; // String | (optional) (default to null)
- var timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; // Integer | (optional) (default to null)
- var timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; // String | (optional) (default to null)
- var timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; // String | (optional) (default to null)
- var timeRangePeriodstep = timeRangePeriodstep_example; // String | (optional) (default to null)
- var timeRangePeriodintervalPeriodvalue = 1.2; // Double | (optional) (default to null)
- var timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; // String | (optional) (default to null)
- var timeRangePeriodtimezone = timeRangePeriodtimezone_example; // String | (optional) (default to null)
- var limit = 56; // Integer | (optional) (default to null)
- var offset = 56; // Integer | (optional) (default to null)
- var version = 56; // Integer | (optional) (default to null)
+ var body = new AnalyticServiceSearchServiceQueryLogBody(); // AnalyticServiceSearchServiceQueryLogBody |
try {
// Query event logs
- analytic_service.LogQueryResponse result = apiInstance.queryLog2(owner, slug, projectId, query, timeRangePeriodstartPeriodrelativeTimePeriodunit, timeRangePeriodstartPeriodrelativeTimePeriodvalue, timeRangePeriodstartPeriodrelativeTimePeriodalign, timeRangePeriodstartPeriodabsoluteTime, timeRangePeriodendPeriodrelativeTimePeriodunit, timeRangePeriodendPeriodrelativeTimePeriodvalue, timeRangePeriodendPeriodrelativeTimePeriodalign, timeRangePeriodendPeriodabsoluteTime, timeRangePeriodstep, timeRangePeriodintervalPeriodvalue, timeRangePeriodintervalPeriodunit, timeRangePeriodtimezone, limit, offset, version);
+ analytic_service.LogQueryResponse result = apiInstance.queryLog(owner, slug, body);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling DataApi.queryLog2: " + e.Message );
+ Debug.Print("Exception when calling DataApi.queryLog: " + e.Message );
}
}
}
@@ -11995,7 +11889,7 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
@@ -12008,34 +11902,18 @@ Usage and SDK Samples
$api_instance = new OpenAPITools\Client\Api\DataApi();
$owner = owner_example; // String |
$slug = slug_example; // String |
-$projectId = projectId_example; // String |
-$query = query_example; // String |
-$timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; // String |
-$timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; // Integer |
-$timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; // String |
-$timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; // String |
-$timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; // String |
-$timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; // Integer |
-$timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; // String |
-$timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; // String |
-$timeRangePeriodstep = timeRangePeriodstep_example; // String |
-$timeRangePeriodintervalPeriodvalue = 1.2; // Double |
-$timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; // String |
-$timeRangePeriodtimezone = timeRangePeriodtimezone_example; // String |
-$limit = 56; // Integer |
-$offset = 56; // Integer |
-$version = 56; // Integer |
+$body = ; // AnalyticServiceSearchServiceQueryLogBody |
try {
- $result = $api_instance->queryLog2($owner, $slug, $projectId, $query, $timeRangePeriodstartPeriodrelativeTimePeriodunit, $timeRangePeriodstartPeriodrelativeTimePeriodvalue, $timeRangePeriodstartPeriodrelativeTimePeriodalign, $timeRangePeriodstartPeriodabsoluteTime, $timeRangePeriodendPeriodrelativeTimePeriodunit, $timeRangePeriodendPeriodrelativeTimePeriodvalue, $timeRangePeriodendPeriodrelativeTimePeriodalign, $timeRangePeriodendPeriodabsoluteTime, $timeRangePeriodstep, $timeRangePeriodintervalPeriodvalue, $timeRangePeriodintervalPeriodunit, $timeRangePeriodtimezone, $limit, $offset, $version);
+ $result = $api_instance->queryLog($owner, $slug, $body);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling DataApi->queryLog2: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling DataApi->queryLog: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DataApi;
@@ -12049,34 +11927,18 @@ Usage and SDK Samples
my $api_instance = WWW::OPenAPIClient::DataApi->new();
my $owner = owner_example; # String |
my $slug = slug_example; # String |
-my $projectId = projectId_example; # String |
-my $query = query_example; # String |
-my $timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; # String |
-my $timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; # Integer |
-my $timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; # String |
-my $timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; # String |
-my $timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; # String |
-my $timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; # Integer |
-my $timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; # String |
-my $timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; # String |
-my $timeRangePeriodstep = timeRangePeriodstep_example; # String |
-my $timeRangePeriodintervalPeriodvalue = 1.2; # Double |
-my $timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; # String |
-my $timeRangePeriodtimezone = timeRangePeriodtimezone_example; # String |
-my $limit = 56; # Integer |
-my $offset = 56; # Integer |
-my $version = 56; # Integer |
+my $body = WWW::OPenAPIClient::Object::AnalyticServiceSearchServiceQueryLogBody->new(); # AnalyticServiceSearchServiceQueryLogBody |
eval {
- my $result = $api_instance->queryLog2(owner => $owner, slug => $slug, projectId => $projectId, query => $query, timeRangePeriodstartPeriodrelativeTimePeriodunit => $timeRangePeriodstartPeriodrelativeTimePeriodunit, timeRangePeriodstartPeriodrelativeTimePeriodvalue => $timeRangePeriodstartPeriodrelativeTimePeriodvalue, timeRangePeriodstartPeriodrelativeTimePeriodalign => $timeRangePeriodstartPeriodrelativeTimePeriodalign, timeRangePeriodstartPeriodabsoluteTime => $timeRangePeriodstartPeriodabsoluteTime, timeRangePeriodendPeriodrelativeTimePeriodunit => $timeRangePeriodendPeriodrelativeTimePeriodunit, timeRangePeriodendPeriodrelativeTimePeriodvalue => $timeRangePeriodendPeriodrelativeTimePeriodvalue, timeRangePeriodendPeriodrelativeTimePeriodalign => $timeRangePeriodendPeriodrelativeTimePeriodalign, timeRangePeriodendPeriodabsoluteTime => $timeRangePeriodendPeriodabsoluteTime, timeRangePeriodstep => $timeRangePeriodstep, timeRangePeriodintervalPeriodvalue => $timeRangePeriodintervalPeriodvalue, timeRangePeriodintervalPeriodunit => $timeRangePeriodintervalPeriodunit, timeRangePeriodtimezone => $timeRangePeriodtimezone, limit => $limit, offset => $offset, version => $version);
+ my $result = $api_instance->queryLog(owner => $owner, slug => $slug, body => $body);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling DataApi->queryLog2: $@\n";
+ warn "Exception when calling DataApi->queryLog: $@\n";
}
-
+
from __future__ import print_statement
import time
import openapi_client
@@ -12092,58 +11954,26 @@ Usage and SDK Samples
api_instance = openapi_client.DataApi()
owner = owner_example # String | (default to null)
slug = slug_example # String | (default to null)
-projectId = projectId_example # String | (optional) (default to null)
-query = query_example # String | (optional) (default to null)
-timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example # String | (optional) (default to null)
-timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56 # Integer | (optional) (default to null)
-timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example # String | (optional) (default to null)
-timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example # String | (optional) (default to null)
-timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example # String | (optional) (default to null)
-timeRangePeriodendPeriodrelativeTimePeriodvalue = 56 # Integer | (optional) (default to null)
-timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example # String | (optional) (default to null)
-timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example # String | (optional) (default to null)
-timeRangePeriodstep = timeRangePeriodstep_example # String | (optional) (default to null)
-timeRangePeriodintervalPeriodvalue = 1.2 # Double | (optional) (default to null)
-timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example # String | (optional) (default to null)
-timeRangePeriodtimezone = timeRangePeriodtimezone_example # String | (optional) (default to null)
-limit = 56 # Integer | (optional) (default to null)
-offset = 56 # Integer | (optional) (default to null)
-version = 56 # Integer | (optional) (default to null)
+body = # AnalyticServiceSearchServiceQueryLogBody |
try:
# Query event logs
- api_response = api_instance.query_log2(owner, slug, projectId=projectId, query=query, timeRangePeriodstartPeriodrelativeTimePeriodunit=timeRangePeriodstartPeriodrelativeTimePeriodunit, timeRangePeriodstartPeriodrelativeTimePeriodvalue=timeRangePeriodstartPeriodrelativeTimePeriodvalue, timeRangePeriodstartPeriodrelativeTimePeriodalign=timeRangePeriodstartPeriodrelativeTimePeriodalign, timeRangePeriodstartPeriodabsoluteTime=timeRangePeriodstartPeriodabsoluteTime, timeRangePeriodendPeriodrelativeTimePeriodunit=timeRangePeriodendPeriodrelativeTimePeriodunit, timeRangePeriodendPeriodrelativeTimePeriodvalue=timeRangePeriodendPeriodrelativeTimePeriodvalue, timeRangePeriodendPeriodrelativeTimePeriodalign=timeRangePeriodendPeriodrelativeTimePeriodalign, timeRangePeriodendPeriodabsoluteTime=timeRangePeriodendPeriodabsoluteTime, timeRangePeriodstep=timeRangePeriodstep, timeRangePeriodintervalPeriodvalue=timeRangePeriodintervalPeriodvalue, timeRangePeriodintervalPeriodunit=timeRangePeriodintervalPeriodunit, timeRangePeriodtimezone=timeRangePeriodtimezone, limit=limit, offset=offset, version=version)
+ api_response = api_instance.query_log(owner, slug, body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DataApi->queryLog2: %s\n" % e)
+ print("Exception when calling DataApi->queryLog: %s\n" % e)
-
+
extern crate DataApi;
pub fn main() {
let owner = owner_example; // String
let slug = slug_example; // String
- let projectId = projectId_example; // String
- let query = query_example; // String
- let timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; // String
- let timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; // Integer
- let timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; // String
- let timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; // String
- let timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; // String
- let timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; // Integer
- let timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; // String
- let timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; // String
- let timeRangePeriodstep = timeRangePeriodstep_example; // String
- let timeRangePeriodintervalPeriodvalue = 1.2; // Double
- let timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; // String
- let timeRangePeriodtimezone = timeRangePeriodtimezone_example; // String
- let limit = 56; // Integer
- let offset = 56; // Integer
- let version = 56; // Integer
+ let body = ; // AnalyticServiceSearchServiceQueryLogBody
let mut context = DataApi::Context::default();
- let result = client.queryLog2(owner, slug, projectId, query, timeRangePeriodstartPeriodrelativeTimePeriodunit, timeRangePeriodstartPeriodrelativeTimePeriodvalue, timeRangePeriodstartPeriodrelativeTimePeriodalign, timeRangePeriodstartPeriodabsoluteTime, timeRangePeriodendPeriodrelativeTimePeriodunit, timeRangePeriodendPeriodrelativeTimePeriodvalue, timeRangePeriodendPeriodrelativeTimePeriodalign, timeRangePeriodendPeriodabsoluteTime, timeRangePeriodstep, timeRangePeriodintervalPeriodvalue, timeRangePeriodintervalPeriodunit, timeRangePeriodtimezone, limit, offset, version, &context).wait();
+ let result = client.queryLog(owner, slug, body, &context).wait();
println!("{:?}", result);
}
@@ -12168,7 +11998,7 @@ Parameters
-
+
@@ -12188,7 +12018,7 @@ Parameters
-
+
@@ -12207,361 +12037,86 @@ Parameters
-
-
- Query parameters
+ Body parameters
Name
Description
- projectId
+ body *
+
+
+
- query
-
+
-
-
-
-
- String
-
-
-
-
-
-
+ Responses
+
+
+
- timeRange.start.relativeTime.unit
-
+
+ -
+ Schema
+
-
-
-
-
- String
-
-
-
-
-
-
- timeRange.start.relativeTime.value
-
+
-
-
-
-
- Integer
-
-
- (int32)
-
-
-
-
-
-
-
- timeRange.start.relativeTime.align
-
-
-
-
-
-
-
- String
-
-
-
-
-
-
-
-
- timeRange.start.absoluteTime
-
-
-
-
-
-
-
- String
-
-
- (int64)
-
-
-
-
-
-
-
-
- timeRange.end.relativeTime.unit
-
-
-
-
-
-
-
- String
-
-
-
-
-
-
-
-
- timeRange.end.relativeTime.value
-
-
-
-
-
-
-
- Integer
-
-
- (int32)
-
-
-
-
-
-
-
-
- timeRange.end.relativeTime.align
-
-
-
-
-
-
-
- String
-
-
-
-
-
-
-
-
- timeRange.end.absoluteTime
-
-
-
-
-
-
-
- String
-
-
- (int64)
-
-
-
-
-
-
-
-
- timeRange.step
-
-
-
-
-
-
-
- String
-
-
- (int64)
-
-
-
-
-
-
-
-
- timeRange.interval.value
-
-
-
-
-
-
-
- Double
-
-
- (double)
-
-
-
-
-
-
-
-
- timeRange.interval.unit
-
-
-
-
-
-
-
- String
-
-
-
-
-
-
-
-
- timeRange.timezone
-
-
-
-
-
-
-
- String
-
-
-
-
-
-
-
-
- limit
-
-
-
-
-
-
-
- Integer
-
-
- (int32)
-
-
-
-
-
-
-
-
- offset
-
-
-
-
-
-
-
- Integer
-
-
- (int32)
-
-
-
-
-
-
-
-
- version
-
-
-
-
-
-
-
- Integer
-
-
- (int32)
-
-
-
-
-
-
-
-
-
-
- Responses
-
-
-
-
-
-
- -
- Schema
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
+
-
-
+
+
- queryRange
- Metric range queries
+ queryLog2
+ Query event logs
- The easiest way to build query is through UI, you could first create an insight chart, and then **Export as cURL**.
-
-![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(101).png)
+
- /api/v1/metrics/{owner}/{slug}/query_range
+ /api/v1/eventlogs/{owner}/{slug}/query
Usage and SDK Samples
- - Curl
- - Java
- - Dart
- - Android
-
- - Obj-C
- - JavaScript
-
- - C#
- - PHP
- - Perl
- - Python
- - Rust
+ - Curl
+ - Java
+ - Dart
+ - Android
+
+ - Obj-C
+ - JavaScript
+
+ - C#
+ - PHP
+ - Perl
+ - Python
+ - Rust
-
- curl -X POST \
+
+ curl -X GET \
-H "api-key: [[apiKey]]" \
-H "Accept: application/json" \
- -H "Content-Type: application/json" \
- "https://app.sentio.xyz/api/v1/metrics/{owner}/{slug}/query_range" \
- -d ''
+ "https://app.sentio.xyz/api/v1/eventlogs/{owner}/{slug}/query?projectId=projectId_example&query=query_example&timeRange.start.relativeTime.unit=timeRangePeriodstartPeriodrelativeTimePeriodunit_example&timeRange.start.relativeTime.value=56&timeRange.start.relativeTime.align=timeRangePeriodstartPeriodrelativeTimePeriodalign_example&timeRange.start.absoluteTime=timeRangePeriodstartPeriodabsoluteTime_example&timeRange.end.relativeTime.unit=timeRangePeriodendPeriodrelativeTimePeriodunit_example&timeRange.end.relativeTime.value=56&timeRange.end.relativeTime.align=timeRangePeriodendPeriodrelativeTimePeriodalign_example&timeRange.end.absoluteTime=timeRangePeriodendPeriodabsoluteTime_example&timeRange.step=timeRangePeriodstep_example&timeRange.interval.value=1.2&timeRange.interval.unit=timeRangePeriodintervalPeriodunit_example&timeRange.timezone=timeRangePeriodtimezone_example&limit=56&offset=56&version=56"
-
+
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
@@ -12678,15 +12229,31 @@ Usage and SDK Samples
// Create an instance of the API class
DataApi apiInstance = new DataApi();
- String owner = owner_example; // String | username or organization name
- String slug = slug_example; // String | project slug
- MetricsServiceObservabilityServiceQueryRangeBody body = ; // MetricsServiceObservabilityServiceQueryRangeBody |
+ String owner = owner_example; // String |
+ String slug = slug_example; // String |
+ String projectId = projectId_example; // String |
+ String query = query_example; // String |
+ String timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; // String |
+ Integer timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; // Integer |
+ String timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; // String |
+ String timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; // String |
+ String timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; // String |
+ Integer timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; // Integer |
+ String timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; // String |
+ String timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; // String |
+ String timeRangePeriodstep = timeRangePeriodstep_example; // String |
+ Double timeRangePeriodintervalPeriodvalue = 1.2; // Double |
+ String timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; // String |
+ String timeRangePeriodtimezone = timeRangePeriodtimezone_example; // String |
+ Integer limit = 56; // Integer |
+ Integer offset = 56; // Integer |
+ Integer version = 56; // Integer |
try {
- metrics_service.MetricsQueryResponse result = apiInstance.queryRange(owner, slug, body);
+ analytic_service.LogQueryResponse result = apiInstance.queryLog2(owner, slug, projectId, query, timeRangePeriodstartPeriodrelativeTimePeriodunit, timeRangePeriodstartPeriodrelativeTimePeriodvalue, timeRangePeriodstartPeriodrelativeTimePeriodalign, timeRangePeriodstartPeriodabsoluteTime, timeRangePeriodendPeriodrelativeTimePeriodunit, timeRangePeriodendPeriodrelativeTimePeriodvalue, timeRangePeriodendPeriodrelativeTimePeriodalign, timeRangePeriodendPeriodabsoluteTime, timeRangePeriodstep, timeRangePeriodintervalPeriodvalue, timeRangePeriodintervalPeriodunit, timeRangePeriodtimezone, limit, offset, version);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#queryRange");
+ System.err.println("Exception when calling DataApi#queryLog2");
e.printStackTrace();
}
}
@@ -12694,50 +12261,82 @@ Usage and SDK Samples
-
+
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
-final String owner = new String(); // String | username or organization name
-final String slug = new String(); // String | project slug
-final MetricsServiceObservabilityServiceQueryRangeBody body = new MetricsServiceObservabilityServiceQueryRangeBody(); // MetricsServiceObservabilityServiceQueryRangeBody |
+final String owner = new String(); // String |
+final String slug = new String(); // String |
+final String projectId = new String(); // String |
+final String query = new String(); // String |
+final String timeRangePeriodstartPeriodrelativeTimePeriodunit = new String(); // String |
+final Integer timeRangePeriodstartPeriodrelativeTimePeriodvalue = new Integer(); // Integer |
+final String timeRangePeriodstartPeriodrelativeTimePeriodalign = new String(); // String |
+final String timeRangePeriodstartPeriodabsoluteTime = new String(); // String |
+final String timeRangePeriodendPeriodrelativeTimePeriodunit = new String(); // String |
+final Integer timeRangePeriodendPeriodrelativeTimePeriodvalue = new Integer(); // Integer |
+final String timeRangePeriodendPeriodrelativeTimePeriodalign = new String(); // String |
+final String timeRangePeriodendPeriodabsoluteTime = new String(); // String |
+final String timeRangePeriodstep = new String(); // String |
+final Double timeRangePeriodintervalPeriodvalue = new Double(); // Double |
+final String timeRangePeriodintervalPeriodunit = new String(); // String |
+final String timeRangePeriodtimezone = new String(); // String |
+final Integer limit = new Integer(); // Integer |
+final Integer offset = new Integer(); // Integer |
+final Integer version = new Integer(); // Integer |
try {
- final result = await api_instance.queryRange(owner, slug, body);
+ final result = await api_instance.queryLog2(owner, slug, projectId, query, timeRangePeriodstartPeriodrelativeTimePeriodunit, timeRangePeriodstartPeriodrelativeTimePeriodvalue, timeRangePeriodstartPeriodrelativeTimePeriodalign, timeRangePeriodstartPeriodabsoluteTime, timeRangePeriodendPeriodrelativeTimePeriodunit, timeRangePeriodendPeriodrelativeTimePeriodvalue, timeRangePeriodendPeriodrelativeTimePeriodalign, timeRangePeriodendPeriodabsoluteTime, timeRangePeriodstep, timeRangePeriodintervalPeriodvalue, timeRangePeriodintervalPeriodunit, timeRangePeriodtimezone, limit, offset, version);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->queryRange: $e\n');
+ print('Exception when calling DefaultApi->queryLog2: $e\n');
}
-
+
import org.openapitools.client.api.DataApi;
public class DataApiExample {
public static void main(String[] args) {
DataApi apiInstance = new DataApi();
- String owner = owner_example; // String | username or organization name
- String slug = slug_example; // String | project slug
- MetricsServiceObservabilityServiceQueryRangeBody body = ; // MetricsServiceObservabilityServiceQueryRangeBody |
+ String owner = owner_example; // String |
+ String slug = slug_example; // String |
+ String projectId = projectId_example; // String |
+ String query = query_example; // String |
+ String timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; // String |
+ Integer timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; // Integer |
+ String timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; // String |
+ String timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; // String |
+ String timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; // String |
+ Integer timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; // Integer |
+ String timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; // String |
+ String timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; // String |
+ String timeRangePeriodstep = timeRangePeriodstep_example; // String |
+ Double timeRangePeriodintervalPeriodvalue = 1.2; // Double |
+ String timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; // String |
+ String timeRangePeriodtimezone = timeRangePeriodtimezone_example; // String |
+ Integer limit = 56; // Integer |
+ Integer offset = 56; // Integer |
+ Integer version = 56; // Integer |
try {
- metrics_service.MetricsQueryResponse result = apiInstance.queryRange(owner, slug, body);
+ analytic_service.LogQueryResponse result = apiInstance.queryLog2(owner, slug, projectId, query, timeRangePeriodstartPeriodrelativeTimePeriodunit, timeRangePeriodstartPeriodrelativeTimePeriodvalue, timeRangePeriodstartPeriodrelativeTimePeriodalign, timeRangePeriodstartPeriodabsoluteTime, timeRangePeriodendPeriodrelativeTimePeriodunit, timeRangePeriodendPeriodrelativeTimePeriodvalue, timeRangePeriodendPeriodrelativeTimePeriodalign, timeRangePeriodendPeriodabsoluteTime, timeRangePeriodstep, timeRangePeriodintervalPeriodvalue, timeRangePeriodintervalPeriodunit, timeRangePeriodtimezone, limit, offset, version);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#queryRange");
+ System.err.println("Exception when calling DataApi#queryLog2");
e.printStackTrace();
}
}
}
-
+
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
@@ -12748,15 +12347,47 @@ Usage and SDK Samples
// Create an instance of the API class
DataApi *apiInstance = [[DataApi alloc] init];
-String *owner = owner_example; // username or organization name (default to null)
-String *slug = slug_example; // project slug (default to null)
-MetricsServiceObservabilityServiceQueryRangeBody *body = ; //
+String *owner = owner_example; // (default to null)
+String *slug = slug_example; // (default to null)
+String *projectId = projectId_example; // (optional) (default to null)
+String *query = query_example; // (optional) (default to null)
+String *timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; // (optional) (default to null)
+Integer *timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; // (optional) (default to null)
+String *timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; // (optional) (default to null)
+String *timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; // (optional) (default to null)
+String *timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; // (optional) (default to null)
+Integer *timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; // (optional) (default to null)
+String *timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; // (optional) (default to null)
+String *timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; // (optional) (default to null)
+String *timeRangePeriodstep = timeRangePeriodstep_example; // (optional) (default to null)
+Double *timeRangePeriodintervalPeriodvalue = 1.2; // (optional) (default to null)
+String *timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; // (optional) (default to null)
+String *timeRangePeriodtimezone = timeRangePeriodtimezone_example; // (optional) (default to null)
+Integer *limit = 56; // (optional) (default to null)
+Integer *offset = 56; // (optional) (default to null)
+Integer *version = 56; // (optional) (default to null)
-// Metric range queries
-[apiInstance queryRangeWith:owner
+// Query event logs
+[apiInstance queryLog2With:owner
slug:slug
- body:body
- completionHandler: ^(metrics_service.MetricsQueryResponse output, NSError* error) {
+ projectId:projectId
+ query:query
+ timeRangePeriodstartPeriodrelativeTimePeriodunit:timeRangePeriodstartPeriodrelativeTimePeriodunit
+ timeRangePeriodstartPeriodrelativeTimePeriodvalue:timeRangePeriodstartPeriodrelativeTimePeriodvalue
+ timeRangePeriodstartPeriodrelativeTimePeriodalign:timeRangePeriodstartPeriodrelativeTimePeriodalign
+ timeRangePeriodstartPeriodabsoluteTime:timeRangePeriodstartPeriodabsoluteTime
+ timeRangePeriodendPeriodrelativeTimePeriodunit:timeRangePeriodendPeriodrelativeTimePeriodunit
+ timeRangePeriodendPeriodrelativeTimePeriodvalue:timeRangePeriodendPeriodrelativeTimePeriodvalue
+ timeRangePeriodendPeriodrelativeTimePeriodalign:timeRangePeriodendPeriodrelativeTimePeriodalign
+ timeRangePeriodendPeriodabsoluteTime:timeRangePeriodendPeriodabsoluteTime
+ timeRangePeriodstep:timeRangePeriodstep
+ timeRangePeriodintervalPeriodvalue:timeRangePeriodintervalPeriodvalue
+ timeRangePeriodintervalPeriodunit:timeRangePeriodintervalPeriodunit
+ timeRangePeriodtimezone:timeRangePeriodtimezone
+ limit:limit
+ offset:offset
+ version:version
+ completionHandler: ^(analytic_service.LogQueryResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -12767,7 +12398,7 @@ Usage and SDK Samples
-
+
var SentioApi = require('sentio_api');
var defaultClient = SentioApi.ApiClient.instance;
@@ -12779,9 +12410,27 @@ Usage and SDK Samples
// Create an instance of the API class
var api = new SentioApi.DataApi()
-var owner = owner_example; // {String} username or organization name
-var slug = slug_example; // {String} project slug
-var body = ; // {MetricsServiceObservabilityServiceQueryRangeBody}
+var owner = owner_example; // {String}
+var slug = slug_example; // {String}
+var opts = {
+ 'projectId': projectId_example, // {String}
+ 'query': query_example, // {String}
+ 'timeRangePeriodstartPeriodrelativeTimePeriodunit': timeRangePeriodstartPeriodrelativeTimePeriodunit_example, // {String}
+ 'timeRangePeriodstartPeriodrelativeTimePeriodvalue': 56, // {Integer}
+ 'timeRangePeriodstartPeriodrelativeTimePeriodalign': timeRangePeriodstartPeriodrelativeTimePeriodalign_example, // {String}
+ 'timeRangePeriodstartPeriodabsoluteTime': timeRangePeriodstartPeriodabsoluteTime_example, // {String}
+ 'timeRangePeriodendPeriodrelativeTimePeriodunit': timeRangePeriodendPeriodrelativeTimePeriodunit_example, // {String}
+ 'timeRangePeriodendPeriodrelativeTimePeriodvalue': 56, // {Integer}
+ 'timeRangePeriodendPeriodrelativeTimePeriodalign': timeRangePeriodendPeriodrelativeTimePeriodalign_example, // {String}
+ 'timeRangePeriodendPeriodabsoluteTime': timeRangePeriodendPeriodabsoluteTime_example, // {String}
+ 'timeRangePeriodstep': timeRangePeriodstep_example, // {String}
+ 'timeRangePeriodintervalPeriodvalue': 1.2, // {Double}
+ 'timeRangePeriodintervalPeriodunit': timeRangePeriodintervalPeriodunit_example, // {String}
+ 'timeRangePeriodtimezone': timeRangePeriodtimezone_example, // {String}
+ 'limit': 56, // {Integer}
+ 'offset': 56, // {Integer}
+ 'version': 56 // {Integer}
+};
var callback = function(error, data, response) {
if (error) {
@@ -12790,14 +12439,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.queryRange(owner, slug, body, callback);
+api.queryLog2(owner, slug, opts, callback);
-
-
+
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
@@ -12806,7 +12455,7 @@ Usage and SDK Samples
namespace Example
{
- public class queryRangeExample
+ public class queryLog2Example
{
public void main()
{
@@ -12817,736 +12466,540 @@ Usage and SDK Samples
// Create an instance of the API class
var apiInstance = new DataApi();
- var owner = owner_example; // String | username or organization name (default to null)
- var slug = slug_example; // String | project slug (default to null)
- var body = new MetricsServiceObservabilityServiceQueryRangeBody(); // MetricsServiceObservabilityServiceQueryRangeBody |
-
- try {
- // Metric range queries
- metrics_service.MetricsQueryResponse result = apiInstance.queryRange(owner, slug, body);
- Debug.WriteLine(result);
- } catch (Exception e) {
- Debug.Print("Exception when calling DataApi.queryRange: " + e.Message );
- }
- }
- }
-}
-
-
-
-
- <?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-// Configure API key authorization: ApiKeyAuth
-OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
-
-// Create an instance of the API class
-$api_instance = new OpenAPITools\Client\Api\DataApi();
-$owner = owner_example; // String | username or organization name
-$slug = slug_example; // String | project slug
-$body = ; // MetricsServiceObservabilityServiceQueryRangeBody |
-
-try {
- $result = $api_instance->queryRange($owner, $slug, $body);
- print_r($result);
-} catch (Exception $e) {
- echo 'Exception when calling DataApi->queryRange: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
-
-
- use Data::Dumper;
-use WWW::OPenAPIClient::Configuration;
-use WWW::OPenAPIClient::DataApi;
-
-# Configure API key authorization: ApiKeyAuth
-$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
-# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
-
-# Create an instance of the API class
-my $api_instance = WWW::OPenAPIClient::DataApi->new();
-my $owner = owner_example; # String | username or organization name
-my $slug = slug_example; # String | project slug
-my $body = WWW::OPenAPIClient::Object::MetricsServiceObservabilityServiceQueryRangeBody->new(); # MetricsServiceObservabilityServiceQueryRangeBody |
-
-eval {
- my $result = $api_instance->queryRange(owner => $owner, slug => $slug, body => $body);
- print Dumper($result);
-};
-if ($@) {
- warn "Exception when calling DataApi->queryRange: $@\n";
-}
-
-
-
- from __future__ import print_statement
-import time
-import openapi_client
-from openapi_client.rest import ApiException
-from pprint import pprint
-
-# Configure API key authorization: ApiKeyAuth
-openapi_client.configuration.api_key['api-key'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer'
-
-# Create an instance of the API class
-api_instance = openapi_client.DataApi()
-owner = owner_example # String | username or organization name (default to null)
-slug = slug_example # String | project slug (default to null)
-body = # MetricsServiceObservabilityServiceQueryRangeBody |
-
-try:
- # Metric range queries
- api_response = api_instance.query_range(owner, slug, body)
- pprint(api_response)
-except ApiException as e:
- print("Exception when calling DataApi->queryRange: %s\n" % e)
-
-
-
- extern crate DataApi;
-
-pub fn main() {
- let owner = owner_example; // String
- let slug = slug_example; // String
- let body = ; // MetricsServiceObservabilityServiceQueryRangeBody
-
- let mut context = DataApi::Context::default();
- let result = client.queryRange(owner, slug, body, &context).wait();
-
- println!("{:?}", result);
-}
-
-
-
-
- Scopes
-
-
-
-
- Parameters
-
- Path parameters
-
-
- Name
- Description
-
- owner*
-
-
-
-
-
-
-
- String
-
-
-
-username or organization name
-
-
-
- Required
-
-
-
-
-
-
- slug*
-
-
-
-
-
-
-
- String
-
-
-
-project slug
-
-
-
- Required
-
-
-
-
-
-
-
-
-
- Body parameters
-
-
- Name
- Description
-
- body *
-
-
-
-
-
-
+
+ <?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;
+}
+?>
+
- Responses
-
-
-
+
+ use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::DataApi;
+# Configure API key authorization: ApiKeyAuth
+$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
-
- -
- Schema
-
+# 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)
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- querySQLResult
- Query SQL Result
-
-
-
-
- Query the result of a SQL query by execution_id.
-
-
- /api/v1/analytics/{owner}/{slug}/sql/query_result
-
-
Usage and SDK Samples
-
-
+pub fn main() {
+ let owner = owner_example; // String
+ let slug = slug_example; // String
+ let projectId = projectId_example; // String
+ let query = query_example; // String
+ let timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; // String
+ let timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; // Integer
+ let timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; // String
+ let timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; // String
+ let timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; // String
+ let timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; // Integer
+ let timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; // String
+ let timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; // String
+ let timeRangePeriodstep = timeRangePeriodstep_example; // String
+ let timeRangePeriodintervalPeriodvalue = 1.2; // Double
+ let timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; // String
+ let timeRangePeriodtimezone = timeRangePeriodtimezone_example; // String
+ let limit = 56; // Integer
+ let offset = 56; // Integer
+ let version = 56; // Integer
-
-
- curl -X GET \
--H "api-key: [[apiKey]]" \
- -H "Accept: application/json" \
- "https://app.sentio.xyz/api/v1/analytics/{owner}/{slug}/sql/query_result?projectId=projectId_example&version=56&executionId=executionId_example"
+ let mut context = DataApi::Context::default();
+ let result = client.queryLog2(owner, slug, projectId, query, timeRangePeriodstartPeriodrelativeTimePeriodunit, timeRangePeriodstartPeriodrelativeTimePeriodvalue, timeRangePeriodstartPeriodrelativeTimePeriodalign, timeRangePeriodstartPeriodabsoluteTime, timeRangePeriodendPeriodrelativeTimePeriodunit, timeRangePeriodendPeriodrelativeTimePeriodvalue, timeRangePeriodendPeriodrelativeTimePeriodalign, timeRangePeriodendPeriodabsoluteTime, timeRangePeriodstep, timeRangePeriodintervalPeriodvalue, timeRangePeriodintervalPeriodunit, timeRangePeriodtimezone, limit, offset, version, &context).wait();
+
+ println!("{:?}", result);
+}
+
-
- import org.openapitools.client.*;
-import org.openapitools.client.auth.*;
-import org.openapitools.client.model.*;
-import org.openapitools.client.api.DataApi;
-import java.io.File;
-import java.util.*;
+ Scopes
+
+
+
-public class DataApiExample {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
+ Parameters
- // Configure API key authorization: ApiKeyAuth
- ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
- ApiKeyAuth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //ApiKeyAuth.setApiKeyPrefix("Token");
+ Path parameters
+
+
+ Name
+ Description
+
+ owner*
+
- // Create an instance of the API class
- DataApi apiInstance = new DataApi();
- String owner = owner_example; // String | username or organization name
- String slug = slug_example; // String | project slug
- String projectId = projectId_example; // String | use project id if project_owner and project_slug are not provided
- Integer version = 56; // Integer | version of the datasource, default to the active version if not provided
- String executionId = executionId_example; // String |
- try {
- analytic_service.QuerySQLResultResponse result = apiInstance.querySQLResult(owner, slug, projectId, version, executionId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling DataApi#querySQLResult");
- e.printStackTrace();
- }
- }
-}
-
-
+
+
+
+
+ String
+
-
- import 'package:openapi/api.dart';
+
+
+ Required
+
+
+
+
+
-final api_instance = DefaultApi();
+ slug*
+
-final String owner = new String(); // String | username or organization name
-final String slug = new String(); // String | project slug
-final String projectId = new String(); // String | use project id if project_owner and project_slug are not provided
-final Integer version = new Integer(); // Integer | version of the datasource, default to the active version if not provided
-final String executionId = new String(); // String |
-try {
- final result = await api_instance.querySQLResult(owner, slug, projectId, version, executionId);
- print(result);
-} catch (e) {
- print('Exception when calling DefaultApi->querySQLResult: $e\n');
-}
+
+
+
+
+ String
+
-
-
+
+
+ Required
+
+
+
+
+
-
- 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
- String projectId = projectId_example; // String | use project id if project_owner and project_slug are not provided
- Integer version = 56; // Integer | version of the datasource, default to the active version if not provided
- String executionId = executionId_example; // String |
- try {
- analytic_service.QuerySQLResultResponse result = apiInstance.querySQLResult(owner, slug, projectId, version, executionId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling DataApi#querySQLResult");
- e.printStackTrace();
- }
- }
-}
-
-
-
- Configuration *apiConfig = [Configuration sharedConfig];
-// Configure API key authorization: (authentication scheme: ApiKeyAuth)
-[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-key"];
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-key"];
+ Query parameters
+
+
+ Name
+ Description
+
+ projectId
+
-// Create an instance of the API class
-DataApi *apiInstance = [[DataApi alloc] init];
-String *owner = owner_example; // username or organization name (default to null)
-String *slug = slug_example; // project slug (default to null)
-String *projectId = projectId_example; // use project id if project_owner and project_slug are not provided (optional) (default to null)
-Integer *version = 56; // version of the datasource, default to the active version if not provided (optional) (default to null)
-String *executionId = executionId_example; // (optional) (default to null)
-// Query SQL Result
-[apiInstance querySQLResultWith:owner
- slug:slug
- projectId:projectId
- version:version
- executionId:executionId
- completionHandler: ^(analytic_service.QuerySQLResultResponse output, NSError* error) {
- if (output) {
- NSLog(@"%@", output);
- }
- if (error) {
- NSLog(@"Error: %@", error);
- }
-}];
-
-
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+ query
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+ timeRange.start.relativeTime.unit
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+ timeRange.start.relativeTime.value
+
+
+
+
+
+
+
+ Integer
+
+
+ (int32)
+
+
+
+
+
+
+
+
+ timeRange.start.relativeTime.align
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
-
- var SentioApi = require('sentio_api');
-var defaultClient = SentioApi.ApiClient.instance;
+ timeRange.start.absoluteTime
+
-// Configure API key authorization: ApiKeyAuth
-var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
-ApiKeyAuth.apiKey = "YOUR API KEY";
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//ApiKeyAuth.apiKeyPrefix['api-key'] = "Token";
-// Create an instance of the API class
-var api = new SentioApi.DataApi()
-var owner = owner_example; // {String} username or organization name
-var slug = slug_example; // {String} project slug
-var opts = {
- 'projectId': projectId_example, // {String} use project id if project_owner and project_slug are not provided
- 'version': 56, // {Integer} version of the datasource, default to the active version if not provided
- 'executionId': executionId_example // {String}
-};
+
+
+
+
+ String
+
+
+ (int64)
+
-var callback = function(error, data, response) {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully. Returned data: ' + data);
- }
-};
-api.querySQLResult(owner, slug, opts, callback);
-
-
+
+
+
+
+
-
-
- using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
+ timeRange.end.relativeTime.unit
+
-namespace Example
-{
- public class querySQLResultExample
- {
- public void main()
- {
- // Configure API key authorization: ApiKeyAuth
- Configuration.Default.ApiKey.Add("api-key", "YOUR_API_KEY");
- // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
- // Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
- // Create an instance of the API class
- var apiInstance = new DataApi();
- var owner = owner_example; // String | username or organization name (default to null)
- var slug = slug_example; // String | project slug (default to null)
- var projectId = projectId_example; // String | use project id if project_owner and project_slug are not provided (optional) (default to null)
- var version = 56; // Integer | version of the datasource, default to the active version if not provided (optional) (default to null)
- var executionId = executionId_example; // String | (optional) (default to null)
+
+
+
+
+ String
+
- try {
- // Query SQL Result
- analytic_service.QuerySQLResultResponse result = apiInstance.querySQLResult(owner, slug, projectId, version, executionId);
- Debug.WriteLine(result);
- } catch (Exception e) {
- Debug.Print("Exception when calling DataApi.querySQLResult: " + e.Message );
- }
- }
- }
-}
-
-
+
+
+
+
+
-
- <?php
-require_once(__DIR__ . '/vendor/autoload.php');
+ timeRange.end.relativeTime.value
+
-// Configure API key authorization: ApiKeyAuth
-OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
-// Create an instance of the API class
-$api_instance = new OpenAPITools\Client\Api\DataApi();
-$owner = owner_example; // String | username or organization name
-$slug = slug_example; // String | project slug
-$projectId = projectId_example; // String | use project id if project_owner and project_slug are not provided
-$version = 56; // Integer | version of the datasource, default to the active version if not provided
-$executionId = executionId_example; // String |
+
+
+
+
+ Integer
+
+
+ (int32)
+
-try {
- $result = $api_instance->querySQLResult($owner, $slug, $projectId, $version, $executionId);
- print_r($result);
-} catch (Exception $e) {
- echo 'Exception when calling DataApi->querySQLResult: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
+
+
+
+
+
-
- use Data::Dumper;
-use WWW::OPenAPIClient::Configuration;
-use WWW::OPenAPIClient::DataApi;
+ timeRange.end.relativeTime.align
+
-# Configure API key authorization: ApiKeyAuth
-$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
-# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
-# Create an instance of the API class
-my $api_instance = WWW::OPenAPIClient::DataApi->new();
-my $owner = owner_example; # String | username or organization name
-my $slug = slug_example; # String | project slug
-my $projectId = projectId_example; # String | use project id if project_owner and project_slug are not provided
-my $version = 56; # Integer | version of the datasource, default to the active version if not provided
-my $executionId = executionId_example; # String |
+
+
+
+
+ String
+
-eval {
- my $result = $api_instance->querySQLResult(owner => $owner, slug => $slug, projectId => $projectId, version => $version, executionId => $executionId);
- print Dumper($result);
-};
-if ($@) {
- warn "Exception when calling DataApi->querySQLResult: $@\n";
-}
-
+
+
+
+
+
-
- from __future__ import print_statement
-import time
-import openapi_client
-from openapi_client.rest import ApiException
-from pprint import pprint
+ timeRange.end.absoluteTime
+
-# Configure API key authorization: ApiKeyAuth
-openapi_client.configuration.api_key['api-key'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer'
-# Create an instance of the API class
-api_instance = openapi_client.DataApi()
-owner = owner_example # String | username or organization name (default to null)
-slug = slug_example # String | project slug (default to null)
-projectId = projectId_example # String | use project id if project_owner and project_slug are not provided (optional) (default to null)
-version = 56 # Integer | version of the datasource, default to the active version if not provided (optional) (default to null)
-executionId = executionId_example # String | (optional) (default to null)
+
+
+
+
+ String
+
+
+ (int64)
+
-try:
- # Query SQL Result
- api_response = api_instance.query_sql_result(owner, slug, projectId=projectId, version=version, executionId=executionId)
- pprint(api_response)
-except ApiException as e:
- print("Exception when calling DataApi->querySQLResult: %s\n" % e)
-
+
+
+
+
+
-
- extern crate DataApi;
+ timeRange.step
+
-pub fn main() {
- let owner = owner_example; // String
- let slug = slug_example; // String
- let projectId = projectId_example; // String
- let version = 56; // Integer
- let executionId = executionId_example; // String
- let mut context = DataApi::Context::default();
- let result = client.querySQLResult(owner, slug, projectId, version, executionId, &context).wait();
+
+
+
+
+ String
+
+
+ (int64)
+
- println!("{:?}", result);
-}
-
-
-
+
+
+
+
+
- Scopes
-
-
-
+ timeRange.interval.value
+
- Parameters
- Path parameters
-
-
- Name
- Description
-
- owner*
+
+
+
+
+ Double
+
+
+ (double)
+
+
+
+
+
+
+
+
+ timeRange.interval.unit
-
+
String
-
-username or organization name
-
-
- Required
-
- slug*
+ timeRange.timezone
-
+
String
-
-project slug
-
-
- Required
-
-
-
-
-
-
- Query parameters
-
-
- Name
- Description
-
- projectId
+ limit
-
+
- String
+ Integer
+
+ (int32)
+
-
-use project id if project_owner and project_slug are not provided
-
- version
+ offset
-
+
@@ -13556,25 +13009,25 @@ Parameters
(int32)
-
-version of the datasource, default to the active version if not provided
-
- executionId
+ version
-
+
- String
+ Integer
+
+ (int32)
+
@@ -13585,23 +13038,23 @@ Parameters
Responses
-
-
+
+
-
+
-
-
-
+
+
+
-
+
-
-
+
+
- querySQLResult2
- Query SQL Result
+ queryRange
+ Metric range queries
- Query the result of a SQL query by execution_id.
+ The easiest way to build query is through UI, you could first create an insight chart, and then **Export as cURL**.
+
+![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(101).png)
- /api/v1/analytics/sql/query_result
+ /api/v1/metrics/{owner}/{slug}/query_range
Usage and SDK Samples
- - Curl
- - Java
- - Dart
- - Android
-
- - Obj-C
- - JavaScript
-
- - C#
- - PHP
- - Perl
- - Python
- - Rust
+ - Curl
+ - Java
+ - Dart
+ - Android
+
+ - Obj-C
+ - JavaScript
+
+ - C#
+ - PHP
+ - Perl
+ - Python
+ - Rust
-
- curl -X GET \
+
+ curl -X POST \
-H "api-key: [[apiKey]]" \
-H "Accept: application/json" \
- "https://app.sentio.xyz/api/v1/analytics/sql/query_result?projectOwner=projectOwner_example&projectSlug=projectSlug_example&projectId=projectId_example&version=56&executionId=executionId_example"
+ -H "Content-Type: application/json" \
+ "https://app.sentio.xyz/api/v1/metrics/{owner}/{slug}/query_range" \
+ -d ''
-
+
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
@@ -13725,17 +13182,15 @@ Usage and SDK Samples
// Create an instance of the API class
DataApi apiInstance = new DataApi();
- String projectOwner = projectOwner_example; // String | username or organization name
- String projectSlug = projectSlug_example; // String | project slug
- String projectId = projectId_example; // String | use project id if project_owner and project_slug are not provided
- Integer version = 56; // Integer | version of the datasource, default to the active version if not provided
- String executionId = executionId_example; // String |
+ String owner = owner_example; // String | username or organization name
+ String slug = slug_example; // String | project slug
+ MetricsServiceObservabilityServiceQueryRangeBody body = ; // MetricsServiceObservabilityServiceQueryRangeBody |
try {
- analytic_service.QuerySQLResultResponse result = apiInstance.querySQLResult2(projectOwner, projectSlug, projectId, version, executionId);
+ metrics_service.MetricsQueryResponse result = apiInstance.queryRange(owner, slug, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#querySQLResult2");
+ System.err.println("Exception when calling DataApi#queryRange");
e.printStackTrace();
}
}
@@ -13743,54 +13198,50 @@ Usage and SDK Samples
-
+
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
-final String projectOwner = new String(); // String | username or organization name
-final String projectSlug = new String(); // String | project slug
-final String projectId = new String(); // String | use project id if project_owner and project_slug are not provided
-final Integer version = new Integer(); // Integer | version of the datasource, default to the active version if not provided
-final String executionId = new String(); // String |
+final String owner = new String(); // String | username or organization name
+final String slug = new String(); // String | project slug
+final MetricsServiceObservabilityServiceQueryRangeBody body = new MetricsServiceObservabilityServiceQueryRangeBody(); // MetricsServiceObservabilityServiceQueryRangeBody |
try {
- final result = await api_instance.querySQLResult2(projectOwner, projectSlug, projectId, version, executionId);
+ final result = await api_instance.queryRange(owner, slug, body);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->querySQLResult2: $e\n');
+ print('Exception when calling DefaultApi->queryRange: $e\n');
}
-
+
import org.openapitools.client.api.DataApi;
public class DataApiExample {
public static void main(String[] args) {
DataApi apiInstance = new DataApi();
- String projectOwner = projectOwner_example; // String | username or organization name
- String projectSlug = projectSlug_example; // String | project slug
- String projectId = projectId_example; // String | use project id if project_owner and project_slug are not provided
- Integer version = 56; // Integer | version of the datasource, default to the active version if not provided
- String executionId = executionId_example; // String |
+ String owner = owner_example; // String | username or organization name
+ String slug = slug_example; // String | project slug
+ MetricsServiceObservabilityServiceQueryRangeBody body = ; // MetricsServiceObservabilityServiceQueryRangeBody |
try {
- analytic_service.QuerySQLResultResponse result = apiInstance.querySQLResult2(projectOwner, projectSlug, projectId, version, executionId);
+ metrics_service.MetricsQueryResponse result = apiInstance.queryRange(owner, slug, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#querySQLResult2");
+ System.err.println("Exception when calling DataApi#queryRange");
e.printStackTrace();
}
}
}
-
+
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
@@ -13801,19 +13252,15 @@ Usage and SDK Samples
// Create an instance of the API class
DataApi *apiInstance = [[DataApi alloc] init];
-String *projectOwner = projectOwner_example; // username or organization name (optional) (default to null)
-String *projectSlug = projectSlug_example; // project slug (optional) (default to null)
-String *projectId = projectId_example; // use project id if project_owner and project_slug are not provided (optional) (default to null)
-Integer *version = 56; // version of the datasource, default to the active version if not provided (optional) (default to null)
-String *executionId = executionId_example; // (optional) (default to null)
+String *owner = owner_example; // username or organization name (default to null)
+String *slug = slug_example; // project slug (default to null)
+MetricsServiceObservabilityServiceQueryRangeBody *body = ; //
-// Query SQL Result
-[apiInstance querySQLResult2With:projectOwner
- projectSlug:projectSlug
- projectId:projectId
- version:version
- executionId:executionId
- completionHandler: ^(analytic_service.QuerySQLResultResponse output, NSError* error) {
+// Metric range queries
+[apiInstance queryRangeWith:owner
+ slug:slug
+ body:body
+ completionHandler: ^(metrics_service.MetricsQueryResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -13824,7 +13271,7 @@ Usage and SDK Samples
-
+
var SentioApi = require('sentio_api');
var defaultClient = SentioApi.ApiClient.instance;
@@ -13836,13 +13283,9 @@ Usage and SDK Samples
// Create an instance of the API class
var api = new SentioApi.DataApi()
-var opts = {
- 'projectOwner': projectOwner_example, // {String} username or organization name
- 'projectSlug': projectSlug_example, // {String} project slug
- 'projectId': projectId_example, // {String} use project id if project_owner and project_slug are not provided
- 'version': 56, // {Integer} version of the datasource, default to the active version if not provided
- 'executionId': executionId_example // {String}
-};
+var owner = owner_example; // {String} username or organization name
+var slug = slug_example; // {String} project slug
+var body = ; // {MetricsServiceObservabilityServiceQueryRangeBody}
var callback = function(error, data, response) {
if (error) {
@@ -13851,14 +13294,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.querySQLResult2(opts, callback);
+api.queryRange(owner, slug, body, callback);
-
-
+
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
@@ -13867,7 +13310,7 @@ Usage and SDK Samples
namespace Example
{
- public class querySQLResult2Example
+ public class queryRangeExample
{
public void main()
{
@@ -13878,18 +13321,16 @@ Usage and SDK Samples
// Create an instance of the API class
var apiInstance = new DataApi();
- var projectOwner = projectOwner_example; // String | username or organization name (optional) (default to null)
- var projectSlug = projectSlug_example; // String | project slug (optional) (default to null)
- var projectId = projectId_example; // String | use project id if project_owner and project_slug are not provided (optional) (default to null)
- var version = 56; // Integer | version of the datasource, default to the active version if not provided (optional) (default to null)
- var executionId = executionId_example; // String | (optional) (default to null)
+ var owner = owner_example; // String | username or organization name (default to null)
+ var slug = slug_example; // String | project slug (default to null)
+ var body = new MetricsServiceObservabilityServiceQueryRangeBody(); // MetricsServiceObservabilityServiceQueryRangeBody |
try {
- // Query SQL Result
- analytic_service.QuerySQLResultResponse result = apiInstance.querySQLResult2(projectOwner, projectSlug, projectId, version, executionId);
+ // Metric range queries
+ metrics_service.MetricsQueryResponse result = apiInstance.queryRange(owner, slug, body);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling DataApi.querySQLResult2: " + e.Message );
+ Debug.Print("Exception when calling DataApi.queryRange: " + e.Message );
}
}
}
@@ -13897,7 +13338,7 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
@@ -13908,22 +13349,20 @@ Usage and SDK Samples
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DataApi();
-$projectOwner = projectOwner_example; // String | username or organization name
-$projectSlug = projectSlug_example; // String | project slug
-$projectId = projectId_example; // String | use project id if project_owner and project_slug are not provided
-$version = 56; // Integer | version of the datasource, default to the active version if not provided
-$executionId = executionId_example; // String |
+$owner = owner_example; // String | username or organization name
+$slug = slug_example; // String | project slug
+$body = ; // MetricsServiceObservabilityServiceQueryRangeBody |
try {
- $result = $api_instance->querySQLResult2($projectOwner, $projectSlug, $projectId, $version, $executionId);
+ $result = $api_instance->queryRange($owner, $slug, $body);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling DataApi->querySQLResult2: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling DataApi->queryRange: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DataApi;
@@ -13935,22 +13374,20 @@ Usage and SDK Samples
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DataApi->new();
-my $projectOwner = projectOwner_example; # String | username or organization name
-my $projectSlug = projectSlug_example; # String | project slug
-my $projectId = projectId_example; # String | use project id if project_owner and project_slug are not provided
-my $version = 56; # Integer | version of the datasource, default to the active version if not provided
-my $executionId = executionId_example; # String |
+my $owner = owner_example; # String | username or organization name
+my $slug = slug_example; # String | project slug
+my $body = WWW::OPenAPIClient::Object::MetricsServiceObservabilityServiceQueryRangeBody->new(); # MetricsServiceObservabilityServiceQueryRangeBody |
eval {
- my $result = $api_instance->querySQLResult2(projectOwner => $projectOwner, projectSlug => $projectSlug, projectId => $projectId, version => $version, executionId => $executionId);
+ my $result = $api_instance->queryRange(owner => $owner, slug => $slug, body => $body);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling DataApi->querySQLResult2: $@\n";
+ warn "Exception when calling DataApi->queryRange: $@\n";
}
-
+
from __future__ import print_statement
import time
import openapi_client
@@ -13964,32 +13401,28 @@ Usage and SDK Samples
# Create an instance of the API class
api_instance = openapi_client.DataApi()
-projectOwner = projectOwner_example # String | username or organization name (optional) (default to null)
-projectSlug = projectSlug_example # String | project slug (optional) (default to null)
-projectId = projectId_example # String | use project id if project_owner and project_slug are not provided (optional) (default to null)
-version = 56 # Integer | version of the datasource, default to the active version if not provided (optional) (default to null)
-executionId = executionId_example # String | (optional) (default to null)
+owner = owner_example # String | username or organization name (default to null)
+slug = slug_example # String | project slug (default to null)
+body = # MetricsServiceObservabilityServiceQueryRangeBody |
try:
- # Query SQL Result
- api_response = api_instance.query_sql_result2(projectOwner=projectOwner, projectSlug=projectSlug, projectId=projectId, version=version, executionId=executionId)
+ # Metric range queries
+ api_response = api_instance.query_range(owner, slug, body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DataApi->querySQLResult2: %s\n" % e)
+ print("Exception when calling DataApi->queryRange: %s\n" % e)
-
+
extern crate DataApi;
pub fn main() {
- let projectOwner = projectOwner_example; // String
- let projectSlug = projectSlug_example; // String
- let projectId = projectId_example; // String
- let version = 56; // Integer
- let executionId = executionId_example; // String
+ let owner = owner_example; // String
+ let slug = slug_example; // String
+ let body = ; // MetricsServiceObservabilityServiceQueryRangeBody
let mut context = DataApi::Context::default();
- let result = client.querySQLResult2(projectOwner, projectSlug, projectId, version, executionId, &context).wait();
+ let result = client.queryRange(owner, slug, body, &context).wait();
println!("{:?}", result);
}
@@ -14004,41 +13437,17 @@ Scopes
Parameters
-
-
-
-
- Query parameters
+ Path parameters
-
- Name
- Description
-
- projectOwner
-
-
-
-
-
-
-
- String
-
-
-
-username or organization name
-
-
-
-
-
-
-
- projectSlug
+
+ Name
+ Description
+
+ owner*
-
+
@@ -14046,19 +13455,22 @@ Parameters
-project slug
+username or organization name
+
+ Required
+
- projectId
+ slug*
-
+
@@ -14066,74 +13478,89 @@ Parameters
-use project id if project_owner and project_slug are not provided
+project slug
+
+ Required
+
- version
-
-
-
-
-
-
-
- Integer
-
-
- (int32)
-
+
-
-version of the datasource, default to the active version if not provided
-
-
-
-
-
-
- executionId
+ Body parameters
+
+
+ Name
+ Description
+
+ body *
+
+
+
+
+
Responses
-
-
+
+
-
+
-
-
-
+
+
+
-
+
-
-
+
+
- rerunSQLQuery
- Rerun SQL
+ querySQLResult
+ Query SQL Result
- Rerun your SQL query by query_id, you can also update the query and run it.
-
-It will return execution_id, use it to query the result.
+ Query the result of a SQL query by execution_id.
- /api/v1/analytics/{owner}/{slug}/sql/rerun_query
+ /api/v1/analytics/{owner}/{slug}/sql/query_result/{executionId}
Usage and SDK Samples
- - Curl
- - Java
- - Dart
- - Android
-
- - Obj-C
- - JavaScript
-
- - C#
- - PHP
- - Perl
- - Python
- - Rust
+ - Curl
+ - Java
+ - Dart
+ - Android
+
+ - Obj-C
+ - JavaScript
+
+ - C#
+ - PHP
+ - Perl
+ - Python
+ - Rust
-
- curl -X POST \
+
+ curl -X GET \
-H "api-key: [[apiKey]]" \
-H "Accept: application/json" \
- -H "Content-Type: application/json" \
- "https://app.sentio.xyz/api/v1/analytics/{owner}/{slug}/sql/rerun_query" \
- -d ''
+ "https://app.sentio.xyz/api/v1/analytics/{owner}/{slug}/sql/query_result/{executionId}?projectId=projectId_example&version=56"
-
+
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
@@ -14263,13 +13686,15 @@ Usage and SDK Samples
DataApi apiInstance = new DataApi();
String owner = owner_example; // String | username or organization name
String slug = slug_example; // String | project slug
- AnalyticServiceAnalyticServiceRerunSQLQueryBody body = ; // AnalyticServiceAnalyticServiceRerunSQLQueryBody |
+ String executionId = executionId_example; // String |
+ String projectId = projectId_example; // String | use project id if project_owner and project_slug are not provided
+ Integer version = 56; // Integer | version of the datasource, default to the active version if not provided
try {
- analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery(owner, slug, body);
+ analytic_service.QuerySQLResultResponse result = apiInstance.querySQLResult(owner, slug, executionId, projectId, version);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#rerunSQLQuery");
+ System.err.println("Exception when calling DataApi#querySQLResult");
e.printStackTrace();
}
}
@@ -14277,26 +13702,28 @@ Usage and SDK Samples
-
+
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final String owner = new String(); // String | username or organization name
final String slug = new String(); // String | project slug
-final AnalyticServiceAnalyticServiceRerunSQLQueryBody body = new AnalyticServiceAnalyticServiceRerunSQLQueryBody(); // AnalyticServiceAnalyticServiceRerunSQLQueryBody |
+final String executionId = new String(); // String |
+final String projectId = new String(); // String | use project id if project_owner and project_slug are not provided
+final Integer version = new Integer(); // Integer | version of the datasource, default to the active version if not provided
try {
- final result = await api_instance.rerunSQLQuery(owner, slug, body);
+ final result = await api_instance.querySQLResult(owner, slug, executionId, projectId, version);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->rerunSQLQuery: $e\n');
+ print('Exception when calling DefaultApi->querySQLResult: $e\n');
}
-
+
import org.openapitools.client.api.DataApi;
public class DataApiExample {
@@ -14304,23 +13731,25 @@ Usage and SDK Samples
DataApi apiInstance = new DataApi();
String owner = owner_example; // String | username or organization name
String slug = slug_example; // String | project slug
- AnalyticServiceAnalyticServiceRerunSQLQueryBody body = ; // AnalyticServiceAnalyticServiceRerunSQLQueryBody |
+ String executionId = executionId_example; // String |
+ String projectId = projectId_example; // String | use project id if project_owner and project_slug are not provided
+ Integer version = 56; // Integer | version of the datasource, default to the active version if not provided
try {
- analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery(owner, slug, body);
+ analytic_service.QuerySQLResultResponse result = apiInstance.querySQLResult(owner, slug, executionId, projectId, version);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#rerunSQLQuery");
+ System.err.println("Exception when calling DataApi#querySQLResult");
e.printStackTrace();
}
}
}
-
+
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
@@ -14333,13 +13762,17 @@ Usage and SDK Samples
DataApi *apiInstance = [[DataApi alloc] init];
String *owner = owner_example; // username or organization name (default to null)
String *slug = slug_example; // project slug (default to null)
-AnalyticServiceAnalyticServiceRerunSQLQueryBody *body = ; //
+String *executionId = executionId_example; // (default to null)
+String *projectId = projectId_example; // use project id if project_owner and project_slug are not provided (optional) (default to null)
+Integer *version = 56; // version of the datasource, default to the active version if not provided (optional) (default to null)
-// Rerun SQL
-[apiInstance rerunSQLQueryWith:owner
+// Query SQL Result
+[apiInstance querySQLResultWith:owner
slug:slug
- body:body
- completionHandler: ^(analytic_service.RerunSQLQueryResponse output, NSError* error) {
+ executionId:executionId
+ projectId:projectId
+ version:version
+ completionHandler: ^(analytic_service.QuerySQLResultResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -14350,7 +13783,7 @@ Usage and SDK Samples
-
+
var SentioApi = require('sentio_api');
var defaultClient = SentioApi.ApiClient.instance;
@@ -14364,7 +13797,11 @@ Usage and SDK Samples
var api = new SentioApi.DataApi()
var owner = owner_example; // {String} username or organization name
var slug = slug_example; // {String} project slug
-var body = ; // {AnalyticServiceAnalyticServiceRerunSQLQueryBody}
+var executionId = executionId_example; // {String}
+var opts = {
+ 'projectId': projectId_example, // {String} use project id if project_owner and project_slug are not provided
+ 'version': 56 // {Integer} version of the datasource, default to the active version if not provided
+};
var callback = function(error, data, response) {
if (error) {
@@ -14373,14 +13810,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.rerunSQLQuery(owner, slug, body, callback);
+api.querySQLResult(owner, slug, executionId, opts, callback);
-
-
+
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
@@ -14389,7 +13826,7 @@ Usage and SDK Samples
namespace Example
{
- public class rerunSQLQueryExample
+ public class querySQLResultExample
{
public void main()
{
@@ -14402,14 +13839,16 @@ Usage and SDK Samples
var apiInstance = new DataApi();
var owner = owner_example; // String | username or organization name (default to null)
var slug = slug_example; // String | project slug (default to null)
- var body = new AnalyticServiceAnalyticServiceRerunSQLQueryBody(); // AnalyticServiceAnalyticServiceRerunSQLQueryBody |
+ var executionId = executionId_example; // String | (default to null)
+ var projectId = projectId_example; // String | use project id if project_owner and project_slug are not provided (optional) (default to null)
+ var version = 56; // Integer | version of the datasource, default to the active version if not provided (optional) (default to null)
try {
- // Rerun SQL
- analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery(owner, slug, body);
+ // Query SQL Result
+ analytic_service.QuerySQLResultResponse result = apiInstance.querySQLResult(owner, slug, executionId, projectId, version);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling DataApi.rerunSQLQuery: " + e.Message );
+ Debug.Print("Exception when calling DataApi.querySQLResult: " + e.Message );
}
}
}
@@ -14417,7 +13856,7 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
@@ -14430,18 +13869,20 @@ Usage and SDK Samples
$api_instance = new OpenAPITools\Client\Api\DataApi();
$owner = owner_example; // String | username or organization name
$slug = slug_example; // String | project slug
-$body = ; // AnalyticServiceAnalyticServiceRerunSQLQueryBody |
+$executionId = executionId_example; // String |
+$projectId = projectId_example; // String | use project id if project_owner and project_slug are not provided
+$version = 56; // Integer | version of the datasource, default to the active version if not provided
try {
- $result = $api_instance->rerunSQLQuery($owner, $slug, $body);
+ $result = $api_instance->querySQLResult($owner, $slug, $executionId, $projectId, $version);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling DataApi->rerunSQLQuery: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling DataApi->querySQLResult: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DataApi;
@@ -14455,18 +13896,20 @@ Usage and SDK Samples
my $api_instance = WWW::OPenAPIClient::DataApi->new();
my $owner = owner_example; # String | username or organization name
my $slug = slug_example; # String | project slug
-my $body = WWW::OPenAPIClient::Object::AnalyticServiceAnalyticServiceRerunSQLQueryBody->new(); # AnalyticServiceAnalyticServiceRerunSQLQueryBody |
+my $executionId = executionId_example; # String |
+my $projectId = projectId_example; # String | use project id if project_owner and project_slug are not provided
+my $version = 56; # Integer | version of the datasource, default to the active version if not provided
eval {
- my $result = $api_instance->rerunSQLQuery(owner => $owner, slug => $slug, body => $body);
+ my $result = $api_instance->querySQLResult(owner => $owner, slug => $slug, executionId => $executionId, projectId => $projectId, version => $version);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling DataApi->rerunSQLQuery: $@\n";
+ warn "Exception when calling DataApi->querySQLResult: $@\n";
}
-
+
from __future__ import print_statement
import time
import openapi_client
@@ -14482,26 +13925,30 @@ Usage and SDK Samples
api_instance = openapi_client.DataApi()
owner = owner_example # String | username or organization name (default to null)
slug = slug_example # String | project slug (default to null)
-body = # AnalyticServiceAnalyticServiceRerunSQLQueryBody |
+executionId = executionId_example # String | (default to null)
+projectId = projectId_example # String | use project id if project_owner and project_slug are not provided (optional) (default to null)
+version = 56 # Integer | version of the datasource, default to the active version if not provided (optional) (default to null)
try:
- # Rerun SQL
- api_response = api_instance.rerun_sql_query(owner, slug, body)
+ # Query SQL Result
+ api_response = api_instance.query_sql_result(owner, slug, executionId, projectId=projectId, version=version)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DataApi->rerunSQLQuery: %s\n" % e)
+ print("Exception when calling DataApi->querySQLResult: %s\n" % e)
-
+
extern crate DataApi;
pub fn main() {
let owner = owner_example; // String
let slug = slug_example; // String
- let body = ; // AnalyticServiceAnalyticServiceRerunSQLQueryBody
+ let executionId = executionId_example; // String
+ let projectId = projectId_example; // String
+ let version = 56; // Integer
let mut context = DataApi::Context::default();
- let result = client.rerunSQLQuery(owner, slug, body, &context).wait();
+ let result = client.querySQLResult(owner, slug, executionId, projectId, version, &context).wait();
println!("{:?}", result);
}
@@ -14526,7 +13973,7 @@ Parameters
-
+
@@ -14549,7 +13996,7 @@ Parameters
-
+
@@ -14566,80 +14013,102 @@ Parameters
+
+
+ executionId*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
- Body parameters
+
+
+ Query parameters
Name
Description
- body *
+ projectId
+
+
+
+
+
+
+
+ String
+
+
+
+use project id if project_owner and project_slug are not provided
+
+
+
+
+
+
+
+ version
-
-
-
+
+
+
+
+ Integer
+
+
+ (int32)
+
+
+
+version of the datasource, default to the active version if not provided
+
+
+
+
-
-
Responses
-
-
+
+
-
+
-
-
-
+
+
+
-
+
-
-
+
+
- rerunSQLQuery2
- Rerun SQL
+ retention
+ Retention query
- Rerun your SQL query by query_id, you can also update the query and run it.
-
-It will return execution_id, use it to query the result.
+ Query for retention.
- /api/v1/analytics/sql/rerun_query
+ /api/v1/insights/{owner}/{slug}/retention
Usage and SDK Samples
- - Curl
- - Java
- - Dart
- - Android
-
- - Obj-C
- - JavaScript
-
- - C#
- - PHP
- - Perl
- - Python
- - Rust
+ - Curl
+ - Java
+ - Dart
+ - Android
+
+ - Obj-C
+ - JavaScript
+
+ - C#
+ - PHP
+ - Perl
+ - Python
+ - Rust
-
+
curl -X POST \
-H "api-key: [[apiKey]]" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
- "https://app.sentio.xyz/api/v1/analytics/sql/rerun_query" \
+ "https://app.sentio.xyz/api/v1/insights/{owner}/{slug}/retention" \
-d ''
-
+
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
@@ -14767,13 +14234,15 @@ Usage and SDK Samples
// Create an instance of the API class
DataApi apiInstance = new DataApi();
- AnalyticServiceRerunSQLQueryRequest body = ; // AnalyticServiceRerunSQLQueryRequest |
+ String owner = owner_example; // String |
+ String slug = slug_example; // String |
+ InsightsServiceInsightsServiceRetentionBody body = ; // InsightsServiceInsightsServiceRetentionBody |
try {
- analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery2(body);
+ insights_service.RetentionResponse result = apiInstance.retention(owner, slug, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#rerunSQLQuery2");
+ System.err.println("Exception when calling DataApi#retention");
e.printStackTrace();
}
}
@@ -14781,46 +14250,50 @@ Usage and SDK Samples
-
+
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
-final AnalyticServiceRerunSQLQueryRequest body = new AnalyticServiceRerunSQLQueryRequest(); // AnalyticServiceRerunSQLQueryRequest |
+final String owner = new String(); // String |
+final String slug = new String(); // String |
+final InsightsServiceInsightsServiceRetentionBody body = new InsightsServiceInsightsServiceRetentionBody(); // InsightsServiceInsightsServiceRetentionBody |
try {
- final result = await api_instance.rerunSQLQuery2(body);
+ final result = await api_instance.retention(owner, slug, body);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->rerunSQLQuery2: $e\n');
+ print('Exception when calling DefaultApi->retention: $e\n');
}
-
+
import org.openapitools.client.api.DataApi;
public class DataApiExample {
public static void main(String[] args) {
DataApi apiInstance = new DataApi();
- AnalyticServiceRerunSQLQueryRequest body = ; // AnalyticServiceRerunSQLQueryRequest |
+ String owner = owner_example; // String |
+ String slug = slug_example; // String |
+ InsightsServiceInsightsServiceRetentionBody body = ; // InsightsServiceInsightsServiceRetentionBody |
try {
- analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery2(body);
+ insights_service.RetentionResponse result = apiInstance.retention(owner, slug, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#rerunSQLQuery2");
+ System.err.println("Exception when calling DataApi#retention");
e.printStackTrace();
}
}
}
-
+
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
@@ -14831,11 +14304,15 @@ Usage and SDK Samples
// Create an instance of the API class
DataApi *apiInstance = [[DataApi alloc] init];
-AnalyticServiceRerunSQLQueryRequest *body = ; //
+String *owner = owner_example; // (default to null)
+String *slug = slug_example; // (default to null)
+InsightsServiceInsightsServiceRetentionBody *body = ; //
-// Rerun SQL
-[apiInstance rerunSQLQuery2With:body
- completionHandler: ^(analytic_service.RerunSQLQueryResponse output, NSError* error) {
+// Retention query
+[apiInstance retentionWith:owner
+ slug:slug
+ body:body
+ completionHandler: ^(insights_service.RetentionResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -14846,7 +14323,7 @@ Usage and SDK Samples
-
+
var SentioApi = require('sentio_api');
var defaultClient = SentioApi.ApiClient.instance;
@@ -14858,7 +14335,9 @@ Usage and SDK Samples
// Create an instance of the API class
var api = new SentioApi.DataApi()
-var body = ; // {AnalyticServiceRerunSQLQueryRequest}
+var owner = owner_example; // {String}
+var slug = slug_example; // {String}
+var body = ; // {InsightsServiceInsightsServiceRetentionBody}
var callback = function(error, data, response) {
if (error) {
@@ -14867,14 +14346,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.rerunSQLQuery2(body, callback);
+api.retention(owner, slug, body, callback);
-
-
+
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
@@ -14883,7 +14362,7 @@ Usage and SDK Samples
namespace Example
{
- public class rerunSQLQuery2Example
+ public class retentionExample
{
public void main()
{
@@ -14894,14 +14373,16 @@ Usage and SDK Samples
// Create an instance of the API class
var apiInstance = new DataApi();
- var body = new AnalyticServiceRerunSQLQueryRequest(); // AnalyticServiceRerunSQLQueryRequest |
+ var owner = owner_example; // String | (default to null)
+ var slug = slug_example; // String | (default to null)
+ var body = new InsightsServiceInsightsServiceRetentionBody(); // InsightsServiceInsightsServiceRetentionBody |
try {
- // Rerun SQL
- analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery2(body);
+ // Retention query
+ insights_service.RetentionResponse result = apiInstance.retention(owner, slug, body);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling DataApi.rerunSQLQuery2: " + e.Message );
+ Debug.Print("Exception when calling DataApi.retention: " + e.Message );
}
}
}
@@ -14909,7 +14390,7 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
@@ -14920,18 +14401,20 @@ Usage and SDK Samples
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DataApi();
-$body = ; // AnalyticServiceRerunSQLQueryRequest |
+$owner = owner_example; // String |
+$slug = slug_example; // String |
+$body = ; // InsightsServiceInsightsServiceRetentionBody |
try {
- $result = $api_instance->rerunSQLQuery2($body);
+ $result = $api_instance->retention($owner, $slug, $body);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling DataApi->rerunSQLQuery2: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling DataApi->retention: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DataApi;
@@ -14943,18 +14426,20 @@ Usage and SDK Samples
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DataApi->new();
-my $body = WWW::OPenAPIClient::Object::AnalyticServiceRerunSQLQueryRequest->new(); # AnalyticServiceRerunSQLQueryRequest |
+my $owner = owner_example; # String |
+my $slug = slug_example; # String |
+my $body = WWW::OPenAPIClient::Object::InsightsServiceInsightsServiceRetentionBody->new(); # InsightsServiceInsightsServiceRetentionBody |
eval {
- my $result = $api_instance->rerunSQLQuery2(body => $body);
+ my $result = $api_instance->retention(owner => $owner, slug => $slug, body => $body);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling DataApi->rerunSQLQuery2: $@\n";
+ warn "Exception when calling DataApi->retention: $@\n";
}
-
+
from __future__ import print_statement
import time
import openapi_client
@@ -14968,24 +14453,28 @@ Usage and SDK Samples
# Create an instance of the API class
api_instance = openapi_client.DataApi()
-body = # AnalyticServiceRerunSQLQueryRequest |
+owner = owner_example # String | (default to null)
+slug = slug_example # String | (default to null)
+body = # InsightsServiceInsightsServiceRetentionBody |
try:
- # Rerun SQL
- api_response = api_instance.rerun_sql_query2(body)
+ # Retention query
+ api_response = api_instance.retention(owner, slug, body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DataApi->rerunSQLQuery2: %s\n" % e)
+ print("Exception when calling DataApi->retention: %s\n" % e)
-
+
extern crate DataApi;
pub fn main() {
- let body = ; // AnalyticServiceRerunSQLQueryRequest
+ let owner = owner_example; // String
+ let slug = slug_example; // String
+ let body = ; // InsightsServiceInsightsServiceRetentionBody
let mut context = DataApi::Context::default();
- let result = client.rerunSQLQuery2(body, &context).wait();
+ let result = client.retention(owner, slug, body, &context).wait();
println!("{:?}", result);
}
@@ -15000,6 +14489,53 @@ Scopes
Parameters
+ Path parameters
+
+
+ Name
+ Description
+
+ owner*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+ slug*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+
Body parameters
@@ -15017,7 +14553,7 @@ Parameters
"content" : {
"application/json" : {
"schema" : {
- "$ref" : "#/components/schemas/analytic_service.RerunSQLQueryRequest"
+ "$ref" : "#/components/schemas/insights_service.InsightsService.RetentionBody"
}
}
},
@@ -15040,12 +14576,12 @@ Parameters
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
- var result = $('#d2e199_rerunSQLQuery2_body');
+ var result = $('#d2e199_retention_body');
result.empty();
result.append(view.render());
});
-
+
@@ -15054,23 +14590,23 @@ Parameters
Responses
-
-
+
+
-
+
-
-
-
+
+
+
-
+
-
-
+
+
- retention
+ retention2
Retention query
@@ -15145,37 +14681,37 @@ retention
Query for retention.
- /api/v1/insights/{owner}/{slug}/retention
+ /api/v1/insights/retention
Usage and SDK Samples
- - Curl
- - Java
- - Dart
- - Android
-
- - Obj-C
- - JavaScript
-
- - C#
- - PHP
- - Perl
- - Python
- - Rust
+ - Curl
+ - Java
+ - Dart
+ - Android
+
+ - Obj-C
+ - JavaScript
+
+ - C#
+ - PHP
+ - Perl
+ - Python
+ - Rust
-
+
curl -X POST \
-H "api-key: [[apiKey]]" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
- "https://app.sentio.xyz/api/v1/insights/{owner}/{slug}/retention" \
+ "https://app.sentio.xyz/api/v1/insights/retention" \
-d ''
-
+
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
@@ -15196,15 +14732,13 @@ Usage and SDK Samples
// Create an instance of the API class
DataApi apiInstance = new DataApi();
- String owner = owner_example; // String |
- String slug = slug_example; // String |
- InsightsServiceInsightsServiceRetentionBody body = ; // InsightsServiceInsightsServiceRetentionBody |
+ InsightsServiceRetentionRequest body = ; // InsightsServiceRetentionRequest |
try {
- insights_service.RetentionResponse result = apiInstance.retention(owner, slug, body);
+ insights_service.RetentionResponse result = apiInstance.retention2(body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#retention");
+ System.err.println("Exception when calling DataApi#retention2");
e.printStackTrace();
}
}
@@ -15212,50 +14746,46 @@ Usage and SDK Samples
-
+
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
-final String owner = new String(); // String |
-final String slug = new String(); // String |
-final InsightsServiceInsightsServiceRetentionBody body = new InsightsServiceInsightsServiceRetentionBody(); // InsightsServiceInsightsServiceRetentionBody |
+final InsightsServiceRetentionRequest body = new InsightsServiceRetentionRequest(); // InsightsServiceRetentionRequest |
try {
- final result = await api_instance.retention(owner, slug, body);
+ final result = await api_instance.retention2(body);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->retention: $e\n');
+ print('Exception when calling DefaultApi->retention2: $e\n');
}
-
+
import org.openapitools.client.api.DataApi;
public class DataApiExample {
public static void main(String[] args) {
DataApi apiInstance = new DataApi();
- String owner = owner_example; // String |
- String slug = slug_example; // String |
- InsightsServiceInsightsServiceRetentionBody body = ; // InsightsServiceInsightsServiceRetentionBody |
+ InsightsServiceRetentionRequest body = ; // InsightsServiceRetentionRequest |
try {
- insights_service.RetentionResponse result = apiInstance.retention(owner, slug, body);
+ insights_service.RetentionResponse result = apiInstance.retention2(body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#retention");
+ System.err.println("Exception when calling DataApi#retention2");
e.printStackTrace();
}
}
}
-
+
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
@@ -15266,14 +14796,10 @@ Usage and SDK Samples
// Create an instance of the API class
DataApi *apiInstance = [[DataApi alloc] init];
-String *owner = owner_example; // (default to null)
-String *slug = slug_example; // (default to null)
-InsightsServiceInsightsServiceRetentionBody *body = ; //
+InsightsServiceRetentionRequest *body = ; //
// Retention query
-[apiInstance retentionWith:owner
- slug:slug
- body:body
+[apiInstance retention2With:body
completionHandler: ^(insights_service.RetentionResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
@@ -15285,7 +14811,7 @@ Usage and SDK Samples
-
+
var SentioApi = require('sentio_api');
var defaultClient = SentioApi.ApiClient.instance;
@@ -15297,9 +14823,7 @@ Usage and SDK Samples
// Create an instance of the API class
var api = new SentioApi.DataApi()
-var owner = owner_example; // {String}
-var slug = slug_example; // {String}
-var body = ; // {InsightsServiceInsightsServiceRetentionBody}
+var body = ; // {InsightsServiceRetentionRequest}
var callback = function(error, data, response) {
if (error) {
@@ -15308,14 +14832,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.retention(owner, slug, body, callback);
+api.retention2(body, callback);
-
-
+
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
@@ -15324,7 +14848,7 @@ Usage and SDK Samples
namespace Example
{
- public class retentionExample
+ public class retention2Example
{
public void main()
{
@@ -15335,16 +14859,14 @@ Usage and SDK Samples
// Create an instance of the API class
var apiInstance = new DataApi();
- var owner = owner_example; // String | (default to null)
- var slug = slug_example; // String | (default to null)
- var body = new InsightsServiceInsightsServiceRetentionBody(); // InsightsServiceInsightsServiceRetentionBody |
+ var body = new InsightsServiceRetentionRequest(); // InsightsServiceRetentionRequest |
try {
// Retention query
- insights_service.RetentionResponse result = apiInstance.retention(owner, slug, body);
+ insights_service.RetentionResponse result = apiInstance.retention2(body);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling DataApi.retention: " + e.Message );
+ Debug.Print("Exception when calling DataApi.retention2: " + e.Message );
}
}
}
@@ -15352,7 +14874,7 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
@@ -15363,20 +14885,18 @@ Usage and SDK Samples
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DataApi();
-$owner = owner_example; // String |
-$slug = slug_example; // String |
-$body = ; // InsightsServiceInsightsServiceRetentionBody |
+$body = ; // InsightsServiceRetentionRequest |
try {
- $result = $api_instance->retention($owner, $slug, $body);
+ $result = $api_instance->retention2($body);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling DataApi->retention: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling DataApi->retention2: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DataApi;
@@ -15388,20 +14908,18 @@ Usage and SDK Samples
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DataApi->new();
-my $owner = owner_example; # String |
-my $slug = slug_example; # String |
-my $body = WWW::OPenAPIClient::Object::InsightsServiceInsightsServiceRetentionBody->new(); # InsightsServiceInsightsServiceRetentionBody |
+my $body = WWW::OPenAPIClient::Object::InsightsServiceRetentionRequest->new(); # InsightsServiceRetentionRequest |
eval {
- my $result = $api_instance->retention(owner => $owner, slug => $slug, body => $body);
+ my $result = $api_instance->retention2(body => $body);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling DataApi->retention: $@\n";
+ warn "Exception when calling DataApi->retention2: $@\n";
}
-
+
from __future__ import print_statement
import time
import openapi_client
@@ -15415,28 +14933,24 @@ Usage and SDK Samples
# Create an instance of the API class
api_instance = openapi_client.DataApi()
-owner = owner_example # String | (default to null)
-slug = slug_example # String | (default to null)
-body = # InsightsServiceInsightsServiceRetentionBody |
+body = # InsightsServiceRetentionRequest |
try:
# Retention query
- api_response = api_instance.retention(owner, slug, body)
+ api_response = api_instance.retention2(body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DataApi->retention: %s\n" % e)
+ print("Exception when calling DataApi->retention2: %s\n" % e)
-
+
extern crate DataApi;
pub fn main() {
- let owner = owner_example; // String
- let slug = slug_example; // String
- let body = ; // InsightsServiceInsightsServiceRetentionBody
+ let body = ; // InsightsServiceRetentionRequest
let mut context = DataApi::Context::default();
- let result = client.retention(owner, slug, body, &context).wait();
+ let result = client.retention2(body, &context).wait();
println!("{:?}", result);
}
@@ -15451,53 +14965,6 @@ Scopes
Parameters
- Path parameters
-
-
- Name
- Description
-
- owner*
-
-
-
-
-
-
-
- String
-
-
-
-
- Required
-
-
-
-
-
-
- slug*
-
-
-
-
-
-
-
- String
-
-
-
-
- Required
-
-
-
-
-
-
-
Body parameters
@@ -15515,7 +14982,7 @@ Parameters
"content" : {
"application/json" : {
"schema" : {
- "$ref" : "#/components/schemas/insights_service.InsightsService.RetentionBody"
+ "$ref" : "#/components/schemas/insights_service.RetentionRequest"
}
}
},
@@ -15538,12 +15005,12 @@ Parameters
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
- var result = $('#d2e199_retention_body');
+ var result = $('#d2e199_retention2_body');
result.empty();
result.append(view.render());
});
-
+
@@ -15552,23 +15019,23 @@ Parameters
Responses
-
-
+
+
-
+
-
-
-
+
+
+
-
+
-
-
+
+
- retention2
- Retention query
+ saveSQL
+ Save SQL
- Query for retention.
+ Save or update a SQL query in a project.
- /api/v1/insights/retention
+ /api/v1/analytics/{owner}/{slug}/sql/save
Usage and SDK Samples
- - Curl
- - Java
- - Dart
- - Android
-
- - Obj-C
- - JavaScript
-
- - C#
- - PHP
- - Perl
- - Python
- - Rust
+ - Curl
+ - Java
+ - Dart
+ - Android
+
+ - Obj-C
+ - JavaScript
+
+ - C#
+ - PHP
+ - Perl
+ - Python
+ - Rust
-
+
curl -X POST \
-H "api-key: [[apiKey]]" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
- "https://app.sentio.xyz/api/v1/insights/retention" \
+ "https://app.sentio.xyz/api/v1/analytics/{owner}/{slug}/sql/save" \
-d ''
-
+
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
@@ -15694,13 +15161,15 @@ Usage and SDK Samples
// Create an instance of the API class
DataApi apiInstance = new DataApi();
- InsightsServiceRetentionRequest body = ; // InsightsServiceRetentionRequest |
+ String owner = owner_example; // String | username or organization name
+ String slug = slug_example; // String | project slug
+ AnalyticServiceAnalyticServiceSaveSQLBody body = ; // AnalyticServiceAnalyticServiceSaveSQLBody |
try {
- insights_service.RetentionResponse result = apiInstance.retention2(body);
+ analytic_service.SaveSQLResponse result = apiInstance.saveSQL(owner, slug, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#retention2");
+ System.err.println("Exception when calling DataApi#saveSQL");
e.printStackTrace();
}
}
@@ -15708,46 +15177,50 @@ Usage and SDK Samples
-
+
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
-final InsightsServiceRetentionRequest body = new InsightsServiceRetentionRequest(); // InsightsServiceRetentionRequest |
+final String owner = new String(); // String | username or organization name
+final String slug = new String(); // String | project slug
+final AnalyticServiceAnalyticServiceSaveSQLBody body = new AnalyticServiceAnalyticServiceSaveSQLBody(); // AnalyticServiceAnalyticServiceSaveSQLBody |
try {
- final result = await api_instance.retention2(body);
+ final result = await api_instance.saveSQL(owner, slug, body);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->retention2: $e\n');
+ print('Exception when calling DefaultApi->saveSQL: $e\n');
}
-
+
import org.openapitools.client.api.DataApi;
public class DataApiExample {
public static void main(String[] args) {
DataApi apiInstance = new DataApi();
- InsightsServiceRetentionRequest body = ; // InsightsServiceRetentionRequest |
+ String owner = owner_example; // String | username or organization name
+ String slug = slug_example; // String | project slug
+ AnalyticServiceAnalyticServiceSaveSQLBody body = ; // AnalyticServiceAnalyticServiceSaveSQLBody |
try {
- insights_service.RetentionResponse result = apiInstance.retention2(body);
+ analytic_service.SaveSQLResponse result = apiInstance.saveSQL(owner, slug, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#retention2");
+ System.err.println("Exception when calling DataApi#saveSQL");
e.printStackTrace();
}
}
}
-
+
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
@@ -15758,11 +15231,15 @@ Usage and SDK Samples
// Create an instance of the API class
DataApi *apiInstance = [[DataApi alloc] init];
-InsightsServiceRetentionRequest *body = ; //
+String *owner = owner_example; // username or organization name (default to null)
+String *slug = slug_example; // project slug (default to null)
+AnalyticServiceAnalyticServiceSaveSQLBody *body = ; //
-// Retention query
-[apiInstance retention2With:body
- completionHandler: ^(insights_service.RetentionResponse output, NSError* error) {
+// Save SQL
+[apiInstance saveSQLWith:owner
+ slug:slug
+ body:body
+ completionHandler: ^(analytic_service.SaveSQLResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -15773,7 +15250,7 @@ Usage and SDK Samples
-
+
var SentioApi = require('sentio_api');
var defaultClient = SentioApi.ApiClient.instance;
@@ -15785,7 +15262,9 @@ Usage and SDK Samples
// Create an instance of the API class
var api = new SentioApi.DataApi()
-var body = ; // {InsightsServiceRetentionRequest}
+var owner = owner_example; // {String} username or organization name
+var slug = slug_example; // {String} project slug
+var body = ; // {AnalyticServiceAnalyticServiceSaveSQLBody}
var callback = function(error, data, response) {
if (error) {
@@ -15794,14 +15273,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.retention2(body, callback);
+api.saveSQL(owner, slug, body, callback);
-
-
+
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
@@ -15810,7 +15289,7 @@ Usage and SDK Samples
namespace Example
{
- public class retention2Example
+ public class saveSQLExample
{
public void main()
{
@@ -15821,14 +15300,16 @@ Usage and SDK Samples
// Create an instance of the API class
var apiInstance = new DataApi();
- var body = new InsightsServiceRetentionRequest(); // InsightsServiceRetentionRequest |
+ var owner = owner_example; // String | username or organization name (default to null)
+ var slug = slug_example; // String | project slug (default to null)
+ var body = new AnalyticServiceAnalyticServiceSaveSQLBody(); // AnalyticServiceAnalyticServiceSaveSQLBody |
try {
- // Retention query
- insights_service.RetentionResponse result = apiInstance.retention2(body);
+ // Save SQL
+ analytic_service.SaveSQLResponse result = apiInstance.saveSQL(owner, slug, body);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling DataApi.retention2: " + e.Message );
+ Debug.Print("Exception when calling DataApi.saveSQL: " + e.Message );
}
}
}
@@ -15836,7 +15317,7 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
@@ -15847,18 +15328,20 @@ Usage and SDK Samples
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DataApi();
-$body = ; // InsightsServiceRetentionRequest |
+$owner = owner_example; // String | username or organization name
+$slug = slug_example; // String | project slug
+$body = ; // AnalyticServiceAnalyticServiceSaveSQLBody |
try {
- $result = $api_instance->retention2($body);
+ $result = $api_instance->saveSQL($owner, $slug, $body);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling DataApi->retention2: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling DataApi->saveSQL: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DataApi;
@@ -15870,18 +15353,20 @@ Usage and SDK Samples
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DataApi->new();
-my $body = WWW::OPenAPIClient::Object::InsightsServiceRetentionRequest->new(); # InsightsServiceRetentionRequest |
+my $owner = owner_example; # String | username or organization name
+my $slug = slug_example; # String | project slug
+my $body = WWW::OPenAPIClient::Object::AnalyticServiceAnalyticServiceSaveSQLBody->new(); # AnalyticServiceAnalyticServiceSaveSQLBody |
eval {
- my $result = $api_instance->retention2(body => $body);
+ my $result = $api_instance->saveSQL(owner => $owner, slug => $slug, body => $body);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling DataApi->retention2: $@\n";
+ warn "Exception when calling DataApi->saveSQL: $@\n";
}
-
+
from __future__ import print_statement
import time
import openapi_client
@@ -15895,24 +15380,28 @@ Usage and SDK Samples
# Create an instance of the API class
api_instance = openapi_client.DataApi()
-body = # InsightsServiceRetentionRequest |
+owner = owner_example # String | username or organization name (default to null)
+slug = slug_example # String | project slug (default to null)
+body = # AnalyticServiceAnalyticServiceSaveSQLBody |
try:
- # Retention query
- api_response = api_instance.retention2(body)
+ # Save SQL
+ api_response = api_instance.save_sql(owner, slug, body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DataApi->retention2: %s\n" % e)
+ print("Exception when calling DataApi->saveSQL: %s\n" % e)
-
+
extern crate DataApi;
pub fn main() {
- let body = ; // InsightsServiceRetentionRequest
+ let owner = owner_example; // String
+ let slug = slug_example; // String
+ let body = ; // AnalyticServiceAnalyticServiceSaveSQLBody
let mut context = DataApi::Context::default();
- let result = client.retention2(body, &context).wait();
+ let result = client.saveSQL(owner, slug, body, &context).wait();
println!("{:?}", result);
}
@@ -15927,6 +15416,59 @@ Scopes
Parameters
+ Path parameters
+
+
+ Name
+ Description
+
+ owner*
+
+
+
+
+
+
+
+ String
+
+
+
+username or organization name
+
+
+
+ Required
+
+
+
+
+
+
+ slug*
+
+
+
+
+
+
+
+ String
+
+
+
+project slug
+
+
+
+ Required
+
+
+
+
+
+
+
Body parameters
@@ -15944,7 +15486,7 @@ Parameters
"content" : {
"application/json" : {
"schema" : {
- "$ref" : "#/components/schemas/insights_service.RetentionRequest"
+ "$ref" : "#/components/schemas/analytic_service.AnalyticService.SaveSQLBody"
}
}
},
@@ -15967,12 +15509,12 @@ Parameters
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
- var result = $('#d2e199_retention2_body');
+ var result = $('#d2e199_saveSQL_body');
result.empty();
result.append(view.render());
});
-
+
@@ -15981,23 +15523,23 @@ Parameters
Responses
-
-
+
+
-
+
-
-
-
+
+
+
-
+
-
-
+
+
- saveSQL
+ saveSQL2
Save SQL
- Save your SQL query, and you can run it immediately or later.
-
-It will return query_id, you can use it to rerun the query.
-if you enable the "run_immediately" field, it will run the query immediately, and return execution_id, use it to query the result.
+ Save or update a SQL query in a project.
- /api/v1/analytics/{owner}/{slug}/sql/save_query
+ /api/v1/analytics/{owner}/{slug}/sql/save
Usage and SDK Samples
- - Curl
- - Java
- - Dart
- - Android
-
- - Obj-C
- - JavaScript
-
- - C#
- - PHP
- - Perl
- - Python
- - Rust
+ - Curl
+ - Java
+ - Dart
+ - Android
+
+ - Obj-C
+ - JavaScript
+
+ - C#
+ - PHP
+ - Perl
+ - Python
+ - Rust
-
- curl -X POST \
+
+ curl -X PUT \
-H "api-key: [[apiKey]]" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
- "https://app.sentio.xyz/api/v1/analytics/{owner}/{slug}/sql/save_query" \
+ "https://app.sentio.xyz/api/v1/analytics/{owner}/{slug}/sql/save" \
-d ''
-
+
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
@@ -16131,10 +15670,10 @@ Usage and SDK Samples
AnalyticServiceAnalyticServiceSaveSQLBody body = ; // AnalyticServiceAnalyticServiceSaveSQLBody |
try {
- analytic_service.SaveSQLResponse result = apiInstance.saveSQL(owner, slug, body);
+ analytic_service.SaveSQLResponse result = apiInstance.saveSQL2(owner, slug, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#saveSQL");
+ System.err.println("Exception when calling DataApi#saveSQL2");
e.printStackTrace();
}
}
@@ -16142,7 +15681,7 @@ Usage and SDK Samples
-
+
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
@@ -16152,16 +15691,16 @@ Usage and SDK Samples
final AnalyticServiceAnalyticServiceSaveSQLBody body = new AnalyticServiceAnalyticServiceSaveSQLBody(); // AnalyticServiceAnalyticServiceSaveSQLBody |
try {
- final result = await api_instance.saveSQL(owner, slug, body);
+ final result = await api_instance.saveSQL2(owner, slug, body);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->saveSQL: $e\n');
+ print('Exception when calling DefaultApi->saveSQL2: $e\n');
}
-
+
import org.openapitools.client.api.DataApi;
public class DataApiExample {
@@ -16172,20 +15711,20 @@ Usage and SDK Samples
AnalyticServiceAnalyticServiceSaveSQLBody body = ; // AnalyticServiceAnalyticServiceSaveSQLBody |
try {
- analytic_service.SaveSQLResponse result = apiInstance.saveSQL(owner, slug, body);
+ analytic_service.SaveSQLResponse result = apiInstance.saveSQL2(owner, slug, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#saveSQL");
+ System.err.println("Exception when calling DataApi#saveSQL2");
e.printStackTrace();
}
}
}
-
+
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
@@ -16201,7 +15740,7 @@ Usage and SDK Samples
AnalyticServiceAnalyticServiceSaveSQLBody *body = ; //
// Save SQL
-[apiInstance saveSQLWith:owner
+[apiInstance saveSQL2With:owner
slug:slug
body:body
completionHandler: ^(analytic_service.SaveSQLResponse output, NSError* error) {
@@ -16215,7 +15754,7 @@ Usage and SDK Samples
-
+
var SentioApi = require('sentio_api');
var defaultClient = SentioApi.ApiClient.instance;
@@ -16238,14 +15777,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.saveSQL(owner, slug, body, callback);
+api.saveSQL2(owner, slug, body, callback);
-
-
+
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
@@ -16254,7 +15793,7 @@ Usage and SDK Samples
namespace Example
{
- public class saveSQLExample
+ public class saveSQL2Example
{
public void main()
{
@@ -16271,10 +15810,10 @@ Usage and SDK Samples
try {
// Save SQL
- analytic_service.SaveSQLResponse result = apiInstance.saveSQL(owner, slug, body);
+ analytic_service.SaveSQLResponse result = apiInstance.saveSQL2(owner, slug, body);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling DataApi.saveSQL: " + e.Message );
+ Debug.Print("Exception when calling DataApi.saveSQL2: " + e.Message );
}
}
}
@@ -16282,7 +15821,7 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
@@ -16298,15 +15837,15 @@ Usage and SDK Samples
$body = ; // AnalyticServiceAnalyticServiceSaveSQLBody |
try {
- $result = $api_instance->saveSQL($owner, $slug, $body);
+ $result = $api_instance->saveSQL2($owner, $slug, $body);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling DataApi->saveSQL: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling DataApi->saveSQL2: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DataApi;
@@ -16323,15 +15862,15 @@ Usage and SDK Samples
my $body = WWW::OPenAPIClient::Object::AnalyticServiceAnalyticServiceSaveSQLBody->new(); # AnalyticServiceAnalyticServiceSaveSQLBody |
eval {
- my $result = $api_instance->saveSQL(owner => $owner, slug => $slug, body => $body);
+ my $result = $api_instance->saveSQL2(owner => $owner, slug => $slug, body => $body);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling DataApi->saveSQL: $@\n";
+ warn "Exception when calling DataApi->saveSQL2: $@\n";
}
-
+
from __future__ import print_statement
import time
import openapi_client
@@ -16351,13 +15890,13 @@ Usage and SDK Samples
try:
# Save SQL
- api_response = api_instance.save_sql(owner, slug, body)
+ api_response = api_instance.save_sql2(owner, slug, body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DataApi->saveSQL: %s\n" % e)
+ print("Exception when calling DataApi->saveSQL2: %s\n" % e)
-
+
extern crate DataApi;
pub fn main() {
@@ -16366,7 +15905,7 @@ Usage and SDK Samples
let body = ; // AnalyticServiceAnalyticServiceSaveSQLBody
let mut context = DataApi::Context::default();
- let result = client.saveSQL(owner, slug, body, &context).wait();
+ let result = client.saveSQL2(owner, slug, body, &context).wait();
println!("{:?}", result);
}
@@ -16391,7 +15930,7 @@ Parameters
-
+
@@ -16414,7 +15953,7 @@ Parameters
-
+
@@ -16474,12 +16013,12 @@ Parameters
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
- var result = $('#d2e199_saveSQL_body');
+ var result = $('#d2e199_saveSQL2_body');
result.empty();
result.append(view.render());
});
-
+
@@ -16488,23 +16027,23 @@ Parameters
Responses
-
-
+
+
-
+
-
-
-
+
+
+
-
+
-
-
+
+
+ DebugAndSimulation
+
+
- saveSQL2
- Save SQL
+ getCallTraceByBundle
+ Get trace by bundle simulation
- Save your SQL query, and you can run it immediately or later.
-
-It will return query_id, you can use it to rerun the query.
-if you enable the "run_immediately" field, it will run the query immediately, and return execution_id, use it to query the result.
+
- /api/v1/analytics/sql/save_query
+ /api/v1/solidity/{owner}/{slug}/{chainId}/bundle/{bundleId}/call_trace
Usage and SDK Samples
- - Curl
- - Java
- - Dart
- - Android
-
- - Obj-C
- - JavaScript
-
- - C#
- - PHP
- - Perl
- - Python
- - Rust
+ - Curl
+ - Java
+ - Dart
+ - Android
+
+ - Obj-C
+ - JavaScript
+
+ - C#
+ - PHP
+ - Perl
+ - Python
+ - Rust
-
- curl -X POST \
+
+ curl -X GET \
-H "api-key: [[apiKey]]" \
-H "Accept: application/json" \
- -H "Content-Type: application/json" \
- "https://app.sentio.xyz/api/v1/analytics/sql/save_query" \
- -d ''
+ "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/{chainId}/bundle/{bundleId}/call_trace?withInternalCalls=true&disableOptimizer=true&ignoreGasCost=true"
-
+
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
-import org.openapitools.client.api.DataApi;
+import org.openapitools.client.api.DebugAndSimulationApi;
import java.io.File;
import java.util.*;
-public class DataApiExample {
+public class DebugAndSimulationApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
@@ -16632,14 +16169,20 @@ Usage and SDK Samples
//ApiKeyAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
- DataApi apiInstance = new DataApi();
- AnalyticServiceSaveSQLRequest body = ; // AnalyticServiceSaveSQLRequest |
+ DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
+ String owner = owner_example; // String |
+ String slug = slug_example; // String |
+ String chainId = chainId_example; // String |
+ String bundleId = bundleId_example; // String |
+ Boolean withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
+ Boolean disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
+ Boolean ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true.
try {
- analytic_service.SaveSQLResponse result = apiInstance.saveSQL2(body);
+ google.api.HttpBody result = apiInstance.getCallTraceByBundle(owner, slug, chainId, bundleId, withInternalCalls, disableOptimizer, ignoreGasCost);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#saveSQL2");
+ System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByBundle");
e.printStackTrace();
}
}
@@ -16647,46 +16190,58 @@ Usage and SDK Samples
-
+
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
-final AnalyticServiceSaveSQLRequest body = new AnalyticServiceSaveSQLRequest(); // AnalyticServiceSaveSQLRequest |
+final String owner = new String(); // String |
+final String slug = new String(); // String |
+final String chainId = new String(); // String |
+final String bundleId = new String(); // String |
+final Boolean withInternalCalls = new Boolean(); // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
+final Boolean disableOptimizer = new Boolean(); // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
+final Boolean ignoreGasCost = new Boolean(); // Boolean | Only effective when disableOptimizer=true.
try {
- final result = await api_instance.saveSQL2(body);
+ final result = await api_instance.getCallTraceByBundle(owner, slug, chainId, bundleId, withInternalCalls, disableOptimizer, ignoreGasCost);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->saveSQL2: $e\n');
+ print('Exception when calling DefaultApi->getCallTraceByBundle: $e\n');
}
-
- import org.openapitools.client.api.DataApi;
+
+ import org.openapitools.client.api.DebugAndSimulationApi;
-public class DataApiExample {
+public class DebugAndSimulationApiExample {
public static void main(String[] args) {
- DataApi apiInstance = new DataApi();
- AnalyticServiceSaveSQLRequest body = ; // AnalyticServiceSaveSQLRequest |
+ DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
+ String owner = owner_example; // String |
+ String slug = slug_example; // String |
+ String chainId = chainId_example; // String |
+ String bundleId = bundleId_example; // String |
+ Boolean withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
+ Boolean disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
+ Boolean ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true.
try {
- analytic_service.SaveSQLResponse result = apiInstance.saveSQL2(body);
+ google.api.HttpBody result = apiInstance.getCallTraceByBundle(owner, slug, chainId, bundleId, withInternalCalls, disableOptimizer, ignoreGasCost);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#saveSQL2");
+ System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByBundle");
e.printStackTrace();
}
}
}
-
+
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
@@ -16696,12 +16251,24 @@ Usage and SDK Samples
// Create an instance of the API class
-DataApi *apiInstance = [[DataApi alloc] init];
-AnalyticServiceSaveSQLRequest *body = ; //
+DebugAndSimulationApi *apiInstance = [[DebugAndSimulationApi alloc] init];
+String *owner = owner_example; // (default to null)
+String *slug = slug_example; // (default to null)
+String *chainId = chainId_example; // (default to null)
+String *bundleId = bundleId_example; // (default to null)
+Boolean *withInternalCalls = true; // Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null)
+Boolean *disableOptimizer = true; // Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null)
+Boolean *ignoreGasCost = true; // Only effective when disableOptimizer=true. (optional) (default to null)
-// Save SQL
-[apiInstance saveSQL2With:body
- completionHandler: ^(analytic_service.SaveSQLResponse output, NSError* error) {
+// Get trace by bundle simulation
+[apiInstance getCallTraceByBundleWith:owner
+ slug:slug
+ chainId:chainId
+ bundleId:bundleId
+ withInternalCalls:withInternalCalls
+ disableOptimizer:disableOptimizer
+ ignoreGasCost:ignoreGasCost
+ completionHandler: ^(google.api.HttpBody output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -16712,7 +16279,7 @@ Usage and SDK Samples
-
+
var SentioApi = require('sentio_api');
var defaultClient = SentioApi.ApiClient.instance;
@@ -16723,8 +16290,16 @@ Usage and SDK Samples
//ApiKeyAuth.apiKeyPrefix['api-key'] = "Token";
// Create an instance of the API class
-var api = new SentioApi.DataApi()
-var body = ; // {AnalyticServiceSaveSQLRequest}
+var api = new SentioApi.DebugAndSimulationApi()
+var owner = owner_example; // {String}
+var slug = slug_example; // {String}
+var chainId = chainId_example; // {String}
+var bundleId = bundleId_example; // {String}
+var opts = {
+ 'withInternalCalls': true, // {Boolean} Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
+ 'disableOptimizer': true, // {Boolean} Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
+ 'ignoreGasCost': true // {Boolean} Only effective when disableOptimizer=true.
+};
var callback = function(error, data, response) {
if (error) {
@@ -16733,14 +16308,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.saveSQL2(body, callback);
+api.getCallTraceByBundle(owner, slug, chainId, bundleId, opts, callback);
-
-
+
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
@@ -16749,7 +16324,7 @@ Usage and SDK Samples
namespace Example
{
- public class saveSQL2Example
+ public class getCallTraceByBundleExample
{
public void main()
{
@@ -16759,15 +16334,21 @@ Usage and SDK Samples
// Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
// Create an instance of the API class
- var apiInstance = new DataApi();
- var body = new AnalyticServiceSaveSQLRequest(); // AnalyticServiceSaveSQLRequest |
+ var apiInstance = new DebugAndSimulationApi();
+ var owner = owner_example; // String | (default to null)
+ var slug = slug_example; // String | (default to null)
+ var chainId = chainId_example; // String | (default to null)
+ var bundleId = bundleId_example; // String | (default to null)
+ var withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null)
+ var disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null)
+ var ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. (optional) (default to null)
try {
- // Save SQL
- analytic_service.SaveSQLResponse result = apiInstance.saveSQL2(body);
+ // Get trace by bundle simulation
+ google.api.HttpBody result = apiInstance.getCallTraceByBundle(owner, slug, chainId, bundleId, withInternalCalls, disableOptimizer, ignoreGasCost);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling DataApi.saveSQL2: " + e.Message );
+ Debug.Print("Exception when calling DebugAndSimulationApi.getCallTraceByBundle: " + e.Message );
}
}
}
@@ -16775,7 +16356,7 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
@@ -16785,22 +16366,28 @@ Usage and SDK Samples
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
// Create an instance of the API class
-$api_instance = new OpenAPITools\Client\Api\DataApi();
-$body = ; // AnalyticServiceSaveSQLRequest |
+$api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi();
+$owner = owner_example; // String |
+$slug = slug_example; // String |
+$chainId = chainId_example; // String |
+$bundleId = bundleId_example; // String |
+$withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
+$disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
+$ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true.
try {
- $result = $api_instance->saveSQL2($body);
+ $result = $api_instance->getCallTraceByBundle($owner, $slug, $chainId, $bundleId, $withInternalCalls, $disableOptimizer, $ignoreGasCost);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling DataApi->saveSQL2: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling DebugAndSimulationApi->getCallTraceByBundle: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
-use WWW::OPenAPIClient::DataApi;
+use WWW::OPenAPIClient::DebugAndSimulationApi;
# Configure API key authorization: ApiKeyAuth
$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
@@ -16808,19 +16395,25 @@ Usage and SDK Samples
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
# Create an instance of the API class
-my $api_instance = WWW::OPenAPIClient::DataApi->new();
-my $body = WWW::OPenAPIClient::Object::AnalyticServiceSaveSQLRequest->new(); # AnalyticServiceSaveSQLRequest |
+my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new();
+my $owner = owner_example; # String |
+my $slug = slug_example; # String |
+my $chainId = chainId_example; # String |
+my $bundleId = bundleId_example; # String |
+my $withInternalCalls = true; # Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
+my $disableOptimizer = true; # Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
+my $ignoreGasCost = true; # Boolean | Only effective when disableOptimizer=true.
eval {
- my $result = $api_instance->saveSQL2(body => $body);
+ my $result = $api_instance->getCallTraceByBundle(owner => $owner, slug => $slug, chainId => $chainId, bundleId => $bundleId, withInternalCalls => $withInternalCalls, disableOptimizer => $disableOptimizer, ignoreGasCost => $ignoreGasCost);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling DataApi->saveSQL2: $@\n";
+ warn "Exception when calling DebugAndSimulationApi->getCallTraceByBundle: $@\n";
}
-
+
from __future__ import print_statement
import time
import openapi_client
@@ -16833,25 +16426,37 @@ Usage and SDK Samples
# openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer'
# Create an instance of the API class
-api_instance = openapi_client.DataApi()
-body = # AnalyticServiceSaveSQLRequest |
+api_instance = openapi_client.DebugAndSimulationApi()
+owner = owner_example # String | (default to null)
+slug = slug_example # String | (default to null)
+chainId = chainId_example # String | (default to null)
+bundleId = bundleId_example # String | (default to null)
+withInternalCalls = true # Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null)
+disableOptimizer = true # Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null)
+ignoreGasCost = true # Boolean | Only effective when disableOptimizer=true. (optional) (default to null)
try:
- # Save SQL
- api_response = api_instance.save_sql2(body)
+ # Get trace by bundle simulation
+ api_response = api_instance.get_call_trace_by_bundle(owner, slug, chainId, bundleId, withInternalCalls=withInternalCalls, disableOptimizer=disableOptimizer, ignoreGasCost=ignoreGasCost)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DataApi->saveSQL2: %s\n" % e)
+ print("Exception when calling DebugAndSimulationApi->getCallTraceByBundle: %s\n" % e)
-
- extern crate DataApi;
+
+ extern crate DebugAndSimulationApi;
pub fn main() {
- let body = ; // AnalyticServiceSaveSQLRequest
+ let owner = owner_example; // String
+ let slug = slug_example; // String
+ let chainId = chainId_example; // String
+ let bundleId = bundleId_example; // String
+ let withInternalCalls = true; // Boolean
+ let disableOptimizer = true; // Boolean
+ let ignoreGasCost = true; // Boolean
- let mut context = DataApi::Context::default();
- let result = client.saveSQL2(body, &context).wait();
+ let mut context = DebugAndSimulationApi::Context::default();
+ let result = client.getCallTraceByBundle(owner, slug, chainId, bundleId, withInternalCalls, disableOptimizer, ignoreGasCost, &context).wait();
println!("{:?}", result);
}
@@ -16866,77 +16471,183 @@ Scopes
Parameters
+ Path parameters
+
+
+ Name
+ Description
+
+ owner*
+
+
+
+
+
+
+ String
+
- Body parameters
+
+
+ Required
+
+
+
+
+
+
+ slug*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+ chainId*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+ bundleId*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+
+
+
+
+
+ Query parameters
Name
Description
- body *
+ withInternalCalls
-
-
-
+
+
+
+
+ Boolean
+
+
+
+Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
+
+
+
+
-
+ disableOptimizer
+
+
+
+
+
+
+
+ Boolean
+
+
+
+Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
+
+
+
+
+
+
+
+ ignoreGasCost
+
+
+
+
+
+ Boolean
+
+
+
+Only effective when disableOptimizer=true.
+
+
+
+
+
+
+
+
Responses
-
-
+
+
-
+
-
-
-
+
+
+
-
+
-
-
- DebugAndSimulation
-
-
+
+
- getCallTraceByBundle
- Get trace by bundle simulation
+ getCallTraceBySimulation
+ Get trace by simulation
@@ -17014,35 +16722,35 @@ getCallTraceByBundle
- /api/v1/solidity/{owner}/{slug}/{chainId}/bundle/{bundleId}/call_trace
+ /api/v1/solidity/{owner}/{slug}/{chainId}/simulation/{simulationId}/call_trace
-
Usage and SDK Samples
-
-
- - Curl
- - Java
- - Dart
- - Android
-
- - Obj-C
- - JavaScript
-
- - C#
- - PHP
- - Perl
- - Python
- - Rust
+ 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}/bundle/{bundleId}/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.*;
@@ -17066,16 +16774,16 @@ Usage and SDK Samples
String owner = owner_example; // String |
String slug = slug_example; // String |
String chainId = chainId_example; // String |
- String bundleId = bundleId_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.getCallTraceByBundle(owner, slug, chainId, bundleId, 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#getCallTraceByBundle");
+ System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceBySimulation");
e.printStackTrace();
}
}
@@ -17083,7 +16791,7 @@ Usage and SDK Samples
-
+
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
@@ -17091,22 +16799,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 bundleId = 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.getCallTraceByBundle(owner, slug, chainId, bundleId, 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->getCallTraceByBundle: $e\n');
+ print('Exception when calling DefaultApi->getCallTraceBySimulation: $e\n');
}
-
+
import org.openapitools.client.api.DebugAndSimulationApi;
public class DebugAndSimulationApiExample {
@@ -17115,26 +16823,26 @@ Usage and SDK Samples
String owner = owner_example; // String |
String slug = slug_example; // String |
String chainId = chainId_example; // String |
- String bundleId = bundleId_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.getCallTraceByBundle(owner, slug, chainId, bundleId, 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#getCallTraceByBundle");
+ System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceBySimulation");
e.printStackTrace();
}
}
}
-
+
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
@@ -17148,16 +16856,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 *bundleId = bundleId_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 bundle simulation
-[apiInstance getCallTraceByBundleWith:owner
+// Get trace by simulation
+[apiInstance getCallTraceBySimulationWith:owner
slug:slug
chainId:chainId
- bundleId:bundleId
+ simulationId:simulationId
withInternalCalls:withInternalCalls
disableOptimizer:disableOptimizer
ignoreGasCost:ignoreGasCost
@@ -17172,7 +16880,7 @@ Usage and SDK Samples
-
+
var SentioApi = require('sentio_api');
var defaultClient = SentioApi.ApiClient.instance;
@@ -17187,7 +16895,7 @@ Usage and SDK Samples
var owner = owner_example; // {String}
var slug = slug_example; // {String}
var chainId = chainId_example; // {String}
-var bundleId = bundleId_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.
@@ -17201,14 +16909,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.getCallTraceByBundle(owner, slug, chainId, bundleId, opts, callback);
+api.getCallTraceBySimulation(owner, slug, chainId, simulationId, opts, callback);
-
-
+
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
@@ -17217,7 +16925,7 @@ Usage and SDK Samples
namespace Example
{
- public class getCallTraceByBundleExample
+ public class getCallTraceBySimulationExample
{
public void main()
{
@@ -17231,17 +16939,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 bundleId = bundleId_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 bundle simulation
- google.api.HttpBody result = apiInstance.getCallTraceByBundle(owner, slug, chainId, bundleId, 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.getCallTraceByBundle: " + e.Message );
+ Debug.Print("Exception when calling DebugAndSimulationApi.getCallTraceBySimulation: " + e.Message );
}
}
}
@@ -17249,7 +16957,7 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
@@ -17263,21 +16971,21 @@ Usage and SDK Samples
$owner = owner_example; // String |
$slug = slug_example; // String |
$chainId = chainId_example; // String |
-$bundleId = bundleId_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->getCallTraceByBundle($owner, $slug, $chainId, $bundleId, $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->getCallTraceByBundle: ', $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;
@@ -17292,21 +17000,21 @@ Usage and SDK Samples
my $owner = owner_example; # String |
my $slug = slug_example; # String |
my $chainId = chainId_example; # String |
-my $bundleId = bundleId_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->getCallTraceByBundle(owner => $owner, slug => $slug, chainId => $chainId, bundleId => $bundleId, 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->getCallTraceByBundle: $@\n";
+ warn "Exception when calling DebugAndSimulationApi->getCallTraceBySimulation: $@\n";
}
-
+
from __future__ import print_statement
import time
import openapi_client
@@ -17323,33 +17031,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)
-bundleId = bundleId_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 bundle simulation
- api_response = api_instance.get_call_trace_by_bundle(owner, slug, chainId, bundleId, 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->getCallTraceByBundle: %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 bundleId = bundleId_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.getCallTraceByBundle(owner, slug, chainId, bundleId, withInternalCalls, disableOptimizer, ignoreGasCost, &context).wait();
+ let result = client.getCallTraceBySimulation(owner, slug, chainId, simulationId, withInternalCalls, disableOptimizer, ignoreGasCost, &context).wait();
println!("{:?}", result);
}
@@ -17374,7 +17082,7 @@ Parameters
-
+
@@ -17394,7 +17102,7 @@ Parameters
-
+
@@ -17414,7 +17122,7 @@ Parameters
-
+
@@ -17430,11 +17138,11 @@ Parameters
- bundleId*
+ simulationId*
-
+
@@ -17465,7 +17173,7 @@ Parameters
-
+
@@ -17485,7 +17193,7 @@ Parameters
-
+
@@ -17505,7 +17213,7 @@ Parameters
-
+
@@ -17524,23 +17232,23 @@ Parameters
Responses
-
-
+
+
-
+
-
-
-
+
+
+
-
+
-
-
+
+
- getCallTraceBySimulation
- Get trace by simulation
+ getCallTraceByTransaction
+ Get trace by transaction
-
+ API to get Sentio call trace. It takes `txId.txHash` and `chainSpec.chainId` arguments, where the first is transaction hash, and the second is the numeric ethereum chain ID.
+
+The results looks very similar to the normal [Ethereum call trace](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png). But we have an additional `startIndex` and `startIndex` on each trace entry even for the LOG, representing the execution order in the trace.
+
+This allows you to build chart that marks the order of fund flow.
+
+![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png)
- /api/v1/solidity/{owner}/{slug}/{chainId}/simulation/{simulationId}/call_trace
+ /api/v1/solidity/{owner}/{slug}/{chainId}/transaction/{txHash}/call_trace
Usage and SDK Samples
- - Curl
- - Java
- - Dart
- - Android
-
- - Obj-C
- - JavaScript
-
- - C#
- - PHP
- - Perl
- - Python
- - Rust
+ - Curl
+ - Java
+ - Dart
+ - Android
+
+ - Obj-C
+ - JavaScript
+
+ - C#
+ - PHP
+ - Perl
+ - Python
+ - Rust
-
+
curl -X GET \
-H "api-key: [[apiKey]]" \
-H "Accept: application/json" \
- "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/{chainId}/simulation/{simulationId}/call_trace?withInternalCalls=true&disableOptimizer=true&ignoreGasCost=true"
+ "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/{chainId}/transaction/{txHash}/call_trace?withInternalCalls=true&disableOptimizer=true&ignoreGasCost=true"
-
+
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
@@ -17667,16 +17381,16 @@ Usage and SDK Samples
String owner = owner_example; // String |
String slug = slug_example; // String |
String chainId = chainId_example; // String |
- String simulationId = simulationId_example; // String |
+ String txHash = txHash_example; // String |
Boolean withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
Boolean disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
Boolean ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true.
try {
- google.api.HttpBody result = apiInstance.getCallTraceBySimulation(owner, slug, chainId, simulationId, withInternalCalls, disableOptimizer, ignoreGasCost);
+ google.api.HttpBody result = apiInstance.getCallTraceByTransaction(owner, slug, chainId, txHash, withInternalCalls, disableOptimizer, ignoreGasCost);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceBySimulation");
+ System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByTransaction");
e.printStackTrace();
}
}
@@ -17684,7 +17398,7 @@ Usage and SDK Samples
-
+
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
@@ -17692,22 +17406,22 @@ Usage and SDK Samples
final String owner = new String(); // String |
final String slug = new String(); // String |
final String chainId = new String(); // String |
-final String simulationId = new String(); // String |
+final String txHash = new String(); // String |
final Boolean withInternalCalls = new Boolean(); // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
final Boolean disableOptimizer = new Boolean(); // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
final Boolean ignoreGasCost = new Boolean(); // Boolean | Only effective when disableOptimizer=true.
try {
- final result = await api_instance.getCallTraceBySimulation(owner, slug, chainId, simulationId, withInternalCalls, disableOptimizer, ignoreGasCost);
+ final result = await api_instance.getCallTraceByTransaction(owner, slug, chainId, txHash, withInternalCalls, disableOptimizer, ignoreGasCost);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->getCallTraceBySimulation: $e\n');
+ print('Exception when calling DefaultApi->getCallTraceByTransaction: $e\n');
}
-
+
import org.openapitools.client.api.DebugAndSimulationApi;
public class DebugAndSimulationApiExample {
@@ -17716,26 +17430,26 @@ Usage and SDK Samples
String owner = owner_example; // String |
String slug = slug_example; // String |
String chainId = chainId_example; // String |
- String simulationId = simulationId_example; // String |
+ String txHash = txHash_example; // String |
Boolean withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
Boolean disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
Boolean ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true.
try {
- google.api.HttpBody result = apiInstance.getCallTraceBySimulation(owner, slug, chainId, simulationId, withInternalCalls, disableOptimizer, ignoreGasCost);
+ google.api.HttpBody result = apiInstance.getCallTraceByTransaction(owner, slug, chainId, txHash, withInternalCalls, disableOptimizer, ignoreGasCost);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceBySimulation");
+ System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByTransaction");
e.printStackTrace();
}
}
}
-
+
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
@@ -17749,16 +17463,16 @@ Usage and SDK Samples
String *owner = owner_example; // (default to null)
String *slug = slug_example; // (default to null)
String *chainId = chainId_example; // (default to null)
-String *simulationId = simulationId_example; // (default to null)
+String *txHash = txHash_example; // (default to null)
Boolean *withInternalCalls = true; // Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null)
Boolean *disableOptimizer = true; // Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null)
Boolean *ignoreGasCost = true; // Only effective when disableOptimizer=true. (optional) (default to null)
-// Get trace by simulation
-[apiInstance getCallTraceBySimulationWith:owner
+// Get trace by transaction
+[apiInstance getCallTraceByTransactionWith:owner
slug:slug
chainId:chainId
- simulationId:simulationId
+ txHash:txHash
withInternalCalls:withInternalCalls
disableOptimizer:disableOptimizer
ignoreGasCost:ignoreGasCost
@@ -17773,7 +17487,7 @@ Usage and SDK Samples
-
+
var SentioApi = require('sentio_api');
var defaultClient = SentioApi.ApiClient.instance;
@@ -17788,7 +17502,7 @@ Usage and SDK Samples
var owner = owner_example; // {String}
var slug = slug_example; // {String}
var chainId = chainId_example; // {String}
-var simulationId = simulationId_example; // {String}
+var txHash = txHash_example; // {String}
var opts = {
'withInternalCalls': true, // {Boolean} Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
'disableOptimizer': true, // {Boolean} Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
@@ -17802,14 +17516,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.getCallTraceBySimulation(owner, slug, chainId, simulationId, opts, callback);
+api.getCallTraceByTransaction(owner, slug, chainId, txHash, opts, callback);
-
-
+
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
@@ -17818,7 +17532,7 @@ Usage and SDK Samples
namespace Example
{
- public class getCallTraceBySimulationExample
+ public class getCallTraceByTransactionExample
{
public void main()
{
@@ -17832,17 +17546,17 @@ Usage and SDK Samples
var owner = owner_example; // String | (default to null)
var slug = slug_example; // String | (default to null)
var chainId = chainId_example; // String | (default to null)
- var simulationId = simulationId_example; // String | (default to null)
+ var txHash = txHash_example; // String | (default to null)
var withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null)
var disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null)
var ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. (optional) (default to null)
try {
- // Get trace by simulation
- google.api.HttpBody result = apiInstance.getCallTraceBySimulation(owner, slug, chainId, simulationId, withInternalCalls, disableOptimizer, ignoreGasCost);
+ // Get trace by transaction
+ google.api.HttpBody result = apiInstance.getCallTraceByTransaction(owner, slug, chainId, txHash, withInternalCalls, disableOptimizer, ignoreGasCost);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling DebugAndSimulationApi.getCallTraceBySimulation: " + e.Message );
+ Debug.Print("Exception when calling DebugAndSimulationApi.getCallTraceByTransaction: " + e.Message );
}
}
}
@@ -17850,7 +17564,7 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
@@ -17864,21 +17578,21 @@ Usage and SDK Samples
$owner = owner_example; // String |
$slug = slug_example; // String |
$chainId = chainId_example; // String |
-$simulationId = simulationId_example; // String |
+$txHash = txHash_example; // String |
$withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
$disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
$ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true.
try {
- $result = $api_instance->getCallTraceBySimulation($owner, $slug, $chainId, $simulationId, $withInternalCalls, $disableOptimizer, $ignoreGasCost);
+ $result = $api_instance->getCallTraceByTransaction($owner, $slug, $chainId, $txHash, $withInternalCalls, $disableOptimizer, $ignoreGasCost);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling DebugAndSimulationApi->getCallTraceBySimulation: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling DebugAndSimulationApi->getCallTraceByTransaction: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DebugAndSimulationApi;
@@ -17893,21 +17607,21 @@ Usage and SDK Samples
my $owner = owner_example; # String |
my $slug = slug_example; # String |
my $chainId = chainId_example; # String |
-my $simulationId = simulationId_example; # String |
+my $txHash = txHash_example; # String |
my $withInternalCalls = true; # Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
my $disableOptimizer = true; # Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
my $ignoreGasCost = true; # Boolean | Only effective when disableOptimizer=true.
eval {
- my $result = $api_instance->getCallTraceBySimulation(owner => $owner, slug => $slug, chainId => $chainId, simulationId => $simulationId, withInternalCalls => $withInternalCalls, disableOptimizer => $disableOptimizer, ignoreGasCost => $ignoreGasCost);
+ my $result = $api_instance->getCallTraceByTransaction(owner => $owner, slug => $slug, chainId => $chainId, txHash => $txHash, withInternalCalls => $withInternalCalls, disableOptimizer => $disableOptimizer, ignoreGasCost => $ignoreGasCost);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling DebugAndSimulationApi->getCallTraceBySimulation: $@\n";
+ warn "Exception when calling DebugAndSimulationApi->getCallTraceByTransaction: $@\n";
}
-
+
from __future__ import print_statement
import time
import openapi_client
@@ -17924,33 +17638,33 @@ Usage and SDK Samples
owner = owner_example # String | (default to null)
slug = slug_example # String | (default to null)
chainId = chainId_example # String | (default to null)
-simulationId = simulationId_example # String | (default to null)
+txHash = txHash_example # String | (default to null)
withInternalCalls = true # Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null)
disableOptimizer = true # Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null)
ignoreGasCost = true # Boolean | Only effective when disableOptimizer=true. (optional) (default to null)
try:
- # Get trace by simulation
- api_response = api_instance.get_call_trace_by_simulation(owner, slug, chainId, simulationId, withInternalCalls=withInternalCalls, disableOptimizer=disableOptimizer, ignoreGasCost=ignoreGasCost)
+ # Get trace by transaction
+ api_response = api_instance.get_call_trace_by_transaction(owner, slug, chainId, txHash, withInternalCalls=withInternalCalls, disableOptimizer=disableOptimizer, ignoreGasCost=ignoreGasCost)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DebugAndSimulationApi->getCallTraceBySimulation: %s\n" % e)
+ print("Exception when calling DebugAndSimulationApi->getCallTraceByTransaction: %s\n" % e)
-
+
extern crate DebugAndSimulationApi;
pub fn main() {
let owner = owner_example; // String
let slug = slug_example; // String
let chainId = chainId_example; // String
- let simulationId = simulationId_example; // String
+ let txHash = txHash_example; // String
let withInternalCalls = true; // Boolean
let disableOptimizer = true; // Boolean
let ignoreGasCost = true; // Boolean
let mut context = DebugAndSimulationApi::Context::default();
- let result = client.getCallTraceBySimulation(owner, slug, chainId, simulationId, withInternalCalls, disableOptimizer, ignoreGasCost, &context).wait();
+ let result = client.getCallTraceByTransaction(owner, slug, chainId, txHash, withInternalCalls, disableOptimizer, ignoreGasCost, &context).wait();
println!("{:?}", result);
}
@@ -17975,7 +17689,7 @@ Parameters
-
+