getMetrics
-Get a list of metrics in a project
+getAlertRules
+List all alert rules for a project
getMetrics
-
/api/v1/metrics
+ /api/v1/alerts/rule/project/{projectId}
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/metrics?projectId=projectId_example&name=name_example&version=56"
+ "https://app.sentio.xyz/api/v1/alerts/rule/project/{projectId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
-import org.openapitools.client.api.DataApi;
+import org.openapitools.client.api.AlertsApi;
import java.io.File;
import java.util.*;
-public class DataApiExample {
+public class AlertsApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
@@ -5758,16 +6226,14 @@ Usage and SDK Samples
//ApiKeyAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
- DataApi apiInstance = new DataApi();
+ AlertsApi apiInstance = new AlertsApi();
String projectId = projectId_example; // String |
- String name = name_example; // String |
- Integer version = 56; // Integer |
try {
- metrics_service.GetMetricsResponse result = apiInstance.getMetrics(projectId, name, version);
+ alert_service.GetAlertRulesResponse result = apiInstance.getAlertRules(projectId);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#getMetrics");
+ System.err.println("Exception when calling AlertsApi#getAlertRules");
e.printStackTrace();
}
}
@@ -5775,50 +6241,46 @@ 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 |
try {
- final result = await api_instance.getMetrics(projectId, name, version);
+ final result = await api_instance.getAlertRules(projectId);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->getMetrics: $e\n');
+ print('Exception when calling DefaultApi->getAlertRules: $e\n');
}
import org.openapitools.client.api.DataApi;
+
+ import org.openapitools.client.api.AlertsApi;
-public class DataApiExample {
+public class AlertsApiExample {
public static void main(String[] args) {
- DataApi apiInstance = new DataApi();
+ AlertsApi apiInstance = new AlertsApi();
String projectId = projectId_example; // String |
- String name = name_example; // String |
- Integer version = 56; // Integer |
try {
- metrics_service.GetMetricsResponse result = apiInstance.getMetrics(projectId, name, version);
+ alert_service.GetAlertRulesResponse result = apiInstance.getAlertRules(projectId);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#getMetrics");
+ System.err.println("Exception when calling AlertsApi#getAlertRules");
e.printStackTrace();
}
}
}
-
+
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
@@ -5828,16 +6290,12 @@ 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)
+AlertsApi *apiInstance = [[AlertsApi alloc] init];
+String *projectId = projectId_example; // (default to null)
-// Get a list of metrics in a project
-[apiInstance getMetricsWith:projectId
- name:name
- version:version
- completionHandler: ^(metrics_service.GetMetricsResponse output, NSError* error) {
+// List all alert rules for a project
+[apiInstance getAlertRulesWith:projectId
+ completionHandler: ^(alert_service.GetAlertRulesResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -5848,7 +6306,7 @@ Usage and SDK Samples
-
+
var SentioApi = require('sentio_api');
var defaultClient = SentioApi.ApiClient.instance;
@@ -5859,12 +6317,8 @@ Usage and SDK Samples
//ApiKeyAuth.apiKeyPrefix['api-key'] = "Token";
// 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 api = new SentioApi.AlertsApi()
+var projectId = projectId_example; // {String}
var callback = function(error, data, response) {
if (error) {
@@ -5873,14 +6327,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.getMetrics(opts, callback);
+api.getAlertRules(projectId, callback);
-
-
+
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
@@ -5889,7 +6343,7 @@ Usage and SDK Samples
namespace Example
{
- public class getMetricsExample
+ public class getAlertRulesExample
{
public void main()
{
@@ -5899,17 +6353,15 @@ Usage and SDK Samples
// Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
// 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 apiInstance = new AlertsApi();
+ var projectId = projectId_example; // String | (default to null)
try {
- // Get a list of metrics in a project
- metrics_service.GetMetricsResponse result = apiInstance.getMetrics(projectId, name, version);
+ // List all alert rules for a project
+ alert_service.GetAlertRulesResponse result = apiInstance.getAlertRules(projectId);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling DataApi.getMetrics: " + e.Message );
+ Debug.Print("Exception when calling AlertsApi.getAlertRules: " + e.Message );
}
}
}
@@ -5917,7 +6369,7 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
@@ -5927,24 +6379,22 @@ Usage and SDK Samples
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
// Create an instance of the API class
-$api_instance = new OpenAPITools\Client\Api\DataApi();
+$api_instance = new OpenAPITools\Client\Api\AlertsApi();
$projectId = projectId_example; // String |
-$name = name_example; // String |
-$version = 56; // Integer |
try {
- $result = $api_instance->getMetrics($projectId, $name, $version);
+ $result = $api_instance->getAlertRules($projectId);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling DataApi->getMetrics: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling AlertsApi->getAlertRules: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
-use WWW::OPenAPIClient::DataApi;
+use WWW::OPenAPIClient::AlertsApi;
# Configure API key authorization: ApiKeyAuth
$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
@@ -5952,21 +6402,19 @@ Usage and SDK Samples
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
# Create an instance of the API class
-my $api_instance = WWW::OPenAPIClient::DataApi->new();
+my $api_instance = WWW::OPenAPIClient::AlertsApi->new();
my $projectId = projectId_example; # String |
-my $name = name_example; # String |
-my $version = 56; # Integer |
eval {
- my $result = $api_instance->getMetrics(projectId => $projectId, name => $name, version => $version);
+ my $result = $api_instance->getAlertRules(projectId => $projectId);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling DataApi->getMetrics: $@\n";
+ warn "Exception when calling AlertsApi->getAlertRules: $@\n";
}
-
+
from __future__ import print_statement
import time
import openapi_client
@@ -5979,29 +6427,25 @@ Usage and SDK Samples
# openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer'
# Create an instance of the API class
-api_instance = openapi_client.DataApi()
-projectId = projectId_example # String | (optional) (default to null)
-name = name_example # String | (optional) (default to null)
-version = 56 # Integer | (optional) (default to null)
+api_instance = openapi_client.AlertsApi()
+projectId = projectId_example # String | (default to null)
try:
- # Get a list of metrics in a project
- api_response = api_instance.get_metrics(projectId=projectId, name=name, version=version)
+ # List all alert rules for a project
+ api_response = api_instance.get_alert_rules(projectId)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DataApi->getMetrics: %s\n" % e)
+ print("Exception when calling AlertsApi->getAlertRules: %s\n" % e)
-
- extern crate DataApi;
+
+ extern crate AlertsApi;
pub fn main() {
let projectId = projectId_example; // String
- let name = name_example; // String
- let version = 56; // Integer
- let mut context = DataApi::Context::default();
- let result = client.getMetrics(projectId, name, version, &context).wait();
+ let mut context = AlertsApi::Context::default();
+ let result = client.getAlertRules(projectId, &context).wait();
println!("{:?}", result);
}
@@ -6016,38 +6460,17 @@ Scopes
Parameters
-
-
-
-
- Query parameters
+ Path parameters
-
- Name
- Description
-
- projectId
-
-
-
-
-
-
-
- String
-
-
-
-
-
-
-
-
- name
+
+ Name
+ Description
+
+ projectId*
-
+
@@ -6055,51 +6478,38 @@ Parameters
+
+ Required
+
- version
-
+
-
-
-
-
- Integer
-
-
- (int32)
-
-
-
-
-
-
-
Responses
-
-
+
+
-
+
-
-
-
+
+
+
-
+
-
-
+
+
+ Data
+
+
- listCoins
- List coins
+ executeSQL
+ Execute SQL
- Get a list of coins in a project.
+ Execute SQL in a project. Go to "Data Studio" -> "SQL Editor", write your query and then click "Export as cURL"
+
+![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(102).png)
+
+Find more: https://docs.sentio.xyz/reference/data#sql-api
- /api/v1/insights/{owner}/{slug}/coins
+ /api/v1/analytics/{owner}/{slug}/sql/execute
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/insights/{owner}/{slug}/coins?projectId=projectId_example&version=56&limit=56&offset=56&searchQuery=searchQuery_example"
+ -H "Content-Type: application/json" \
+ "https://app.sentio.xyz/api/v1/analytics/{owner}/{slug}/sql/execute" \
+ -d ''
-
+
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
@@ -6223,19 +6642,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 |
- Integer version = 56; // Integer |
- Integer limit = 56; // Integer |
- Integer offset = 56; // Integer |
- String searchQuery = searchQuery_example; // String |
+ String owner = owner_example; // String | username or organization name
+ String slug = slug_example; // String | project slug
+ AnalyticServiceAnalyticServiceExecuteSQLBody body = ; // AnalyticServiceAnalyticServiceExecuteSQLBody |
try {
- insights_service.ListCoinsResponse result = apiInstance.listCoins(owner, slug, projectId, version, limit, offset, searchQuery);
+ analytic_service.SyncExecuteSQLResponse result = apiInstance.executeSQL(owner, slug, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#listCoins");
+ System.err.println("Exception when calling DataApi#executeSQL");
e.printStackTrace();
}
}
@@ -6243,58 +6658,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 Integer version = new Integer(); // Integer |
-final Integer limit = new Integer(); // Integer |
-final Integer offset = new Integer(); // Integer |
-final String searchQuery = new String(); // String |
+final String owner = new String(); // String | username or organization name
+final String slug = new String(); // String | project slug
+final AnalyticServiceAnalyticServiceExecuteSQLBody body = new AnalyticServiceAnalyticServiceExecuteSQLBody(); // AnalyticServiceAnalyticServiceExecuteSQLBody |
try {
- final result = await api_instance.listCoins(owner, slug, projectId, version, limit, offset, searchQuery);
+ final result = await api_instance.executeSQL(owner, slug, body);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->listCoins: $e\n');
+ print('Exception when calling DefaultApi->executeSQL: $e\n');
}
-
+
import org.openapitools.client.api.DataApi;
public class DataApiExample {
public static void main(String[] args) {
DataApi apiInstance = new DataApi();
- String owner = owner_example; // String |
- String slug = slug_example; // String |
- String projectId = projectId_example; // String |
- Integer version = 56; // Integer |
- Integer limit = 56; // Integer |
- Integer offset = 56; // Integer |
- String searchQuery = searchQuery_example; // String |
+ String owner = owner_example; // String | username or organization name
+ String slug = slug_example; // String | project slug
+ AnalyticServiceAnalyticServiceExecuteSQLBody body = ; // AnalyticServiceAnalyticServiceExecuteSQLBody |
try {
- insights_service.ListCoinsResponse result = apiInstance.listCoins(owner, slug, projectId, version, limit, offset, searchQuery);
+ analytic_service.SyncExecuteSQLResponse result = apiInstance.executeSQL(owner, slug, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#listCoins");
+ System.err.println("Exception when calling DataApi#executeSQL");
e.printStackTrace();
}
}
}
-
+
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
@@ -6305,23 +6712,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)
-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)
+String *owner = owner_example; // username or organization name (default to null)
+String *slug = slug_example; // project slug (default to null)
+AnalyticServiceAnalyticServiceExecuteSQLBody *body = ; //
-// List coins
-[apiInstance listCoinsWith:owner
+// Execute SQL
+[apiInstance executeSQLWith:owner
slug:slug
- projectId:projectId
- version:version
- limit:limit
- offset:offset
- searchQuery:searchQuery
- completionHandler: ^(insights_service.ListCoinsResponse output, NSError* error) {
+ body:body
+ completionHandler: ^(analytic_service.SyncExecuteSQLResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -6332,7 +6731,7 @@ Usage and SDK Samples
-
+
var SentioApi = require('sentio_api');
var defaultClient = SentioApi.ApiClient.instance;
@@ -6344,15 +6743,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 = {
- 'projectId': projectId_example, // {String}
- 'version': 56, // {Integer}
- 'limit': 56, // {Integer}
- 'offset': 56, // {Integer}
- 'searchQuery': searchQuery_example // {String}
-};
+var owner = owner_example; // {String} username or organization name
+var slug = slug_example; // {String} project slug
+var body = ; // {AnalyticServiceAnalyticServiceExecuteSQLBody}
var callback = function(error, data, response) {
if (error) {
@@ -6361,14 +6754,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.listCoins(owner, slug, opts, callback);
+api.executeSQL(owner, slug, body, callback);
-
-
+
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
@@ -6377,7 +6770,7 @@ Usage and SDK Samples
namespace Example
{
- public class listCoinsExample
+ public class executeSQLExample
{
public void main()
{
@@ -6388,20 +6781,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 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)
+ var owner = owner_example; // String | username or organization name (default to null)
+ var slug = slug_example; // String | project slug (default to null)
+ var body = new AnalyticServiceAnalyticServiceExecuteSQLBody(); // AnalyticServiceAnalyticServiceExecuteSQLBody |
try {
- // List coins
- insights_service.ListCoinsResponse result = apiInstance.listCoins(owner, slug, projectId, version, limit, offset, searchQuery);
+ // Execute SQL
+ analytic_service.SyncExecuteSQLResponse result = apiInstance.executeSQL(owner, slug, body);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling DataApi.listCoins: " + e.Message );
+ Debug.Print("Exception when calling DataApi.executeSQL: " + e.Message );
}
}
}
@@ -6409,7 +6798,7 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
@@ -6420,24 +6809,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 |
-$version = 56; // Integer |
-$limit = 56; // Integer |
-$offset = 56; // Integer |
-$searchQuery = searchQuery_example; // String |
+$owner = owner_example; // String | username or organization name
+$slug = slug_example; // String | project slug
+$body = ; // AnalyticServiceAnalyticServiceExecuteSQLBody |
try {
- $result = $api_instance->listCoins($owner, $slug, $projectId, $version, $limit, $offset, $searchQuery);
+ $result = $api_instance->executeSQL($owner, $slug, $body);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling DataApi->listCoins: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling DataApi->executeSQL: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DataApi;
@@ -6449,24 +6834,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 $version = 56; # Integer |
-my $limit = 56; # Integer |
-my $offset = 56; # Integer |
-my $searchQuery = searchQuery_example; # String |
+my $owner = owner_example; # String | username or organization name
+my $slug = slug_example; # String | project slug
+my $body = WWW::OPenAPIClient::Object::AnalyticServiceAnalyticServiceExecuteSQLBody->new(); # AnalyticServiceAnalyticServiceExecuteSQLBody |
eval {
- my $result = $api_instance->listCoins(owner => $owner, slug => $slug, projectId => $projectId, version => $version, limit => $limit, offset => $offset, searchQuery => $searchQuery);
+ my $result = $api_instance->executeSQL(owner => $owner, slug => $slug, body => $body);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling DataApi->listCoins: $@\n";
+ warn "Exception when calling DataApi->executeSQL: $@\n";
}
-
+
from __future__ import print_statement
import time
import openapi_client
@@ -6480,36 +6861,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)
-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)
+owner = owner_example # String | username or organization name (default to null)
+slug = slug_example # String | project slug (default to null)
+body = # AnalyticServiceAnalyticServiceExecuteSQLBody |
try:
- # List coins
- api_response = api_instance.list_coins(owner, slug, projectId=projectId, version=version, limit=limit, offset=offset, searchQuery=searchQuery)
+ # Execute SQL
+ api_response = api_instance.execute_sql(owner, slug, body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DataApi->listCoins: %s\n" % e)
+ print("Exception when calling DataApi->executeSQL: %s\n" % e)
-
+
extern crate DataApi;
pub fn main() {
let owner = owner_example; // String
let slug = slug_example; // String
- let projectId = projectId_example; // String
- let version = 56; // Integer
- let limit = 56; // Integer
- let offset = 56; // Integer
- let searchQuery = searchQuery_example; // String
+ let body = ; // AnalyticServiceAnalyticServiceExecuteSQLBody
let mut context = DataApi::Context::default();
- let result = client.listCoins(owner, slug, projectId, version, limit, offset, searchQuery, &context).wait();
+ let result = client.executeSQL(owner, slug, body, &context).wait();
println!("{:?}", result);
}
@@ -6534,13 +6907,16 @@ Parameters
-
+
String
+
+username or organization name
+
Required
@@ -6554,13 +6930,16 @@ Parameters
-
+
String
+
+project slug
+
Required
@@ -6573,128 +6952,75 @@ Parameters
-
-
- Query parameters
+ Body parameters
Name
Description
- projectId
+ body *
+
+
+
- searchQuery
-
-
-
-
-
-
-
- String
-
+
-
-
-
-
-
-
Responses
-
-
+
+
-
+
-
-
-
+
+
+
-
+
-
-
+
+
- listCoins2
- List coins
+ getMetrics
+ Get a list of metrics in a project
- Get a list of coins in a project.
+
- /api/v1/insights/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/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/metrics?projectId=projectId_example&name=name_example&version=56"
-
+
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
@@ -6818,19 +7144,15 @@ 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 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.listCoins2(projectOwner, projectSlug, 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#listCoins2");
+ System.err.println("Exception when calling DataApi#getMetrics");
e.printStackTrace();
}
}
@@ -6838,58 +7160,50 @@ 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 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.listCoins2(projectOwner, projectSlug, projectId, version, limit, offset, searchQuery);
+ final result = await api_instance.getMetrics(projectId, name, version);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->listCoins2: $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 projectOwner = projectOwner_example; // String |
- String projectSlug = projectSlug_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.listCoins2(projectOwner, projectSlug, 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#listCoins2");
+ System.err.println("Exception when calling DataApi#getMetrics");
e.printStackTrace();
}
}
}
-
+
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
@@ -6900,23 +7214,15 @@ 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 *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 listCoins2With:projectOwner
- projectSlug:projectSlug
- 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);
}
@@ -6927,7 +7233,7 @@ Usage and SDK Samples
-
+
var SentioApi = require('sentio_api');
var defaultClient = SentioApi.ApiClient.instance;
@@ -6940,13 +7246,9 @@ Usage and SDK Samples
// Create an instance of the API class
var api = new SentioApi.DataApi()
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}
+ 'name': name_example, // {String}
+ 'version': 56 // {Integer}
};
var callback = function(error, data, response) {
@@ -6956,14 +7258,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.listCoins2(opts, callback);
+api.getMetrics(opts, callback);
-
-
+
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
@@ -6972,7 +7274,7 @@ Usage and SDK Samples
namespace Example
{
- public class listCoins2Example
+ public class getMetricsExample
{
public void main()
{
@@ -6983,20 +7285,16 @@ 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 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.listCoins2(projectOwner, projectSlug, 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.listCoins2: " + e.Message );
+ Debug.Print("Exception when calling DataApi.getMetrics: " + e.Message );
}
}
}
@@ -7004,7 +7302,7 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
@@ -7015,24 +7313,20 @@ 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 |
$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->listCoins2($projectOwner, $projectSlug, $projectId, $version, $limit, $offset, $searchQuery);
+ $result = $api_instance->getMetrics($projectId, $name, $version);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling DataApi->listCoins2: ', $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;
@@ -7044,24 +7338,20 @@ 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 $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->listCoins2(projectOwner => $projectOwner, projectSlug => $projectSlug, 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->listCoins2: $@\n";
+ warn "Exception when calling DataApi->getMetrics: $@\n";
}
-
+
from __future__ import print_statement
import time
import openapi_client
@@ -7075,36 +7365,28 @@ 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)
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_coins2(projectOwner=projectOwner, projectSlug=projectSlug, 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->listCoins2: %s\n" % e)
+ print("Exception when calling DataApi->getMetrics: %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 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.listCoins2(projectOwner, projectSlug, projectId, version, limit, offset, searchQuery, &context).wait();
+ let result = client.getMetrics(projectId, name, version, &context).wait();
println!("{:?}", result);
}
@@ -7129,28 +7411,11 @@ Parameters
Name
Description
- projectOwner
-
-
-
-
-
-
-
- String
-
-
-
-
-
-
-
-
- projectSlug
+ projectId
-
+
@@ -7163,11 +7428,11 @@ Parameters
- projectId
+ name
-
+
@@ -7184,47 +7449,7 @@ Parameters
-
-
-
-
- Integer
-
-
- (int32)
-
-
-
-
-
-
-
-
- limit
-
-
-
-
-
-
-
- Integer
-
-
- (int32)
-
-
-
-
-
-
-
-
- offset
-
-
-
-
+
@@ -7238,45 +7463,28 @@ Parameters
-
-
- searchQuery
-
-
-
-
-
-
-
- String
-
-
-
-
-
-
Responses
-
-
+
+
-
+
-
-
-
+
+
+
-
+
-
-
+
+
- query
- Insight Query
+ listCoins
+ 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/{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 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/{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.*;
@@ -7402,15 +7608,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 owner = owner_example; // String |
+ String slug = slug_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.listCoins(owner, slug, 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#listCoins");
e.printStackTrace();
}
}
@@ -7418,50 +7628,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 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 |
+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.listCoins(owner, slug, projectId, version, limit, offset, searchQuery);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->query: $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 owner = owner_example; // String | username or organization name
- String slug = slug_example; // String | project slug
- InsightsServiceInsightsServiceQueryBody body = ; // InsightsServiceInsightsServiceQueryBody |
+ String owner = owner_example; // String |
+ String slug = slug_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.listCoins(owner, slug, 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#listCoins");
e.printStackTrace();
}
}
}
-
+
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
@@ -7472,15 +7690,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 = ; //
-
-// Insight Query
-[apiInstance queryWith:owner
- slug:slug
- body:body
- completionHandler: ^(insights_service.QueryResponse output, NSError* error) {
+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)
+Integer *offset = 56; // (optional) (default to null)
+String *searchQuery = searchQuery_example; // (optional) (default to null)
+
+// List coins
+[apiInstance listCoinsWith:owner
+ slug:slug
+ projectId:projectId
+ version:version
+ limit:limit
+ offset:offset
+ searchQuery:searchQuery
+ completionHandler: ^(insights_service.ListCoinsResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -7491,7 +7717,7 @@ Usage and SDK Samples
-
+
var SentioApi = require('sentio_api');
var defaultClient = SentioApi.ApiClient.instance;
@@ -7503,9 +7729,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 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}
+};
var callback = function(error, data, response) {
if (error) {
@@ -7514,14 +7746,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.query(owner, slug, body, callback);
+api.listCoins(owner, slug, opts, callback);
-
-
+
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
@@ -7530,7 +7762,7 @@ Usage and SDK Samples
namespace Example
{
- public class queryExample
+ public class listCoinsExample
{
public void main()
{
@@ -7541,16 +7773,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 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)
+ 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.listCoins(owner, slug, 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.listCoins: " + e.Message );
}
}
}
@@ -7558,7 +7794,7 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
@@ -7569,20 +7805,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 |
+$owner = owner_example; // String |
+$slug = slug_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->listCoins($owner, $slug, $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->listCoins: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DataApi;
@@ -7594,20 +7834,24 @@ Usage and SDK Samples
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DataApi->new();
-my $owner = owner_example; # String | username or organization name
-my $slug = slug_example; # String | project slug
-my $body = WWW::OPenAPIClient::Object::InsightsServiceInsightsServiceQueryBody->new(); # InsightsServiceInsightsServiceQueryBody |
+my $owner = owner_example; # String |
+my $slug = slug_example; # String |
+my $projectId = projectId_example; # String |
+my $version = 56; # Integer |
+my $limit = 56; # Integer |
+my $offset = 56; # Integer |
+my $searchQuery = searchQuery_example; # String |
eval {
- my $result = $api_instance->query(owner => $owner, slug => $slug, body => $body);
+ my $result = $api_instance->listCoins(owner => $owner, slug => $slug, 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->listCoins: $@\n";
}
-
+
from __future__ import print_statement
import time
import openapi_client
@@ -7621,28 +7865,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 |
+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)
+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_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->query: %s\n" % e)
+ print("Exception when calling DataApi->listCoins: %s\n" % e)
-
+
extern crate DataApi;
pub fn main() {
let owner = owner_example; // String
let slug = slug_example; // String
- let body = ; // InsightsServiceInsightsServiceQueryBody
+ 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.listCoins(owner, slug, projectId, version, limit, offset, searchQuery, &context).wait();
println!("{:?}", result);
}
@@ -7667,16 +7919,13 @@ Parameters
-
+
String
-
-username or organization name
-
Required
@@ -7690,16 +7939,13 @@ Parameters
-
+
String
-
-project slug
-
Required
@@ -7712,100 +7958,153 @@ Parameters
- Body parameters
+
+
+ Query parameters
Name
Description
- body *
+ projectId
-
-
-
+
+
+
+
+ String
+
+
+
+
+
-
+ version
+
+
+
+
+
+ Integer
+
+
+ (int32)
+
- Responses
-
-
-
+
+
+
+
+
+ limit
+
-
- -
- Schema
-
+
+
+
+
+ Integer
+
+
+ (int32)
+
+
+
+
+
+
+ offset
+
-
+
+
+
+
+ Integer
+
+
+ (int32)
+
-
-
-
-
+
+
+
+ -
+ Schema
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
+
+
- queryInstant
- Metric instant queries
+ listCoins2
+ List coins
-
+ Get a list of coins in a project.
- /api/v1/metrics/{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/metrics/{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.*;
@@ -7906,15 +8203,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
- MetricsServiceObservabilityServiceQueryBody body = ; // MetricsServiceObservabilityServiceQueryBody |
+ 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 {
- metrics_service.QueryValueResponse result = apiInstance.queryInstant(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#queryInstant");
+ System.err.println("Exception when calling DataApi#listCoins2");
e.printStackTrace();
}
}
@@ -7922,50 +8223,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 MetricsServiceObservabilityServiceQueryBody body = new MetricsServiceObservabilityServiceQueryBody(); // MetricsServiceObservabilityServiceQueryBody |
+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.queryInstant(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->queryInstant: $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
- MetricsServiceObservabilityServiceQueryBody body = ; // MetricsServiceObservabilityServiceQueryBody |
+ 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 {
- metrics_service.QueryValueResponse result = apiInstance.queryInstant(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#queryInstant");
+ System.err.println("Exception when calling DataApi#listCoins2");
e.printStackTrace();
}
}
}
-
+
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
@@ -7976,15 +8285,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)
-MetricsServiceObservabilityServiceQueryBody *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)
-// Metric instant queries
-[apiInstance queryInstantWith:owner
- slug:slug
- body:body
- completionHandler: ^(metrics_service.QueryValueResponse 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);
}
@@ -7995,7 +8312,7 @@ Usage and SDK Samples
-
+
var SentioApi = require('sentio_api');
var defaultClient = SentioApi.ApiClient.instance;
@@ -8007,9 +8324,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 = ; // {MetricsServiceObservabilityServiceQueryBody}
+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) {
@@ -8018,14 +8341,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.queryInstant(owner, slug, body, callback);
+api.listCoins2(opts, callback);
-
-
+
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
@@ -8034,7 +8357,7 @@ Usage and SDK Samples
namespace Example
{
- public class queryInstantExample
+ public class listCoins2Example
{
public void main()
{
@@ -8045,16 +8368,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 MetricsServiceObservabilityServiceQueryBody(); // MetricsServiceObservabilityServiceQueryBody |
+ 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 {
- // Metric instant queries
- metrics_service.QueryValueResponse result = apiInstance.queryInstant(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.queryInstant: " + e.Message );
+ Debug.Print("Exception when calling DataApi.listCoins2: " + e.Message );
}
}
}
@@ -8062,7 +8389,7 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
@@ -8073,20 +8400,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 = ; // MetricsServiceObservabilityServiceQueryBody |
+$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->queryInstant($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->queryInstant: ', $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;
@@ -8098,20 +8429,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::MetricsServiceObservabilityServiceQueryBody->new(); # MetricsServiceObservabilityServiceQueryBody |
-
+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->queryInstant(owner => $owner, slug => $slug, body => $body);
+ my $result = $api_instance->listCoins2(projectOwner => $projectOwner, projectSlug => $projectSlug, projectId => $projectId, version => $version, limit => $limit, offset => $offset, searchQuery => $searchQuery);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling DataApi->queryInstant: $@\n";
+ warn "Exception when calling DataApi->listCoins2: $@\n";
}
-
+
from __future__ import print_statement
import time
import openapi_client
@@ -8125,28 +8460,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 = # MetricsServiceObservabilityServiceQueryBody |
+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:
- # Metric instant queries
- api_response = api_instance.query_instant(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->queryInstant: %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 = ; // MetricsServiceObservabilityServiceQueryBody
+ 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.queryInstant(owner, slug, body, &context).wait();
+ let result = client.listCoins2(projectOwner, projectSlug, projectId, version, limit, offset, searchQuery, &context).wait();
println!("{:?}", result);
}
@@ -8161,130 +8504,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
-
-
+
+
-
+
-
-
-
+
+
+
-
+
-
-
+
+
- queryLog
- Query event logs
+ query
+ Insight Query
-
+ Query for metrics,event logs and coin prices in a project.
- /api/v1/eventlogs/{owner}/{slug}
+ /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/eventlogs/{owner}/{slug}" \
+ "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.*;
@@ -8410,15 +8787,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
+ InsightsServiceInsightsServiceQueryBody body = ; // InsightsServiceInsightsServiceQueryBody |
try {
- analytic_service.LogQueryResponse result = apiInstance.queryLog(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#queryLog");
+ System.err.println("Exception when calling DataApi#query");
e.printStackTrace();
}
}
@@ -8426,50 +8803,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 InsightsServiceInsightsServiceQueryBody body = new InsightsServiceInsightsServiceQueryBody(); // InsightsServiceInsightsServiceQueryBody |
try {
- final result = await api_instance.queryLog(owner, slug, body);
+ final result = await api_instance.query(owner, slug, body);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->queryLog: $e\n');
+ print('Exception when calling DefaultApi->query: $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
+ InsightsServiceInsightsServiceQueryBody body = ; // InsightsServiceInsightsServiceQueryBody |
try {
- analytic_service.LogQueryResponse result = apiInstance.queryLog(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#queryLog");
+ System.err.println("Exception when calling DataApi#query");
e.printStackTrace();
}
}
}
-
+
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
@@ -8480,15 +8857,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)
+InsightsServiceInsightsServiceQueryBody *body = ; //
-// Query event logs
-[apiInstance queryLogWith:owner
+// Insight Query
+[apiInstance queryWith:owner
slug:slug
body:body
- completionHandler: ^(analytic_service.LogQueryResponse output, NSError* error) {
+ completionHandler: ^(insights_service.QueryResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -8499,7 +8876,7 @@ Usage and SDK Samples
-
+
var SentioApi = require('sentio_api');
var defaultClient = SentioApi.ApiClient.instance;
@@ -8511,9 +8888,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 = ; // {InsightsServiceInsightsServiceQueryBody}
var callback = function(error, data, response) {
if (error) {
@@ -8522,14 +8899,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.queryLog(owner, slug, body, callback);
+api.query(owner, slug, body, callback);
-
-
+
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
@@ -8538,7 +8915,7 @@ Usage and SDK Samples
namespace Example
{
- public class queryLogExample
+ public class queryExample
{
public void main()
{
@@ -8549,16 +8926,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 InsightsServiceInsightsServiceQueryBody(); // InsightsServiceInsightsServiceQueryBody |
try {
- // Query event logs
- analytic_service.LogQueryResponse result = apiInstance.queryLog(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.queryLog: " + e.Message );
+ Debug.Print("Exception when calling DataApi.query: " + e.Message );
}
}
}
@@ -8566,7 +8943,7 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
@@ -8577,20 +8954,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 = ; // InsightsServiceInsightsServiceQueryBody |
try {
- $result = $api_instance->queryLog($owner, $slug, $body);
+ $result = $api_instance->query($owner, $slug, $body);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling DataApi->queryLog: ', $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;
@@ -8602,20 +8979,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::InsightsServiceInsightsServiceQueryBody->new(); # InsightsServiceInsightsServiceQueryBody |
eval {
- my $result = $api_instance->queryLog(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->queryLog: $@\n";
+ warn "Exception when calling DataApi->query: $@\n";
}
-
+
from __future__ import print_statement
import time
import openapi_client
@@ -8629,28 +9006,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 = # InsightsServiceInsightsServiceQueryBody |
try:
- # Query event logs
- api_response = api_instance.query_log(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->queryLog: %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 = ; // AnalyticServiceSearchServiceQueryLogBody
+ let body = ; // InsightsServiceInsightsServiceQueryBody
let mut context = DataApi::Context::default();
- let result = client.queryLog(owner, slug, body, &context).wait();
+ let result = client.query(owner, slug, body, &context).wait();
println!("{:?}", result);
}
@@ -8675,13 +9052,16 @@ Parameters
-
+
String
+
+username or organization name
+
Required
@@ -8695,13 +9075,16 @@ Parameters
-
+
String
+
+project slug
+
Required
@@ -8729,7 +9112,7 @@ Parameters
"content" : {
"application/json" : {
"schema" : {
- "$ref" : "#/components/schemas/analytic_service.SearchService.QueryLogBody"
+ "$ref" : "#/components/schemas/insights_service.InsightsService.QueryBody"
}
}
},
@@ -8752,12 +9135,12 @@ Parameters
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
- var result = $('#d2e199_queryLog_body');
+ var result = $('#d2e199_query_body');
result.empty();
result.append(view.render());
});
-
+
@@ -8766,23 +9149,23 @@ Parameters
Responses
-
-
+
+
-
+
-
-
-
+
+
+
-
+
-
-
+
+
- queryLog2
- Query event logs
+ queryInstant
+ Metric instant queries
@@ -8857,35 +9240,37 @@ queryLog2
- /api/v1/eventlogs/{owner}/{slug}/query
+ /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 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/metrics/{owner}/{slug}/query" \
+ -d ''
-
+
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
@@ -8906,31 +9291,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 query = query_example; // String |
- String timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; // String |
- Integer timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; // Integer |
- String timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; // String |
- String timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; // String |
- String timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; // String |
- Integer timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; // Integer |
- String timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; // String |
- String timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; // String |
- String timeRangePeriodstep = timeRangePeriodstep_example; // String |
- Double timeRangePeriodintervalPeriodvalue = 1.2; // Double |
- String timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; // String |
- String timeRangePeriodtimezone = timeRangePeriodtimezone_example; // String |
- Integer limit = 56; // Integer |
- Integer offset = 56; // Integer |
- Integer version = 56; // Integer |
+ String owner = owner_example; // String | username or organization name
+ String slug = slug_example; // String | project slug
+ MetricsServiceObservabilityServiceQueryBody body = ; // MetricsServiceObservabilityServiceQueryBody |
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);
+ metrics_service.QueryValueResponse result = apiInstance.queryInstant(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#queryInstant");
e.printStackTrace();
}
}
@@ -8938,82 +9307,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 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 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.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.queryInstant(owner, slug, body);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->queryLog2: $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 |
- String projectId = projectId_example; // String |
- String query = query_example; // String |
- String timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; // String |
- Integer timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; // Integer |
- String timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; // String |
- String timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; // String |
- String timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; // String |
- Integer timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; // Integer |
- String timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; // String |
- String timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; // String |
- String timeRangePeriodstep = timeRangePeriodstep_example; // String |
- Double timeRangePeriodintervalPeriodvalue = 1.2; // Double |
- String timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; // String |
- String timeRangePeriodtimezone = timeRangePeriodtimezone_example; // String |
- Integer limit = 56; // Integer |
- Integer offset = 56; // Integer |
- Integer version = 56; // Integer |
+ String owner = owner_example; // String | username or organization name
+ String slug = slug_example; // String | project slug
+ MetricsServiceObservabilityServiceQueryBody body = ; // MetricsServiceObservabilityServiceQueryBody |
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);
+ metrics_service.QueryValueResponse result = apiInstance.queryInstant(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#queryInstant");
e.printStackTrace();
}
}
}
-
+
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
@@ -9024,47 +9361,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 *query = query_example; // (optional) (default to null)
-String *timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; // (optional) (default to null)
-Integer *timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; // (optional) (default to null)
-String *timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; // (optional) (default to null)
-String *timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; // (optional) (default to null)
-String *timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; // (optional) (default to null)
-Integer *timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; // (optional) (default to null)
-String *timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; // (optional) (default to null)
-String *timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; // (optional) (default to null)
-String *timeRangePeriodstep = timeRangePeriodstep_example; // (optional) (default to null)
-Double *timeRangePeriodintervalPeriodvalue = 1.2; // (optional) (default to null)
-String *timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; // (optional) (default to null)
-String *timeRangePeriodtimezone = timeRangePeriodtimezone_example; // (optional) (default to null)
-Integer *limit = 56; // (optional) (default to null)
-Integer *offset = 56; // (optional) (default to null)
-Integer *version = 56; // (optional) (default to null)
+String *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 queryLog2With:owner
+// Metric instant queries
+[apiInstance queryInstantWith:owner
slug:slug
- projectId:projectId
- query:query
- timeRangePeriodstartPeriodrelativeTimePeriodunit:timeRangePeriodstartPeriodrelativeTimePeriodunit
- timeRangePeriodstartPeriodrelativeTimePeriodvalue:timeRangePeriodstartPeriodrelativeTimePeriodvalue
- timeRangePeriodstartPeriodrelativeTimePeriodalign:timeRangePeriodstartPeriodrelativeTimePeriodalign
- timeRangePeriodstartPeriodabsoluteTime:timeRangePeriodstartPeriodabsoluteTime
- timeRangePeriodendPeriodrelativeTimePeriodunit:timeRangePeriodendPeriodrelativeTimePeriodunit
- timeRangePeriodendPeriodrelativeTimePeriodvalue:timeRangePeriodendPeriodrelativeTimePeriodvalue
- timeRangePeriodendPeriodrelativeTimePeriodalign:timeRangePeriodendPeriodrelativeTimePeriodalign
- timeRangePeriodendPeriodabsoluteTime:timeRangePeriodendPeriodabsoluteTime
- timeRangePeriodstep:timeRangePeriodstep
- timeRangePeriodintervalPeriodvalue:timeRangePeriodintervalPeriodvalue
- timeRangePeriodintervalPeriodunit:timeRangePeriodintervalPeriodunit
- timeRangePeriodtimezone:timeRangePeriodtimezone
- limit:limit
- offset:offset
- version:version
- completionHandler: ^(analytic_service.LogQueryResponse output, NSError* error) {
+ body:body
+ completionHandler: ^(metrics_service.QueryValueResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -9075,7 +9380,7 @@ Usage and SDK Samples
-
+
var SentioApi = require('sentio_api');
var defaultClient = SentioApi.ApiClient.instance;
@@ -9087,27 +9392,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 = {
- '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 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) {
@@ -9116,14 +9403,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.queryLog2(owner, slug, opts, callback);
+api.queryInstant(owner, slug, body, callback);
-
-
+
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
@@ -9132,7 +9419,7 @@ Usage and SDK Samples
namespace Example
{
- public class queryLog2Example
+ public class queryInstantExample
{
public void main()
{
@@ -9143,32 +9430,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 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 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.queryLog2(owner, slug, projectId, query, timeRangePeriodstartPeriodrelativeTimePeriodunit, timeRangePeriodstartPeriodrelativeTimePeriodvalue, timeRangePeriodstartPeriodrelativeTimePeriodalign, timeRangePeriodstartPeriodabsoluteTime, timeRangePeriodendPeriodrelativeTimePeriodunit, timeRangePeriodendPeriodrelativeTimePeriodvalue, timeRangePeriodendPeriodrelativeTimePeriodalign, timeRangePeriodendPeriodabsoluteTime, timeRangePeriodstep, timeRangePeriodintervalPeriodvalue, timeRangePeriodintervalPeriodunit, timeRangePeriodtimezone, limit, offset, version);
+ // Metric instant queries
+ metrics_service.QueryValueResponse result = apiInstance.queryInstant(owner, slug, body);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling DataApi.queryLog2: " + e.Message );
+ Debug.Print("Exception when calling DataApi.queryInstant: " + e.Message );
}
}
}
@@ -9176,7 +9447,7 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
@@ -9187,36 +9458,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 |
-$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 |
+$owner = owner_example; // String | username or organization name
+$slug = slug_example; // String | project slug
+$body = ; // MetricsServiceObservabilityServiceQueryBody |
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->queryInstant($owner, $slug, $body);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling DataApi->queryLog2: ', $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;
@@ -9228,36 +9483,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 $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 $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->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->queryInstant(owner => $owner, slug => $slug, body => $body);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling DataApi->queryLog2: $@\n";
+ warn "Exception when calling DataApi->queryInstant: $@\n";
}
-
+
from __future__ import print_statement
import time
import openapi_client
@@ -9271,60 +9510,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)
-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)
+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_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)
+ # Metric instant queries
+ api_response = api_instance.query_instant(owner, slug, body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DataApi->queryLog2: %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 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 = ; // MetricsServiceObservabilityServiceQueryBody
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.queryInstant(owner, slug, body, &context).wait();
println!("{:?}", result);
}
@@ -9349,13 +9556,16 @@ Parameters
-
+
String
+
+username or organization name
+
Required
@@ -9369,13 +9579,16 @@ Parameters
-
+
String
+
+project slug
+
Required
@@ -9388,241 +9601,7521 @@ Parameters
-
-
- Query parameters
+ Body parameters
Name
Description
- projectId
+ body *
+
+
+
- query
-
+
-
-
-
-
- String
-
-
-
-
-
-
+ Responses
+
+
+
- timeRange.start.relativeTime.unit
-
+
+ -
+ Schema
+
-
-
-
-
- String
-
-
-
-
-
-
- timeRange.start.relativeTime.value
-
+
-
-
-
-
- Integer
-
-
- (int32)
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ queryLog
+ Query event logs
+
+
+
+
+
+
+
+ /api/v1/eventlogs/{owner}/{slug}
+
+
Usage and SDK Samples
+
+
+
+
+ curl -X POST \
+-H "api-key: [[apiKey]]" \
+ -H "Accept: application/json" \
+ -H "Content-Type: application/json" \
+ "https://app.sentio.xyz/api/v1/eventlogs/{owner}/{slug}" \
+ -d ''
+
+
+
+ import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.DataApi;
-
-
-
-
- String
-
+import java.io.File;
+import java.util.*;
-
-
+public class DataApiExample {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: ApiKeyAuth
+ ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
+ ApiKeyAuth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //ApiKeyAuth.setApiKeyPrefix("Token");
+
+ // Create an instance of the API class
+ DataApi apiInstance = new DataApi();
+ String owner = owner_example; // String |
+ String slug = slug_example; // String |
+ AnalyticServiceSearchServiceQueryLogBody body = ; // AnalyticServiceSearchServiceQueryLogBody |
+
+ try {
+ analytic_service.LogQueryResponse result = apiInstance.queryLog(owner, slug, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DataApi#queryLog");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+
+ 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 |
+
+try {
+ final result = await api_instance.queryLog(owner, slug, body);
+ print(result);
+} catch (e) {
+ print('Exception when calling DefaultApi->queryLog: $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 |
+
+ try {
+ analytic_service.LogQueryResponse result = apiInstance.queryLog(owner, slug, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DataApi#queryLog");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure API key authorization: (authentication scheme: ApiKeyAuth)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-key"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-key"];
+
+
+// Create an instance of the API class
+DataApi *apiInstance = [[DataApi alloc] init];
+String *owner = owner_example; // (default to null)
+String *slug = slug_example; // (default to null)
+AnalyticServiceSearchServiceQueryLogBody *body = ; //
+
+// Query event logs
+[apiInstance queryLogWith:owner
+ slug:slug
+ body:body
+ completionHandler: ^(analytic_service.LogQueryResponse output, NSError* error) {
+ if (output) {
+ NSLog(@"%@", output);
+ }
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+}];
+
+
+
+
+ var SentioApi = require('sentio_api');
+var defaultClient = SentioApi.ApiClient.instance;
+
+// Configure API key authorization: ApiKeyAuth
+var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
+ApiKeyAuth.apiKey = "YOUR API KEY";
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//ApiKeyAuth.apiKeyPrefix['api-key'] = "Token";
+
+// Create an instance of the API class
+var api = new SentioApi.DataApi()
+var owner = owner_example; // {String}
+var slug = slug_example; // {String}
+var body = ; // {AnalyticServiceSearchServiceQueryLogBody}
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+api.queryLog(owner, slug, body, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class queryLogExample
+ {
+ public void main()
+ {
+ // Configure API key authorization: ApiKeyAuth
+ Configuration.Default.ApiKey.Add("api-key", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
+
+ // Create an instance of the API class
+ var apiInstance = new DataApi();
+ var owner = owner_example; // String | (default to null)
+ var slug = slug_example; // String | (default to null)
+ var body = new AnalyticServiceSearchServiceQueryLogBody(); // AnalyticServiceSearchServiceQueryLogBody |
+
+ try {
+ // Query event logs
+ analytic_service.LogQueryResponse result = apiInstance.queryLog(owner, slug, body);
+ Debug.WriteLine(result);
+ } catch (Exception e) {
+ Debug.Print("Exception when calling DataApi.queryLog: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure API key authorization: ApiKeyAuth
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\DataApi();
+$owner = owner_example; // String |
+$slug = slug_example; // String |
+$body = ; // AnalyticServiceSearchServiceQueryLogBody |
+
+try {
+ $result = $api_instance->queryLog($owner, $slug, $body);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling DataApi->queryLog: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::DataApi;
+
+# Configure API key authorization: ApiKeyAuth
+$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::DataApi->new();
+my $owner = owner_example; # String |
+my $slug = slug_example; # String |
+my $body = WWW::OPenAPIClient::Object::AnalyticServiceSearchServiceQueryLogBody->new(); # AnalyticServiceSearchServiceQueryLogBody |
+
+eval {
+ my $result = $api_instance->queryLog(owner => $owner, slug => $slug, body => $body);
+ print Dumper($result);
+};
+if ($@) {
+ warn "Exception when calling DataApi->queryLog: $@\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)
+body = # AnalyticServiceSearchServiceQueryLogBody |
+
+try:
+ # Query event logs
+ api_response = api_instance.query_log(owner, slug, body)
+ pprint(api_response)
+except ApiException as 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 body = ; // AnalyticServiceSearchServiceQueryLogBody
+
+ let mut context = DataApi::Context::default();
+ let result = client.queryLog(owner, slug, body, &context).wait();
+
+ println!("{:?}", result);
+}
+
+
+
+
+ Scopes
+
+
+
+
+ Parameters
+
+ Path parameters
+
+
+ Name
+ Description
+
+ owner*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+ slug*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+
+
+
+ Body parameters
+
+
+ Name
+ Description
+
+ body *
+
+
+
+
+
+
+
+
+
+
+
+ Responses
+
+
+
+
+
+
+ -
+ Schema
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ queryLog2
+ Query event logs
+
+
+
+
+
+
+
+ /api/v1/eventlogs/{owner}/{slug}/query
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X GET \
+-H "api-key: [[apiKey]]" \
+ -H "Accept: application/json" \
+ "https://app.sentio.xyz/api/v1/eventlogs/{owner}/{slug}/query?projectId=projectId_example&query=query_example&timeRange.start.relativeTime.unit=timeRangePeriodstartPeriodrelativeTimePeriodunit_example&timeRange.start.relativeTime.value=56&timeRange.start.relativeTime.align=timeRangePeriodstartPeriodrelativeTimePeriodalign_example&timeRange.start.absoluteTime=timeRangePeriodstartPeriodabsoluteTime_example&timeRange.end.relativeTime.unit=timeRangePeriodendPeriodrelativeTimePeriodunit_example&timeRange.end.relativeTime.value=56&timeRange.end.relativeTime.align=timeRangePeriodendPeriodrelativeTimePeriodalign_example&timeRange.end.absoluteTime=timeRangePeriodendPeriodabsoluteTime_example&timeRange.step=timeRangePeriodstep_example&timeRange.interval.value=1.2&timeRange.interval.unit=timeRangePeriodintervalPeriodunit_example&timeRange.timezone=timeRangePeriodtimezone_example&limit=56&offset=56&version=56"
+
+
+
+ import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.DataApi;
+
+import java.io.File;
+import java.util.*;
+
+public class DataApiExample {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: ApiKeyAuth
+ ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
+ ApiKeyAuth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //ApiKeyAuth.setApiKeyPrefix("Token");
+
+ // Create an instance of the API class
+ 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 |
+
+ try {
+ analytic_service.LogQueryResponse result = apiInstance.queryLog2(owner, slug, projectId, query, timeRangePeriodstartPeriodrelativeTimePeriodunit, timeRangePeriodstartPeriodrelativeTimePeriodvalue, timeRangePeriodstartPeriodrelativeTimePeriodalign, timeRangePeriodstartPeriodabsoluteTime, timeRangePeriodendPeriodrelativeTimePeriodunit, timeRangePeriodendPeriodrelativeTimePeriodvalue, timeRangePeriodendPeriodrelativeTimePeriodalign, timeRangePeriodendPeriodabsoluteTime, timeRangePeriodstep, timeRangePeriodintervalPeriodvalue, timeRangePeriodintervalPeriodunit, timeRangePeriodtimezone, limit, offset, version);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DataApi#queryLog2");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+
+ import 'package:openapi/api.dart';
+
+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 |
+
+try {
+ final result = await api_instance.queryLog2(owner, slug, projectId, query, timeRangePeriodstartPeriodrelativeTimePeriodunit, timeRangePeriodstartPeriodrelativeTimePeriodvalue, timeRangePeriodstartPeriodrelativeTimePeriodalign, timeRangePeriodstartPeriodabsoluteTime, timeRangePeriodendPeriodrelativeTimePeriodunit, timeRangePeriodendPeriodrelativeTimePeriodvalue, timeRangePeriodendPeriodrelativeTimePeriodalign, timeRangePeriodendPeriodabsoluteTime, timeRangePeriodstep, timeRangePeriodintervalPeriodvalue, timeRangePeriodintervalPeriodunit, timeRangePeriodtimezone, limit, offset, version);
+ print(result);
+} catch (e) {
+ print('Exception when calling DefaultApi->queryLog2: $e\n');
+}
+
+
+
+
+
+ import org.openapitools.client.api.DataApi;
+
+public class DataApiExample {
+ public static void main(String[] args) {
+ DataApi apiInstance = new DataApi();
+ String owner = owner_example; // String |
+ String slug = slug_example; // String |
+ String projectId = projectId_example; // String |
+ String query = query_example; // String |
+ String timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; // String |
+ Integer timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; // Integer |
+ String timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; // String |
+ String timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; // String |
+ String timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; // String |
+ Integer timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; // Integer |
+ String timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; // String |
+ String timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; // String |
+ String timeRangePeriodstep = timeRangePeriodstep_example; // String |
+ Double timeRangePeriodintervalPeriodvalue = 1.2; // Double |
+ String timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; // String |
+ String timeRangePeriodtimezone = timeRangePeriodtimezone_example; // String |
+ Integer limit = 56; // Integer |
+ Integer offset = 56; // Integer |
+ Integer version = 56; // Integer |
+
+ try {
+ analytic_service.LogQueryResponse result = apiInstance.queryLog2(owner, slug, projectId, query, timeRangePeriodstartPeriodrelativeTimePeriodunit, timeRangePeriodstartPeriodrelativeTimePeriodvalue, timeRangePeriodstartPeriodrelativeTimePeriodalign, timeRangePeriodstartPeriodabsoluteTime, timeRangePeriodendPeriodrelativeTimePeriodunit, timeRangePeriodendPeriodrelativeTimePeriodvalue, timeRangePeriodendPeriodrelativeTimePeriodalign, timeRangePeriodendPeriodabsoluteTime, timeRangePeriodstep, timeRangePeriodintervalPeriodvalue, timeRangePeriodintervalPeriodunit, timeRangePeriodtimezone, limit, offset, version);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DataApi#queryLog2");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure API key authorization: (authentication scheme: ApiKeyAuth)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-key"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-key"];
+
+
+// Create an instance of the API class
+DataApi *apiInstance = [[DataApi alloc] init];
+String *owner = owner_example; // (default to null)
+String *slug = slug_example; // (default to null)
+String *projectId = projectId_example; // (optional) (default to null)
+String *query = query_example; // (optional) (default to null)
+String *timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; // (optional) (default to null)
+Integer *timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; // (optional) (default to null)
+String *timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; // (optional) (default to null)
+String *timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; // (optional) (default to null)
+String *timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; // (optional) (default to null)
+Integer *timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; // (optional) (default to null)
+String *timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; // (optional) (default to null)
+String *timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; // (optional) (default to null)
+String *timeRangePeriodstep = timeRangePeriodstep_example; // (optional) (default to null)
+Double *timeRangePeriodintervalPeriodvalue = 1.2; // (optional) (default to null)
+String *timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; // (optional) (default to null)
+String *timeRangePeriodtimezone = timeRangePeriodtimezone_example; // (optional) (default to null)
+Integer *limit = 56; // (optional) (default to null)
+Integer *offset = 56; // (optional) (default to null)
+Integer *version = 56; // (optional) (default to null)
+
+// Query event logs
+[apiInstance queryLog2With:owner
+ slug:slug
+ projectId:projectId
+ query:query
+ timeRangePeriodstartPeriodrelativeTimePeriodunit:timeRangePeriodstartPeriodrelativeTimePeriodunit
+ timeRangePeriodstartPeriodrelativeTimePeriodvalue:timeRangePeriodstartPeriodrelativeTimePeriodvalue
+ timeRangePeriodstartPeriodrelativeTimePeriodalign:timeRangePeriodstartPeriodrelativeTimePeriodalign
+ timeRangePeriodstartPeriodabsoluteTime:timeRangePeriodstartPeriodabsoluteTime
+ timeRangePeriodendPeriodrelativeTimePeriodunit:timeRangePeriodendPeriodrelativeTimePeriodunit
+ timeRangePeriodendPeriodrelativeTimePeriodvalue:timeRangePeriodendPeriodrelativeTimePeriodvalue
+ timeRangePeriodendPeriodrelativeTimePeriodalign:timeRangePeriodendPeriodrelativeTimePeriodalign
+ timeRangePeriodendPeriodabsoluteTime:timeRangePeriodendPeriodabsoluteTime
+ timeRangePeriodstep:timeRangePeriodstep
+ timeRangePeriodintervalPeriodvalue:timeRangePeriodintervalPeriodvalue
+ timeRangePeriodintervalPeriodunit:timeRangePeriodintervalPeriodunit
+ timeRangePeriodtimezone:timeRangePeriodtimezone
+ limit:limit
+ offset:offset
+ version:version
+ completionHandler: ^(analytic_service.LogQueryResponse output, NSError* error) {
+ if (output) {
+ NSLog(@"%@", output);
+ }
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+}];
+
+
+
+
+ var SentioApi = require('sentio_api');
+var defaultClient = SentioApi.ApiClient.instance;
+
+// Configure API key authorization: ApiKeyAuth
+var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
+ApiKeyAuth.apiKey = "YOUR API KEY";
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//ApiKeyAuth.apiKeyPrefix['api-key'] = "Token";
+
+// Create an instance of the API class
+var api = new SentioApi.DataApi()
+var owner = owner_example; // {String}
+var slug = slug_example; // {String}
+var opts = {
+ 'projectId': projectId_example, // {String}
+ 'query': query_example, // {String}
+ 'timeRangePeriodstartPeriodrelativeTimePeriodunit': timeRangePeriodstartPeriodrelativeTimePeriodunit_example, // {String}
+ 'timeRangePeriodstartPeriodrelativeTimePeriodvalue': 56, // {Integer}
+ 'timeRangePeriodstartPeriodrelativeTimePeriodalign': timeRangePeriodstartPeriodrelativeTimePeriodalign_example, // {String}
+ 'timeRangePeriodstartPeriodabsoluteTime': timeRangePeriodstartPeriodabsoluteTime_example, // {String}
+ 'timeRangePeriodendPeriodrelativeTimePeriodunit': timeRangePeriodendPeriodrelativeTimePeriodunit_example, // {String}
+ 'timeRangePeriodendPeriodrelativeTimePeriodvalue': 56, // {Integer}
+ 'timeRangePeriodendPeriodrelativeTimePeriodalign': timeRangePeriodendPeriodrelativeTimePeriodalign_example, // {String}
+ 'timeRangePeriodendPeriodabsoluteTime': timeRangePeriodendPeriodabsoluteTime_example, // {String}
+ 'timeRangePeriodstep': timeRangePeriodstep_example, // {String}
+ 'timeRangePeriodintervalPeriodvalue': 1.2, // {Double}
+ 'timeRangePeriodintervalPeriodunit': timeRangePeriodintervalPeriodunit_example, // {String}
+ 'timeRangePeriodtimezone': timeRangePeriodtimezone_example, // {String}
+ 'limit': 56, // {Integer}
+ 'offset': 56, // {Integer}
+ 'version': 56 // {Integer}
+};
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+api.queryLog2(owner, slug, opts, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class queryLog2Example
+ {
+ public void main()
+ {
+ // Configure API key authorization: ApiKeyAuth
+ Configuration.Default.ApiKey.Add("api-key", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
+
+ // Create an instance of the API class
+ var apiInstance = new DataApi();
+ var owner = owner_example; // String | (default to null)
+ var slug = slug_example; // String | (default to null)
+ var projectId = projectId_example; // String | (optional) (default to null)
+ var query = query_example; // String | (optional) (default to null)
+ var timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; // String | (optional) (default to null)
+ var timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; // Integer | (optional) (default to null)
+ var timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; // String | (optional) (default to null)
+ var timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; // String | (optional) (default to null)
+ var timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; // String | (optional) (default to null)
+ var timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; // Integer | (optional) (default to null)
+ var timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; // String | (optional) (default to null)
+ var timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; // String | (optional) (default to null)
+ var timeRangePeriodstep = timeRangePeriodstep_example; // String | (optional) (default to null)
+ var timeRangePeriodintervalPeriodvalue = 1.2; // Double | (optional) (default to null)
+ var timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; // String | (optional) (default to null)
+ var timeRangePeriodtimezone = timeRangePeriodtimezone_example; // String | (optional) (default to null)
+ var limit = 56; // Integer | (optional) (default to null)
+ var offset = 56; // Integer | (optional) (default to null)
+ var version = 56; // Integer | (optional) (default to null)
+
+ try {
+ // Query event logs
+ analytic_service.LogQueryResponse result = apiInstance.queryLog2(owner, slug, projectId, query, timeRangePeriodstartPeriodrelativeTimePeriodunit, timeRangePeriodstartPeriodrelativeTimePeriodvalue, timeRangePeriodstartPeriodrelativeTimePeriodalign, timeRangePeriodstartPeriodabsoluteTime, timeRangePeriodendPeriodrelativeTimePeriodunit, timeRangePeriodendPeriodrelativeTimePeriodvalue, timeRangePeriodendPeriodrelativeTimePeriodalign, timeRangePeriodendPeriodabsoluteTime, timeRangePeriodstep, timeRangePeriodintervalPeriodvalue, timeRangePeriodintervalPeriodunit, timeRangePeriodtimezone, limit, offset, version);
+ Debug.WriteLine(result);
+ } catch (Exception e) {
+ Debug.Print("Exception when calling DataApi.queryLog2: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure API key authorization: ApiKeyAuth
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\DataApi();
+$owner = owner_example; // String |
+$slug = slug_example; // String |
+$projectId = projectId_example; // String |
+$query = query_example; // String |
+$timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; // String |
+$timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; // Integer |
+$timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; // String |
+$timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; // String |
+$timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; // String |
+$timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; // Integer |
+$timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; // String |
+$timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; // String |
+$timeRangePeriodstep = timeRangePeriodstep_example; // String |
+$timeRangePeriodintervalPeriodvalue = 1.2; // Double |
+$timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; // String |
+$timeRangePeriodtimezone = timeRangePeriodtimezone_example; // String |
+$limit = 56; // Integer |
+$offset = 56; // Integer |
+$version = 56; // Integer |
+
+try {
+ $result = $api_instance->queryLog2($owner, $slug, $projectId, $query, $timeRangePeriodstartPeriodrelativeTimePeriodunit, $timeRangePeriodstartPeriodrelativeTimePeriodvalue, $timeRangePeriodstartPeriodrelativeTimePeriodalign, $timeRangePeriodstartPeriodabsoluteTime, $timeRangePeriodendPeriodrelativeTimePeriodunit, $timeRangePeriodendPeriodrelativeTimePeriodvalue, $timeRangePeriodendPeriodrelativeTimePeriodalign, $timeRangePeriodendPeriodabsoluteTime, $timeRangePeriodstep, $timeRangePeriodintervalPeriodvalue, $timeRangePeriodintervalPeriodunit, $timeRangePeriodtimezone, $limit, $offset, $version);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling DataApi->queryLog2: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::DataApi;
+
+# Configure API key authorization: ApiKeyAuth
+$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::DataApi->new();
+my $owner = owner_example; # String |
+my $slug = slug_example; # String |
+my $projectId = projectId_example; # String |
+my $query = query_example; # String |
+my $timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; # String |
+my $timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; # Integer |
+my $timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; # String |
+my $timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; # String |
+my $timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; # String |
+my $timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; # Integer |
+my $timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; # String |
+my $timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; # String |
+my $timeRangePeriodstep = timeRangePeriodstep_example; # String |
+my $timeRangePeriodintervalPeriodvalue = 1.2; # Double |
+my $timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; # String |
+my $timeRangePeriodtimezone = timeRangePeriodtimezone_example; # String |
+my $limit = 56; # Integer |
+my $offset = 56; # Integer |
+my $version = 56; # Integer |
+
+eval {
+ my $result = $api_instance->queryLog2(owner => $owner, slug => $slug, projectId => $projectId, query => $query, timeRangePeriodstartPeriodrelativeTimePeriodunit => $timeRangePeriodstartPeriodrelativeTimePeriodunit, timeRangePeriodstartPeriodrelativeTimePeriodvalue => $timeRangePeriodstartPeriodrelativeTimePeriodvalue, timeRangePeriodstartPeriodrelativeTimePeriodalign => $timeRangePeriodstartPeriodrelativeTimePeriodalign, timeRangePeriodstartPeriodabsoluteTime => $timeRangePeriodstartPeriodabsoluteTime, timeRangePeriodendPeriodrelativeTimePeriodunit => $timeRangePeriodendPeriodrelativeTimePeriodunit, timeRangePeriodendPeriodrelativeTimePeriodvalue => $timeRangePeriodendPeriodrelativeTimePeriodvalue, timeRangePeriodendPeriodrelativeTimePeriodalign => $timeRangePeriodendPeriodrelativeTimePeriodalign, timeRangePeriodendPeriodabsoluteTime => $timeRangePeriodendPeriodabsoluteTime, timeRangePeriodstep => $timeRangePeriodstep, timeRangePeriodintervalPeriodvalue => $timeRangePeriodintervalPeriodvalue, timeRangePeriodintervalPeriodunit => $timeRangePeriodintervalPeriodunit, timeRangePeriodtimezone => $timeRangePeriodtimezone, limit => $limit, offset => $offset, version => $version);
+ print Dumper($result);
+};
+if ($@) {
+ warn "Exception when calling DataApi->queryLog2: $@\n";
+}
+
+
+
+ from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: ApiKeyAuth
+openapi_client.configuration.api_key['api-key'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer'
+
+# Create an instance of the API class
+api_instance = openapi_client.DataApi()
+owner = owner_example # String | (default to null)
+slug = slug_example # String | (default to null)
+projectId = projectId_example # String | (optional) (default to null)
+query = query_example # String | (optional) (default to null)
+timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example # String | (optional) (default to null)
+timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56 # Integer | (optional) (default to null)
+timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example # String | (optional) (default to null)
+timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example # String | (optional) (default to null)
+timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example # String | (optional) (default to null)
+timeRangePeriodendPeriodrelativeTimePeriodvalue = 56 # Integer | (optional) (default to null)
+timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example # String | (optional) (default to null)
+timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example # String | (optional) (default to null)
+timeRangePeriodstep = timeRangePeriodstep_example # String | (optional) (default to null)
+timeRangePeriodintervalPeriodvalue = 1.2 # Double | (optional) (default to null)
+timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example # String | (optional) (default to null)
+timeRangePeriodtimezone = timeRangePeriodtimezone_example # String | (optional) (default to null)
+limit = 56 # Integer | (optional) (default to null)
+offset = 56 # Integer | (optional) (default to null)
+version = 56 # Integer | (optional) (default to null)
+
+try:
+ # Query event logs
+ api_response = api_instance.query_log2(owner, slug, projectId=projectId, query=query, timeRangePeriodstartPeriodrelativeTimePeriodunit=timeRangePeriodstartPeriodrelativeTimePeriodunit, timeRangePeriodstartPeriodrelativeTimePeriodvalue=timeRangePeriodstartPeriodrelativeTimePeriodvalue, timeRangePeriodstartPeriodrelativeTimePeriodalign=timeRangePeriodstartPeriodrelativeTimePeriodalign, timeRangePeriodstartPeriodabsoluteTime=timeRangePeriodstartPeriodabsoluteTime, timeRangePeriodendPeriodrelativeTimePeriodunit=timeRangePeriodendPeriodrelativeTimePeriodunit, timeRangePeriodendPeriodrelativeTimePeriodvalue=timeRangePeriodendPeriodrelativeTimePeriodvalue, timeRangePeriodendPeriodrelativeTimePeriodalign=timeRangePeriodendPeriodrelativeTimePeriodalign, timeRangePeriodendPeriodabsoluteTime=timeRangePeriodendPeriodabsoluteTime, timeRangePeriodstep=timeRangePeriodstep, timeRangePeriodintervalPeriodvalue=timeRangePeriodintervalPeriodvalue, timeRangePeriodintervalPeriodunit=timeRangePeriodintervalPeriodunit, timeRangePeriodtimezone=timeRangePeriodtimezone, limit=limit, offset=offset, version=version)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling DataApi->queryLog2: %s\n" % e)
+
+
+
+ extern crate DataApi;
+
+pub fn main() {
+ let owner = owner_example; // String
+ let slug = slug_example; // String
+ let projectId = projectId_example; // String
+ let query = query_example; // String
+ let timeRangePeriodstartPeriodrelativeTimePeriodunit = timeRangePeriodstartPeriodrelativeTimePeriodunit_example; // String
+ let timeRangePeriodstartPeriodrelativeTimePeriodvalue = 56; // Integer
+ let timeRangePeriodstartPeriodrelativeTimePeriodalign = timeRangePeriodstartPeriodrelativeTimePeriodalign_example; // String
+ let timeRangePeriodstartPeriodabsoluteTime = timeRangePeriodstartPeriodabsoluteTime_example; // String
+ let timeRangePeriodendPeriodrelativeTimePeriodunit = timeRangePeriodendPeriodrelativeTimePeriodunit_example; // String
+ let timeRangePeriodendPeriodrelativeTimePeriodvalue = 56; // Integer
+ let timeRangePeriodendPeriodrelativeTimePeriodalign = timeRangePeriodendPeriodrelativeTimePeriodalign_example; // String
+ let timeRangePeriodendPeriodabsoluteTime = timeRangePeriodendPeriodabsoluteTime_example; // String
+ let timeRangePeriodstep = timeRangePeriodstep_example; // String
+ let timeRangePeriodintervalPeriodvalue = 1.2; // Double
+ let timeRangePeriodintervalPeriodunit = timeRangePeriodintervalPeriodunit_example; // String
+ let timeRangePeriodtimezone = timeRangePeriodtimezone_example; // String
+ let limit = 56; // Integer
+ let offset = 56; // Integer
+ let version = 56; // Integer
+
+ let mut context = DataApi::Context::default();
+ let result = client.queryLog2(owner, slug, projectId, query, timeRangePeriodstartPeriodrelativeTimePeriodunit, timeRangePeriodstartPeriodrelativeTimePeriodvalue, timeRangePeriodstartPeriodrelativeTimePeriodalign, timeRangePeriodstartPeriodabsoluteTime, timeRangePeriodendPeriodrelativeTimePeriodunit, timeRangePeriodendPeriodrelativeTimePeriodvalue, timeRangePeriodendPeriodrelativeTimePeriodalign, timeRangePeriodendPeriodabsoluteTime, timeRangePeriodstep, timeRangePeriodintervalPeriodvalue, timeRangePeriodintervalPeriodunit, timeRangePeriodtimezone, limit, offset, version, &context).wait();
+
+ println!("{:?}", result);
+}
+
+
+
+
+ Scopes
+
+
+
+
+ Parameters
+
+ Path parameters
+
+
+ Name
+ Description
+
+ owner*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+ slug*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+
+
+
+
+
+ Query parameters
+
+
+ Name
+ Description
+
+ projectId
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+ query
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+ timeRange.start.relativeTime.unit
+
+
+
+
+
+
+
+ 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
+
+
+
+
+ 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
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X POST \
+-H "api-key: [[apiKey]]" \
+ -H "Accept: application/json" \
+ -H "Content-Type: application/json" \
+ "https://app.sentio.xyz/api/v1/metrics/{owner}/{slug}/query_range" \
+ -d ''
+
+
+
+ import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.DataApi;
+
+import java.io.File;
+import java.util.*;
+
+public class DataApiExample {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: ApiKeyAuth
+ ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
+ ApiKeyAuth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //ApiKeyAuth.setApiKeyPrefix("Token");
+
+ // Create an instance of the API class
+ DataApi apiInstance = new DataApi();
+ String owner = owner_example; // String | username or organization name
+ String slug = slug_example; // String | project slug
+ MetricsServiceObservabilityServiceQueryRangeBody body = ; // MetricsServiceObservabilityServiceQueryRangeBody |
+
+ try {
+ metrics_service.MetricsQueryResponse result = apiInstance.queryRange(owner, slug, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DataApi#queryRange");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+
+ import 'package:openapi/api.dart';
+
+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 |
+
+try {
+ final result = await api_instance.queryRange(owner, slug, body);
+ print(result);
+} catch (e) {
+ 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 owner = owner_example; // String | username or organization name
+ String slug = slug_example; // String | project slug
+ MetricsServiceObservabilityServiceQueryRangeBody body = ; // MetricsServiceObservabilityServiceQueryRangeBody |
+
+ try {
+ metrics_service.MetricsQueryResponse result = apiInstance.queryRange(owner, slug, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DataApi#queryRange");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure API key authorization: (authentication scheme: ApiKeyAuth)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-key"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-key"];
+
+
+// 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 = ; //
+
+// Metric range queries
+[apiInstance queryRangeWith:owner
+ slug:slug
+ body:body
+ completionHandler: ^(metrics_service.MetricsQueryResponse output, NSError* error) {
+ if (output) {
+ NSLog(@"%@", output);
+ }
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+}];
+
+
+
+
+ var SentioApi = require('sentio_api');
+var defaultClient = SentioApi.ApiClient.instance;
+
+// Configure API key authorization: ApiKeyAuth
+var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
+ApiKeyAuth.apiKey = "YOUR API KEY";
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//ApiKeyAuth.apiKeyPrefix['api-key'] = "Token";
+
+// Create an instance of the API class
+var api = new SentioApi.DataApi()
+var owner = owner_example; // {String} username or organization name
+var slug = slug_example; // {String} project slug
+var body = ; // {MetricsServiceObservabilityServiceQueryRangeBody}
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+api.queryRange(owner, slug, body, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class queryRangeExample
+ {
+ public void main()
+ {
+ // Configure API key authorization: ApiKeyAuth
+ Configuration.Default.ApiKey.Add("api-key", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
+
+ // Create an instance of the API class
+ var apiInstance = new DataApi();
+ var owner = owner_example; // String | username or organization name (default to null)
+ var slug = slug_example; // String | project slug (default to null)
+ var body = new MetricsServiceObservabilityServiceQueryRangeBody(); // MetricsServiceObservabilityServiceQueryRangeBody |
+
+ 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 *
+
+
+
+
+
+
+
+
+
+
+
+ Responses
+
+
+
+
+
+
+ -
+ Schema
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ retention
+ Retention query
+
+
+
+
+ Query for retention.
+
+
+ /api/v1/insights/{owner}/{slug}/retention
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X POST \
+-H "api-key: [[apiKey]]" \
+ -H "Accept: application/json" \
+ -H "Content-Type: application/json" \
+ "https://app.sentio.xyz/api/v1/insights/{owner}/{slug}/retention" \
+ -d ''
+
+
+
+ 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.*;
+
+public class DataApiExample {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: ApiKeyAuth
+ ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
+ ApiKeyAuth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //ApiKeyAuth.setApiKeyPrefix("Token");
+
+ // Create an instance of the API class
+ DataApi apiInstance = new DataApi();
+ String owner = owner_example; // String |
+ String slug = slug_example; // String |
+ InsightsServiceInsightsServiceRetentionBody body = ; // InsightsServiceInsightsServiceRetentionBody |
+
+ try {
+ insights_service.RetentionResponse result = apiInstance.retention(owner, slug, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DataApi#retention");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+
+ 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 |
+
+try {
+ final result = await api_instance.retention(owner, slug, body);
+ print(result);
+} catch (e) {
+ 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();
+ String owner = owner_example; // String |
+ String slug = slug_example; // String |
+ InsightsServiceInsightsServiceRetentionBody body = ; // InsightsServiceInsightsServiceRetentionBody |
+
+ try {
+ insights_service.RetentionResponse result = apiInstance.retention(owner, slug, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DataApi#retention");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure API key authorization: (authentication scheme: ApiKeyAuth)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-key"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-key"];
+
+
+// Create an instance of the API class
+DataApi *apiInstance = [[DataApi alloc] init];
+String *owner = owner_example; // (default to null)
+String *slug = slug_example; // (default to null)
+InsightsServiceInsightsServiceRetentionBody *body = ; //
+
+// Retention query
+[apiInstance retentionWith:owner
+ slug:slug
+ body:body
+ completionHandler: ^(insights_service.RetentionResponse output, NSError* error) {
+ if (output) {
+ NSLog(@"%@", output);
+ }
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+}];
+
+
+
+
+ var SentioApi = require('sentio_api');
+var defaultClient = SentioApi.ApiClient.instance;
+
+// Configure API key authorization: ApiKeyAuth
+var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
+ApiKeyAuth.apiKey = "YOUR API KEY";
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//ApiKeyAuth.apiKeyPrefix['api-key'] = "Token";
+
+// Create an instance of the API class
+var api = new SentioApi.DataApi()
+var owner = owner_example; // {String}
+var slug = slug_example; // {String}
+var body = ; // {InsightsServiceInsightsServiceRetentionBody}
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+api.retention(owner, slug, body, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class retentionExample
+ {
+ public void main()
+ {
+ // Configure API key authorization: ApiKeyAuth
+ Configuration.Default.ApiKey.Add("api-key", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
+
+ // Create an instance of the API class
+ var apiInstance = new DataApi();
+ var owner = owner_example; // String | (default to null)
+ var slug = slug_example; // String | (default to null)
+ var body = new InsightsServiceInsightsServiceRetentionBody(); // InsightsServiceInsightsServiceRetentionBody |
+
+ try {
+ // Retention query
+ insights_service.RetentionResponse result = apiInstance.retention(owner, slug, body);
+ Debug.WriteLine(result);
+ } catch (Exception e) {
+ Debug.Print("Exception when calling DataApi.retention: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure API key authorization: ApiKeyAuth
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\DataApi();
+$owner = owner_example; // String |
+$slug = slug_example; // String |
+$body = ; // InsightsServiceInsightsServiceRetentionBody |
+
+try {
+ $result = $api_instance->retention($owner, $slug, $body);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling DataApi->retention: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::DataApi;
+
+# Configure API key authorization: ApiKeyAuth
+$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::DataApi->new();
+my $owner = owner_example; # String |
+my $slug = slug_example; # String |
+my $body = WWW::OPenAPIClient::Object::InsightsServiceInsightsServiceRetentionBody->new(); # InsightsServiceInsightsServiceRetentionBody |
+
+eval {
+ my $result = $api_instance->retention(owner => $owner, slug => $slug, body => $body);
+ print Dumper($result);
+};
+if ($@) {
+ warn "Exception when calling DataApi->retention: $@\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)
+body = # InsightsServiceInsightsServiceRetentionBody |
+
+try:
+ # Retention query
+ api_response = api_instance.retention(owner, slug, body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling DataApi->retention: %s\n" % e)
+
+
+
+ extern crate DataApi;
+
+pub fn main() {
+ let owner = owner_example; // String
+ let slug = slug_example; // String
+ let body = ; // InsightsServiceInsightsServiceRetentionBody
+
+ let mut context = DataApi::Context::default();
+ let result = client.retention(owner, slug, body, &context).wait();
+
+ println!("{:?}", result);
+}
+
+
+
+
+ Scopes
+
+
+
+
+ Parameters
+
+ Path parameters
+
+
+ Name
+ Description
+
+ owner*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+ slug*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+
+
+
+ Body parameters
+
+
+ Name
+ Description
+
+ body *
+
+
+
+
+
+
+
+
+
+
+
+ Responses
+
+
+
+
+
+
+ -
+ Schema
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ retention2
+ Retention query
+
+
+
+
+ Query for retention.
+
+
+ /api/v1/insights/retention
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X POST \
+-H "api-key: [[apiKey]]" \
+ -H "Accept: application/json" \
+ -H "Content-Type: application/json" \
+ "https://app.sentio.xyz/api/v1/insights/retention" \
+ -d ''
+
+
+
+ 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.*;
+
+public class DataApiExample {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: ApiKeyAuth
+ ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
+ ApiKeyAuth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //ApiKeyAuth.setApiKeyPrefix("Token");
+
+ // Create an instance of the API class
+ DataApi apiInstance = new DataApi();
+ InsightsServiceRetentionRequest body = ; // InsightsServiceRetentionRequest |
+
+ try {
+ insights_service.RetentionResponse result = apiInstance.retention2(body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DataApi#retention2");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+
+ import 'package:openapi/api.dart';
+
+final api_instance = DefaultApi();
+
+final InsightsServiceRetentionRequest body = new InsightsServiceRetentionRequest(); // InsightsServiceRetentionRequest |
+
+try {
+ final result = await api_instance.retention2(body);
+ print(result);
+} catch (e) {
+ 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();
+ InsightsServiceRetentionRequest body = ; // InsightsServiceRetentionRequest |
+
+ try {
+ insights_service.RetentionResponse result = apiInstance.retention2(body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DataApi#retention2");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure API key authorization: (authentication scheme: ApiKeyAuth)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-key"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-key"];
+
+
+// Create an instance of the API class
+DataApi *apiInstance = [[DataApi alloc] init];
+InsightsServiceRetentionRequest *body = ; //
+
+// Retention query
+[apiInstance retention2With:body
+ completionHandler: ^(insights_service.RetentionResponse output, NSError* error) {
+ if (output) {
+ NSLog(@"%@", output);
+ }
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+}];
+
+
+
+
+ var SentioApi = require('sentio_api');
+var defaultClient = SentioApi.ApiClient.instance;
+
+// Configure API key authorization: ApiKeyAuth
+var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
+ApiKeyAuth.apiKey = "YOUR API KEY";
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//ApiKeyAuth.apiKeyPrefix['api-key'] = "Token";
+
+// Create an instance of the API class
+var api = new SentioApi.DataApi()
+var body = ; // {InsightsServiceRetentionRequest}
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+api.retention2(body, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class retention2Example
+ {
+ 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 body = new InsightsServiceRetentionRequest(); // InsightsServiceRetentionRequest |
+
+ try {
+ // Retention query
+ insights_service.RetentionResponse result = apiInstance.retention2(body);
+ Debug.WriteLine(result);
+ } catch (Exception e) {
+ Debug.Print("Exception when calling DataApi.retention2: " + 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();
+$body = ; // InsightsServiceRetentionRequest |
+
+try {
+ $result = $api_instance->retention2($body);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling DataApi->retention2: ', $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 $body = WWW::OPenAPIClient::Object::InsightsServiceRetentionRequest->new(); # InsightsServiceRetentionRequest |
+
+eval {
+ my $result = $api_instance->retention2(body => $body);
+ print Dumper($result);
+};
+if ($@) {
+ warn "Exception when calling DataApi->retention2: $@\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()
+body = # InsightsServiceRetentionRequest |
+
+try:
+ # Retention query
+ api_response = api_instance.retention2(body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling DataApi->retention2: %s\n" % e)
+
+
+
+ extern crate DataApi;
+
+pub fn main() {
+ let body = ; // InsightsServiceRetentionRequest
+
+ let mut context = DataApi::Context::default();
+ let result = client.retention2(body, &context).wait();
+
+ println!("{:?}", result);
+}
+
+
+
+
+ Scopes
+
+
+
+
+ Parameters
+
+
+
+ Body parameters
+
+
+ Name
+ Description
+
+ body *
+
+
+
+
+
+
+
+
+
+
+
+ Responses
+
+
+
+
+
+
+ -
+ Schema
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DebugAndSimulation
+
+
+
+ getCallTraceByBundle
+ Get trace by bundle simulation
+
+
+
+
+
+
+
+ /api/v1/solidity/{owner}/{slug}/{chainId}/bundle/{bundleId}/call_trace
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X GET \
+-H "api-key: [[apiKey]]" \
+ -H "Accept: application/json" \
+ "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/{chainId}/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.DebugAndSimulationApi;
+
+import java.io.File;
+import java.util.*;
+
+public class DebugAndSimulationApiExample {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: ApiKeyAuth
+ ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
+ ApiKeyAuth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //ApiKeyAuth.setApiKeyPrefix("Token");
+
+ // Create an instance of the API class
+ DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
+ String owner = owner_example; // String |
+ String slug = slug_example; // String |
+ 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 {
+ google.api.HttpBody result = apiInstance.getCallTraceByBundle(owner, slug, chainId, bundleId, withInternalCalls, disableOptimizer, ignoreGasCost);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByBundle");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+
+ import 'package:openapi/api.dart';
+
+final api_instance = DefaultApi();
+
+final String owner = new String(); // String |
+final String slug = new String(); // String |
+final String chainId = new String(); // String |
+final String bundleId = new String(); // String |
+final Boolean withInternalCalls = new Boolean(); // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
+final Boolean disableOptimizer = new Boolean(); // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
+final Boolean ignoreGasCost = new Boolean(); // Boolean | Only effective when disableOptimizer=true.
+
+try {
+ final result = await api_instance.getCallTraceByBundle(owner, slug, chainId, bundleId, withInternalCalls, disableOptimizer, ignoreGasCost);
+ print(result);
+} catch (e) {
+ print('Exception when calling DefaultApi->getCallTraceByBundle: $e\n');
+}
+
+
+
+
+
+ import org.openapitools.client.api.DebugAndSimulationApi;
+
+public class DebugAndSimulationApiExample {
+ public static void main(String[] args) {
+ DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
+ String owner = owner_example; // String |
+ String slug = slug_example; // String |
+ 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 {
+ google.api.HttpBody result = apiInstance.getCallTraceByBundle(owner, slug, chainId, bundleId, withInternalCalls, disableOptimizer, ignoreGasCost);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByBundle");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure API key authorization: (authentication scheme: ApiKeyAuth)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-key"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-key"];
+
+
+// Create an instance of the API class
+DebugAndSimulationApi *apiInstance = [[DebugAndSimulationApi alloc] init];
+String *owner = owner_example; // (default to null)
+String *slug = slug_example; // (default to null)
+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)
+
+// 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);
+ }
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+}];
+
+
+
+
+ var SentioApi = require('sentio_api');
+var defaultClient = SentioApi.ApiClient.instance;
+
+// Configure API key authorization: ApiKeyAuth
+var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
+ApiKeyAuth.apiKey = "YOUR API KEY";
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//ApiKeyAuth.apiKeyPrefix['api-key'] = "Token";
+
+// Create an instance of the API class
+var api = new SentioApi.DebugAndSimulationApi()
+var owner = owner_example; // {String}
+var slug = slug_example; // {String}
+var 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) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+api.getCallTraceByBundle(owner, slug, chainId, bundleId, opts, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class getCallTraceByBundleExample
+ {
+ public void main()
+ {
+ // Configure API key authorization: ApiKeyAuth
+ Configuration.Default.ApiKey.Add("api-key", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
+
+ // Create an instance of the API class
+ var apiInstance = new DebugAndSimulationApi();
+ var owner = owner_example; // String | (default to null)
+ var slug = slug_example; // String | (default to null)
+ var chainId = 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 {
+ // Get trace by bundle simulation
+ google.api.HttpBody result = apiInstance.getCallTraceByBundle(owner, slug, chainId, bundleId, withInternalCalls, disableOptimizer, ignoreGasCost);
+ Debug.WriteLine(result);
+ } catch (Exception e) {
+ Debug.Print("Exception when calling DebugAndSimulationApi.getCallTraceByBundle: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure API key authorization: ApiKeyAuth
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi();
+$owner = owner_example; // String |
+$slug = slug_example; // String |
+$chainId = chainId_example; // String |
+$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->getCallTraceByBundle($owner, $slug, $chainId, $bundleId, $withInternalCalls, $disableOptimizer, $ignoreGasCost);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling DebugAndSimulationApi->getCallTraceByBundle: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::DebugAndSimulationApi;
+
+# Configure API key authorization: ApiKeyAuth
+$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new();
+my $owner = owner_example; # String |
+my $slug = slug_example; # String |
+my $chainId = chainId_example; # String |
+my $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->getCallTraceByBundle(owner => $owner, slug => $slug, chainId => $chainId, bundleId => $bundleId, withInternalCalls => $withInternalCalls, disableOptimizer => $disableOptimizer, ignoreGasCost => $ignoreGasCost);
+ print Dumper($result);
+};
+if ($@) {
+ warn "Exception when calling DebugAndSimulationApi->getCallTraceByBundle: $@\n";
+}
+
+
+
+ from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: ApiKeyAuth
+openapi_client.configuration.api_key['api-key'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer'
+
+# Create an instance of the API class
+api_instance = openapi_client.DebugAndSimulationApi()
+owner = owner_example # String | (default to null)
+slug = slug_example # String | (default to null)
+chainId = chainId_example # String | (default to null)
+bundleId = bundleId_example # String | (default to null)
+withInternalCalls = true # Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null)
+disableOptimizer = true # Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null)
+ignoreGasCost = true # Boolean | Only effective when disableOptimizer=true. (optional) (default to null)
+
+try:
+ # Get trace by bundle simulation
+ api_response = api_instance.get_call_trace_by_bundle(owner, slug, chainId, bundleId, withInternalCalls=withInternalCalls, disableOptimizer=disableOptimizer, ignoreGasCost=ignoreGasCost)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling DebugAndSimulationApi->getCallTraceByBundle: %s\n" % e)
+
+
+
+ extern crate DebugAndSimulationApi;
+
+pub fn main() {
+ let owner = owner_example; // String
+ let slug = slug_example; // String
+ let chainId = chainId_example; // String
+ let bundleId = bundleId_example; // String
+ let withInternalCalls = true; // Boolean
+ let disableOptimizer = true; // Boolean
+ let ignoreGasCost = true; // Boolean
+
+ let mut context = DebugAndSimulationApi::Context::default();
+ let result = client.getCallTraceByBundle(owner, slug, chainId, bundleId, withInternalCalls, disableOptimizer, ignoreGasCost, &context).wait();
+
+ println!("{:?}", result);
+}
+
+
+
+
+ Scopes
+
+
+
+
+ Parameters
+
+ Path parameters
+
+
+ Name
+ Description
+
+ owner*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+ slug*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+ chainId*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+ bundleId*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+
+
+
+
+
+ Query parameters
+
+
+ Name
+ Description
+
+ 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
+
+
+
+
+
+
+ -
+ Schema
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ getCallTraceBySimulation
+ Get trace by simulation
+
+
+
+
+
+
+
+ /api/v1/solidity/{owner}/{slug}/{chainId}/simulation/{simulationId}/call_trace
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X GET \
+-H "api-key: [[apiKey]]" \
+ -H "Accept: application/json" \
+ "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/{chainId}/simulation/{simulationId}/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.DebugAndSimulationApi;
+
+import java.io.File;
+import java.util.*;
+
+public class DebugAndSimulationApiExample {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: ApiKeyAuth
+ ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
+ ApiKeyAuth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //ApiKeyAuth.setApiKeyPrefix("Token");
+
+ // Create an instance of the API class
+ DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
+ String owner = owner_example; // String |
+ String slug = slug_example; // String |
+ String chainId = chainId_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.getCallTraceBySimulation(owner, slug, chainId, simulationId, withInternalCalls, disableOptimizer, ignoreGasCost);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceBySimulation");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+
+ import 'package:openapi/api.dart';
+
+final api_instance = DefaultApi();
+
+final String owner = new String(); // String |
+final String slug = new String(); // String |
+final String chainId = new String(); // String |
+final String 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.getCallTraceBySimulation(owner, slug, chainId, simulationId, withInternalCalls, disableOptimizer, ignoreGasCost);
+ print(result);
+} catch (e) {
+ print('Exception when calling DefaultApi->getCallTraceBySimulation: $e\n');
+}
+
+
+
+
+
+ import org.openapitools.client.api.DebugAndSimulationApi;
+
+public class DebugAndSimulationApiExample {
+ public static void main(String[] args) {
+ DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
+ String owner = owner_example; // String |
+ String slug = slug_example; // String |
+ String chainId = chainId_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.getCallTraceBySimulation(owner, slug, chainId, simulationId, withInternalCalls, disableOptimizer, ignoreGasCost);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceBySimulation");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure API key authorization: (authentication scheme: ApiKeyAuth)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-key"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-key"];
+
+
+// Create an instance of the API class
+DebugAndSimulationApi *apiInstance = [[DebugAndSimulationApi alloc] init];
+String *owner = owner_example; // (default to null)
+String *slug = slug_example; // (default to null)
+String *chainId = chainId_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 simulation
+[apiInstance getCallTraceBySimulationWith:owner
+ slug:slug
+ chainId:chainId
+ simulationId:simulationId
+ withInternalCalls:withInternalCalls
+ disableOptimizer:disableOptimizer
+ ignoreGasCost:ignoreGasCost
+ completionHandler: ^(google.api.HttpBody output, NSError* error) {
+ if (output) {
+ NSLog(@"%@", output);
+ }
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+}];
+
+
+
+
+ var SentioApi = require('sentio_api');
+var defaultClient = SentioApi.ApiClient.instance;
+
+// Configure API key authorization: ApiKeyAuth
+var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
+ApiKeyAuth.apiKey = "YOUR API KEY";
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//ApiKeyAuth.apiKeyPrefix['api-key'] = "Token";
+
+// Create an instance of the API class
+var api = new SentioApi.DebugAndSimulationApi()
+var owner = owner_example; // {String}
+var slug = slug_example; // {String}
+var chainId = chainId_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.
+ 'ignoreGasCost': true // {Boolean} Only effective when disableOptimizer=true.
+};
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+api.getCallTraceBySimulation(owner, slug, chainId, simulationId, opts, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class getCallTraceBySimulationExample
+ {
+ public void main()
+ {
+ // Configure API key authorization: ApiKeyAuth
+ Configuration.Default.ApiKey.Add("api-key", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
+
+ // Create an instance of the API class
+ var apiInstance = new DebugAndSimulationApi();
+ var owner = owner_example; // String | (default to null)
+ var slug = slug_example; // String | (default to null)
+ var chainId = chainId_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 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.getCallTraceBySimulation: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure API key authorization: ApiKeyAuth
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi();
+$owner = owner_example; // String |
+$slug = slug_example; // String |
+$chainId = chainId_example; // String |
+$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->getCallTraceBySimulation($owner, $slug, $chainId, $simulationId, $withInternalCalls, $disableOptimizer, $ignoreGasCost);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling DebugAndSimulationApi->getCallTraceBySimulation: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::DebugAndSimulationApi;
+
+# Configure API key authorization: ApiKeyAuth
+$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new();
+my $owner = owner_example; # String |
+my $slug = slug_example; # String |
+my $chainId = chainId_example; # String |
+my $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->getCallTraceBySimulation(owner => $owner, slug => $slug, chainId => $chainId, simulationId => $simulationId, withInternalCalls => $withInternalCalls, disableOptimizer => $disableOptimizer, ignoreGasCost => $ignoreGasCost);
+ print Dumper($result);
+};
+if ($@) {
+ warn "Exception when calling DebugAndSimulationApi->getCallTraceBySimulation: $@\n";
+}
+
+
+
+ from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: ApiKeyAuth
+openapi_client.configuration.api_key['api-key'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer'
+
+# Create an instance of the API class
+api_instance = openapi_client.DebugAndSimulationApi()
+owner = owner_example # String | (default to null)
+slug = slug_example # String | (default to null)
+chainId = chainId_example # String | (default to null)
+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 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->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 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.getCallTraceBySimulation(owner, slug, chainId, simulationId, withInternalCalls, disableOptimizer, ignoreGasCost, &context).wait();
+
+ println!("{:?}", result);
+}
+
+
+
+
+ Scopes
+
+
+
+
+ Parameters
+
+ Path parameters
+
+
+ Name
+ Description
+
+ owner*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+ slug*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+ chainId*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+ simulationId*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+
+
+
+
+
+ Query parameters
+
+
+ Name
+ Description
+
+ 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
+
+
+
+
+
+
+ -
+ Schema
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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}/transaction/{txHash}/call_trace
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X GET \
+-H "api-key: [[apiKey]]" \
+ -H "Accept: application/json" \
+ "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/{chainId}/transaction/{txHash}/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.DebugAndSimulationApi;
+
+import java.io.File;
+import java.util.*;
+
+public class DebugAndSimulationApiExample {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: ApiKeyAuth
+ ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
+ ApiKeyAuth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //ApiKeyAuth.setApiKeyPrefix("Token");
+
+ // Create an instance of the API class
+ DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
+ String owner = owner_example; // String |
+ String slug = slug_example; // String |
+ String chainId = chainId_example; // String |
+ String txHash = txHash_example; // String |
+ Boolean withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
+ Boolean disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
+ Boolean ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true.
+
+ try {
+ 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#getCallTraceByTransaction");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+
+ import 'package:openapi/api.dart';
+
+final api_instance = DefaultApi();
+
+final String owner = new String(); // String |
+final String slug = new String(); // String |
+final String chainId = new String(); // String |
+final String txHash = new String(); // String |
+final Boolean withInternalCalls = new Boolean(); // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
+final Boolean disableOptimizer = new Boolean(); // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
+final Boolean ignoreGasCost = new Boolean(); // Boolean | Only effective when disableOptimizer=true.
+
+try {
+ final result = await api_instance.getCallTraceByTransaction(owner, slug, chainId, txHash, withInternalCalls, disableOptimizer, ignoreGasCost);
+ print(result);
+} catch (e) {
+ print('Exception when calling DefaultApi->getCallTraceByTransaction: $e\n');
+}
+
+
+
+
+
+ import org.openapitools.client.api.DebugAndSimulationApi;
+
+public class DebugAndSimulationApiExample {
+ public static void main(String[] args) {
+ DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
+ String owner = owner_example; // String |
+ String slug = slug_example; // String |
+ String chainId = chainId_example; // String |
+ String txHash = txHash_example; // String |
+ Boolean withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
+ Boolean disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
+ Boolean ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true.
+
+ try {
+ 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#getCallTraceByTransaction");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure API key authorization: (authentication scheme: ApiKeyAuth)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-key"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-key"];
+
+
+// Create an instance of the API class
+DebugAndSimulationApi *apiInstance = [[DebugAndSimulationApi alloc] init];
+String *owner = owner_example; // (default to null)
+String *slug = slug_example; // (default to null)
+String *chainId = chainId_example; // (default to null)
+String *txHash = txHash_example; // (default to null)
+Boolean *withInternalCalls = true; // Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null)
+Boolean *disableOptimizer = true; // Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null)
+Boolean *ignoreGasCost = true; // Only effective when disableOptimizer=true. (optional) (default to null)
+
+// Get trace by transaction
+[apiInstance getCallTraceByTransactionWith:owner
+ slug:slug
+ chainId:chainId
+ txHash:txHash
+ withInternalCalls:withInternalCalls
+ disableOptimizer:disableOptimizer
+ ignoreGasCost:ignoreGasCost
+ completionHandler: ^(google.api.HttpBody output, NSError* error) {
+ if (output) {
+ NSLog(@"%@", output);
+ }
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+}];
+
+
+
+
+ var SentioApi = require('sentio_api');
+var defaultClient = SentioApi.ApiClient.instance;
+
+// Configure API key authorization: ApiKeyAuth
+var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
+ApiKeyAuth.apiKey = "YOUR API KEY";
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//ApiKeyAuth.apiKeyPrefix['api-key'] = "Token";
+
+// Create an instance of the API class
+var api = new SentioApi.DebugAndSimulationApi()
+var owner = owner_example; // {String}
+var slug = slug_example; // {String}
+var chainId = chainId_example; // {String}
+var txHash = txHash_example; // {String}
+var opts = {
+ 'withInternalCalls': true, // {Boolean} Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
+ 'disableOptimizer': true, // {Boolean} Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
+ 'ignoreGasCost': true // {Boolean} Only effective when disableOptimizer=true.
+};
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+api.getCallTraceByTransaction(owner, slug, chainId, txHash, opts, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class getCallTraceByTransactionExample
+ {
+ public void main()
+ {
+ // Configure API key authorization: ApiKeyAuth
+ Configuration.Default.ApiKey.Add("api-key", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
+
+ // Create an instance of the API class
+ var apiInstance = new DebugAndSimulationApi();
+ var owner = owner_example; // String | (default to null)
+ var slug = slug_example; // String | (default to null)
+ var chainId = chainId_example; // String | (default to null)
+ var txHash = txHash_example; // String | (default to null)
+ var withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null)
+ var disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null)
+ var ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. (optional) (default to null)
+
+ try {
+ // Get 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.getCallTraceByTransaction: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure API key authorization: ApiKeyAuth
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi();
+$owner = owner_example; // String |
+$slug = slug_example; // String |
+$chainId = chainId_example; // String |
+$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->getCallTraceByTransaction($owner, $slug, $chainId, $txHash, $withInternalCalls, $disableOptimizer, $ignoreGasCost);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling DebugAndSimulationApi->getCallTraceByTransaction: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::DebugAndSimulationApi;
+
+# Configure API key authorization: ApiKeyAuth
+$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new();
+my $owner = owner_example; # String |
+my $slug = slug_example; # String |
+my $chainId = chainId_example; # String |
+my $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->getCallTraceByTransaction(owner => $owner, slug => $slug, chainId => $chainId, txHash => $txHash, withInternalCalls => $withInternalCalls, disableOptimizer => $disableOptimizer, ignoreGasCost => $ignoreGasCost);
+ print Dumper($result);
+};
+if ($@) {
+ warn "Exception when calling DebugAndSimulationApi->getCallTraceByTransaction: $@\n";
+}
+
+
+
+ from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: ApiKeyAuth
+openapi_client.configuration.api_key['api-key'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer'
+
+# Create an instance of the API class
+api_instance = openapi_client.DebugAndSimulationApi()
+owner = owner_example # String | (default to null)
+slug = slug_example # String | (default to null)
+chainId = chainId_example # String | (default to null)
+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 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->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 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.getCallTraceByTransaction(owner, slug, chainId, txHash, withInternalCalls, disableOptimizer, ignoreGasCost, &context).wait();
+
+ println!("{:?}", result);
+}
+
+
+
+
+ Scopes
+
+
+
+
+ Parameters
+
+ Path parameters
+
+
+ Name
+ Description
+
+ owner*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+ slug*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+ chainId*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+ txHash*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+
+
+
+
+
+ Query parameters
+
+
+ Name
+ Description
+
+ 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
+
+
+
+
+
+
+ -
+ Schema
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ getSimulation
+ Get simulation by ID
+
+
+
+
+
+
+
+ /api/v1/solidity/{owner}/{slug}/simulation/{simulationId}
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X GET \
+-H "api-key: [[apiKey]]" \
+ -H "Accept: application/json" \
+ "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/simulation/{simulationId}"
+
+
+
+ import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.DebugAndSimulationApi;
+
+import java.io.File;
+import java.util.*;
+
+public class DebugAndSimulationApiExample {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: ApiKeyAuth
+ ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
+ ApiKeyAuth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //ApiKeyAuth.setApiKeyPrefix("Token");
+
+ // Create an instance of the API class
+ DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
+ String owner = owner_example; // String |
+ String slug = slug_example; // String |
+ String simulationId = simulationId_example; // String |
+
+ try {
+ solidity_service.GetSimulationResponse result = apiInstance.getSimulation(owner, slug, simulationId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DebugAndSimulationApi#getSimulation");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+
+ import 'package:openapi/api.dart';
+
+final api_instance = DefaultApi();
+
+final String owner = new String(); // String |
+final String slug = new String(); // String |
+final String simulationId = new String(); // String |
+
+try {
+ final result = await api_instance.getSimulation(owner, slug, simulationId);
+ print(result);
+} catch (e) {
+ print('Exception when calling DefaultApi->getSimulation: $e\n');
+}
+
+
+
+
+
+ import org.openapitools.client.api.DebugAndSimulationApi;
+
+public class DebugAndSimulationApiExample {
+ public static void main(String[] args) {
+ DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
+ String owner = owner_example; // String |
+ String slug = slug_example; // String |
+ String simulationId = simulationId_example; // String |
+
+ try {
+ solidity_service.GetSimulationResponse result = apiInstance.getSimulation(owner, slug, simulationId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DebugAndSimulationApi#getSimulation");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure API key authorization: (authentication scheme: ApiKeyAuth)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-key"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-key"];
+
+
+// Create an instance of the API class
+DebugAndSimulationApi *apiInstance = [[DebugAndSimulationApi alloc] init];
+String *owner = owner_example; // (default to null)
+String *slug = slug_example; // (default to null)
+String *simulationId = simulationId_example; // (default to null)
+
+// Get simulation by ID
+[apiInstance getSimulationWith:owner
+ slug:slug
+ simulationId:simulationId
+ completionHandler: ^(solidity_service.GetSimulationResponse output, NSError* error) {
+ if (output) {
+ NSLog(@"%@", output);
+ }
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+}];
+
+
+
+
+ var SentioApi = require('sentio_api');
+var defaultClient = SentioApi.ApiClient.instance;
+
+// Configure API key authorization: ApiKeyAuth
+var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
+ApiKeyAuth.apiKey = "YOUR API KEY";
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//ApiKeyAuth.apiKeyPrefix['api-key'] = "Token";
+
+// Create an instance of the API class
+var api = new SentioApi.DebugAndSimulationApi()
+var owner = owner_example; // {String}
+var slug = slug_example; // {String}
+var simulationId = simulationId_example; // {String}
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+api.getSimulation(owner, slug, simulationId, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class getSimulationExample
+ {
+ public void main()
+ {
+ // Configure API key authorization: ApiKeyAuth
+ Configuration.Default.ApiKey.Add("api-key", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
+
+ // Create an instance of the API class
+ var apiInstance = new DebugAndSimulationApi();
+ var owner = owner_example; // String | (default to null)
+ var slug = slug_example; // String | (default to null)
+ var simulationId = simulationId_example; // String | (default to null)
+
+ try {
+ // Get simulation by ID
+ solidity_service.GetSimulationResponse result = apiInstance.getSimulation(owner, slug, simulationId);
+ Debug.WriteLine(result);
+ } catch (Exception e) {
+ Debug.Print("Exception when calling DebugAndSimulationApi.getSimulation: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure API key authorization: ApiKeyAuth
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi();
+$owner = owner_example; // String |
+$slug = slug_example; // String |
+$simulationId = simulationId_example; // String |
+
+try {
+ $result = $api_instance->getSimulation($owner, $slug, $simulationId);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling DebugAndSimulationApi->getSimulation: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::DebugAndSimulationApi;
+
+# Configure API key authorization: ApiKeyAuth
+$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new();
+my $owner = owner_example; # String |
+my $slug = slug_example; # String |
+my $simulationId = simulationId_example; # String |
+
+eval {
+ my $result = $api_instance->getSimulation(owner => $owner, slug => $slug, simulationId => $simulationId);
+ print Dumper($result);
+};
+if ($@) {
+ warn "Exception when calling DebugAndSimulationApi->getSimulation: $@\n";
+}
+
+
+
+ from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: ApiKeyAuth
+openapi_client.configuration.api_key['api-key'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer'
+
+# Create an instance of the API class
+api_instance = openapi_client.DebugAndSimulationApi()
+owner = owner_example # String | (default to null)
+slug = slug_example # String | (default to null)
+simulationId = simulationId_example # String | (default to null)
+
+try:
+ # Get simulation by ID
+ api_response = api_instance.get_simulation(owner, slug, simulationId)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling DebugAndSimulationApi->getSimulation: %s\n" % e)
+
+
+
+ extern crate DebugAndSimulationApi;
+
+pub fn main() {
+ let owner = owner_example; // String
+ let slug = slug_example; // String
+ let simulationId = simulationId_example; // String
+
+ let mut context = DebugAndSimulationApi::Context::default();
+ let result = client.getSimulation(owner, slug, simulationId, &context).wait();
+
+ println!("{:?}", result);
+}
+
+
+
+
+ Scopes
+
+
+
+
+ Parameters
+
+ Path parameters
+
+
+ Name
+ Description
+
+ owner*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+ slug*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+ simulationId*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+
+
+
+
+
+
+ Responses
+
+
+
+
+
+
+ -
+ Schema
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ getSimulationBundleInProject
+ Get bundle simulation by ID
+
+
+
+
+
+
+
+ /api/v1/solidity/{owner}/{slug}/simulation_bundle/{bundleId}
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X GET \
+-H "api-key: [[apiKey]]" \
+ -H "Accept: application/json" \
+ "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/simulation_bundle/{bundleId}"
+
+
+
+ import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.DebugAndSimulationApi;
+
+import java.io.File;
+import java.util.*;
+
+public class DebugAndSimulationApiExample {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: ApiKeyAuth
+ ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
+ ApiKeyAuth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //ApiKeyAuth.setApiKeyPrefix("Token");
+
+ // Create an instance of the API class
+ DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
+ String owner = owner_example; // String |
+ String slug = slug_example; // String |
+ String bundleId = bundleId_example; // String |
+
+ try {
+ solidity_service.GetSimulationBundleResponse result = apiInstance.getSimulationBundleInProject(owner, slug, bundleId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DebugAndSimulationApi#getSimulationBundleInProject");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+
+ import 'package:openapi/api.dart';
+
+final api_instance = DefaultApi();
+
+final String owner = new String(); // String |
+final String slug = new String(); // String |
+final String bundleId = new String(); // String |
+
+try {
+ final result = await api_instance.getSimulationBundleInProject(owner, slug, bundleId);
+ print(result);
+} catch (e) {
+ print('Exception when calling DefaultApi->getSimulationBundleInProject: $e\n');
+}
+
+
+
+
+
+ import org.openapitools.client.api.DebugAndSimulationApi;
+
+public class DebugAndSimulationApiExample {
+ public static void main(String[] args) {
+ DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
+ String owner = owner_example; // String |
+ String slug = slug_example; // String |
+ String bundleId = bundleId_example; // String |
+
+ try {
+ solidity_service.GetSimulationBundleResponse result = apiInstance.getSimulationBundleInProject(owner, slug, bundleId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DebugAndSimulationApi#getSimulationBundleInProject");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure API key authorization: (authentication scheme: ApiKeyAuth)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-key"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-key"];
+
+
+// Create an instance of the API class
+DebugAndSimulationApi *apiInstance = [[DebugAndSimulationApi alloc] init];
+String *owner = owner_example; // (default to null)
+String *slug = slug_example; // (default to null)
+String *bundleId = bundleId_example; // (default to null)
+
+// Get bundle simulation by ID
+[apiInstance getSimulationBundleInProjectWith:owner
+ slug:slug
+ bundleId:bundleId
+ completionHandler: ^(solidity_service.GetSimulationBundleResponse output, NSError* error) {
+ if (output) {
+ NSLog(@"%@", output);
+ }
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+}];
+
+
+
+
+ var SentioApi = require('sentio_api');
+var defaultClient = SentioApi.ApiClient.instance;
+
+// Configure API key authorization: ApiKeyAuth
+var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
+ApiKeyAuth.apiKey = "YOUR API KEY";
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//ApiKeyAuth.apiKeyPrefix['api-key'] = "Token";
+
+// Create an instance of the API class
+var api = new SentioApi.DebugAndSimulationApi()
+var owner = owner_example; // {String}
+var slug = slug_example; // {String}
+var bundleId = bundleId_example; // {String}
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+api.getSimulationBundleInProject(owner, slug, bundleId, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class getSimulationBundleInProjectExample
+ {
+ public void main()
+ {
+ // Configure API key authorization: ApiKeyAuth
+ Configuration.Default.ApiKey.Add("api-key", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
+
+ // Create an instance of the API class
+ var apiInstance = new DebugAndSimulationApi();
+ var owner = owner_example; // String | (default to null)
+ var slug = slug_example; // String | (default to null)
+ var bundleId = bundleId_example; // String | (default to null)
+
+ try {
+ // Get bundle simulation by ID
+ solidity_service.GetSimulationBundleResponse result = apiInstance.getSimulationBundleInProject(owner, slug, bundleId);
+ Debug.WriteLine(result);
+ } catch (Exception e) {
+ Debug.Print("Exception when calling DebugAndSimulationApi.getSimulationBundleInProject: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure API key authorization: ApiKeyAuth
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi();
+$owner = owner_example; // String |
+$slug = slug_example; // String |
+$bundleId = bundleId_example; // String |
+
+try {
+ $result = $api_instance->getSimulationBundleInProject($owner, $slug, $bundleId);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling DebugAndSimulationApi->getSimulationBundleInProject: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::DebugAndSimulationApi;
+
+# Configure API key authorization: ApiKeyAuth
+$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new();
+my $owner = owner_example; # String |
+my $slug = slug_example; # String |
+my $bundleId = bundleId_example; # String |
+
+eval {
+ my $result = $api_instance->getSimulationBundleInProject(owner => $owner, slug => $slug, bundleId => $bundleId);
+ print Dumper($result);
+};
+if ($@) {
+ warn "Exception when calling DebugAndSimulationApi->getSimulationBundleInProject: $@\n";
+}
+
+
+
+ from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: ApiKeyAuth
+openapi_client.configuration.api_key['api-key'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer'
+
+# Create an instance of the API class
+api_instance = openapi_client.DebugAndSimulationApi()
+owner = owner_example # String | (default to null)
+slug = slug_example # String | (default to null)
+bundleId = bundleId_example # String | (default to null)
+
+try:
+ # Get bundle simulation by ID
+ api_response = api_instance.get_simulation_bundle_in_project(owner, slug, bundleId)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling DebugAndSimulationApi->getSimulationBundleInProject: %s\n" % e)
+
+
+
+ extern crate DebugAndSimulationApi;
+
+pub fn main() {
+ let owner = owner_example; // String
+ let slug = slug_example; // String
+ let bundleId = bundleId_example; // String
+
+ let mut context = DebugAndSimulationApi::Context::default();
+ let result = client.getSimulationBundleInProject(owner, slug, bundleId, &context).wait();
+
+ println!("{:?}", result);
+}
+
+
+
+
+ Scopes
+
+
+
+
+ Parameters
+
+ Path parameters
+
+
+ Name
+ Description
+
+ owner*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+ slug*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+ bundleId*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+
+
+
+
+
+
+ Responses
+
+
+
+
+
+
+ -
+ Schema
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ getSimulations
+ Get list of simulations
+
+
+
+
+
+
+
+ /api/v1/solidity/{owner}/{slug}/simulation
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X GET \
+-H "api-key: [[apiKey]]" \
+ -H "Accept: application/json" \
+ "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/simulation?labelContains=labelContains_example&page=56&pageSize=56"
+
+
+
+ import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.DebugAndSimulationApi;
+
+import java.io.File;
+import java.util.*;
+
+public class DebugAndSimulationApiExample {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: ApiKeyAuth
+ ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
+ ApiKeyAuth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //ApiKeyAuth.setApiKeyPrefix("Token");
+
+ // Create an instance of the API class
+ DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
+ String owner = owner_example; // String |
+ String slug = slug_example; // String |
+ String labelContains = labelContains_example; // String |
+ Integer page = 56; // Integer |
+ Integer pageSize = 56; // Integer |
+
+ try {
+ solidity_service.GetSimulationsResponse result = apiInstance.getSimulations(owner, slug, labelContains, page, pageSize);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DebugAndSimulationApi#getSimulations");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+
+ import 'package:openapi/api.dart';
+
+final api_instance = DefaultApi();
+
+final String owner = new String(); // String |
+final String slug = new String(); // String |
+final String labelContains = new String(); // String |
+final Integer page = new Integer(); // Integer |
+final Integer pageSize = new Integer(); // Integer |
+
+try {
+ final result = await api_instance.getSimulations(owner, slug, labelContains, page, pageSize);
+ print(result);
+} catch (e) {
+ print('Exception when calling DefaultApi->getSimulations: $e\n');
+}
+
+
+
+
+
+ import org.openapitools.client.api.DebugAndSimulationApi;
+
+public class DebugAndSimulationApiExample {
+ public static void main(String[] args) {
+ DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
+ String owner = owner_example; // String |
+ String slug = slug_example; // String |
+ String labelContains = labelContains_example; // String |
+ Integer page = 56; // Integer |
+ Integer pageSize = 56; // Integer |
+
+ try {
+ solidity_service.GetSimulationsResponse result = apiInstance.getSimulations(owner, slug, labelContains, page, pageSize);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DebugAndSimulationApi#getSimulations");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure API key authorization: (authentication scheme: ApiKeyAuth)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-key"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-key"];
+
+
+// Create an instance of the API class
+DebugAndSimulationApi *apiInstance = [[DebugAndSimulationApi alloc] init];
+String *owner = owner_example; // (default to null)
+String *slug = slug_example; // (default to null)
+String *labelContains = labelContains_example; // (optional) (default to null)
+Integer *page = 56; // (optional) (default to null)
+Integer *pageSize = 56; // (optional) (default to null)
+
+// Get list of simulations
+[apiInstance getSimulationsWith:owner
+ slug:slug
+ labelContains:labelContains
+ page:page
+ pageSize:pageSize
+ completionHandler: ^(solidity_service.GetSimulationsResponse output, NSError* error) {
+ if (output) {
+ NSLog(@"%@", output);
+ }
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+}];
+
+
+
+
+ var SentioApi = require('sentio_api');
+var defaultClient = SentioApi.ApiClient.instance;
+
+// Configure API key authorization: ApiKeyAuth
+var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
+ApiKeyAuth.apiKey = "YOUR API KEY";
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//ApiKeyAuth.apiKeyPrefix['api-key'] = "Token";
+
+// Create an instance of the API class
+var api = new SentioApi.DebugAndSimulationApi()
+var owner = owner_example; // {String}
+var slug = slug_example; // {String}
+var opts = {
+ 'labelContains': labelContains_example, // {String}
+ 'page': 56, // {Integer}
+ 'pageSize': 56 // {Integer}
+};
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+api.getSimulations(owner, slug, opts, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class getSimulationsExample
+ {
+ public void main()
+ {
+ // Configure API key authorization: ApiKeyAuth
+ Configuration.Default.ApiKey.Add("api-key", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
+
+ // Create an instance of the API class
+ var apiInstance = new DebugAndSimulationApi();
+ var owner = owner_example; // String | (default to null)
+ var slug = slug_example; // String | (default to null)
+ var labelContains = labelContains_example; // String | (optional) (default to null)
+ var page = 56; // Integer | (optional) (default to null)
+ var pageSize = 56; // Integer | (optional) (default to null)
+
+ try {
+ // Get list of simulations
+ solidity_service.GetSimulationsResponse result = apiInstance.getSimulations(owner, slug, labelContains, page, pageSize);
+ Debug.WriteLine(result);
+ } catch (Exception e) {
+ Debug.Print("Exception when calling DebugAndSimulationApi.getSimulations: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure API key authorization: ApiKeyAuth
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi();
+$owner = owner_example; // String |
+$slug = slug_example; // String |
+$labelContains = labelContains_example; // String |
+$page = 56; // Integer |
+$pageSize = 56; // Integer |
+
+try {
+ $result = $api_instance->getSimulations($owner, $slug, $labelContains, $page, $pageSize);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling DebugAndSimulationApi->getSimulations: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::DebugAndSimulationApi;
+
+# Configure API key authorization: ApiKeyAuth
+$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new();
+my $owner = owner_example; # String |
+my $slug = slug_example; # String |
+my $labelContains = labelContains_example; # String |
+my $page = 56; # Integer |
+my $pageSize = 56; # Integer |
+
+eval {
+ my $result = $api_instance->getSimulations(owner => $owner, slug => $slug, labelContains => $labelContains, page => $page, pageSize => $pageSize);
+ print Dumper($result);
+};
+if ($@) {
+ warn "Exception when calling DebugAndSimulationApi->getSimulations: $@\n";
+}
+
+
+
+ from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: ApiKeyAuth
+openapi_client.configuration.api_key['api-key'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer'
+
+# Create an instance of the API class
+api_instance = openapi_client.DebugAndSimulationApi()
+owner = owner_example # String | (default to null)
+slug = slug_example # String | (default to null)
+labelContains = labelContains_example # String | (optional) (default to null)
+page = 56 # Integer | (optional) (default to null)
+pageSize = 56 # Integer | (optional) (default to null)
+
+try:
+ # Get list of simulations
+ api_response = api_instance.get_simulations(owner, slug, labelContains=labelContains, page=page, pageSize=pageSize)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling DebugAndSimulationApi->getSimulations: %s\n" % e)
+
+
+
+ extern crate DebugAndSimulationApi;
+
+pub fn main() {
+ let owner = owner_example; // String
+ let slug = slug_example; // String
+ let labelContains = labelContains_example; // String
+ let page = 56; // Integer
+ let pageSize = 56; // Integer
+
+ let mut context = DebugAndSimulationApi::Context::default();
+ let result = client.getSimulations(owner, slug, labelContains, page, pageSize, &context).wait();
+
+ println!("{:?}", result);
+}
+
+
+
+
+ Scopes
+
+
+
+
+ Parameters
+
+ Path parameters
+
+
+ Name
+ Description
+
+ owner*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+ slug*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+
+
+
+
+
+ Query parameters
+
+
+ Name
+ Description
+
+ labelContains
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+ page
+
+
+
+
+
+
+
+ Integer
+
+
+ (int32)
+
+
+
+
+
+
+
+
+ pageSize
+
+
+
+
+
+
+
+ Integer
+
+
+ (int32)
+
+
+
+
+
+
+
+
+
+
+ Responses
+
+
+
+
+
+
+ -
+ Schema
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ searchTransactions
+ Search transactions
+
+
+
+
+
+
+
+ /api/v1/solidity/{owner}/{slug}/search_transactions
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X GET \
+-H "api-key: [[apiKey]]" \
+ -H "Accept: application/json" \
+ "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/search_transactions?chainId=&address=&includeDirect=true&includeTrace=true&includeIn=true&includeOut=true&startBlock=startBlock_example&endBlock=endBlock_example&startTimestamp=startTimestamp_example&endTimestamp=endTimestamp_example&transactionStatus=&methodSignature=methodSignature_example&limit=56&pageToken=BYTE_ARRAY_DATA_HERE"
+
+
+
+ import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.DebugAndSimulationApi;
+
+import java.io.File;
+import java.util.*;
+
+public class DebugAndSimulationApiExample {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+ // Configure API key authorization: ApiKeyAuth
+ ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
+ ApiKeyAuth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //ApiKeyAuth.setApiKeyPrefix("Token");
+
+ // Create an instance of the API class
+ DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
+ String owner = owner_example; // String |
+ String slug = slug_example; // String |
+ array[String] chainId = ; // array[String] |
+ array[String] address = ; // array[String] |
+ Boolean includeDirect = true; // Boolean |
+ Boolean includeTrace = true; // Boolean |
+ Boolean includeIn = true; // Boolean |
+ Boolean includeOut = true; // Boolean |
+ String startBlock = startBlock_example; // String |
+ String endBlock = endBlock_example; // String |
+ String startTimestamp = startTimestamp_example; // String |
+ String endTimestamp = endTimestamp_example; // String |
+ array[Integer] transactionStatus = ; // array[Integer] |
+ String methodSignature = methodSignature_example; // String |
+ Integer limit = 56; // Integer |
+ byte[] pageToken = BYTE_ARRAY_DATA_HERE; // byte[] |
+
+ try {
+ txindex.EvmSearchTransactionsResponse result = apiInstance.searchTransactions(owner, slug, chainId, address, includeDirect, includeTrace, includeIn, includeOut, startBlock, endBlock, startTimestamp, endTimestamp, transactionStatus, methodSignature, limit, pageToken);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DebugAndSimulationApi#searchTransactions");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+
+ import 'package:openapi/api.dart';
+
+final api_instance = DefaultApi();
+
+final String owner = new String(); // String |
+final String slug = new String(); // String |
+final array[String] chainId = new array[String](); // array[String] |
+final array[String] address = new array[String](); // array[String] |
+final Boolean includeDirect = new Boolean(); // Boolean |
+final Boolean includeTrace = new Boolean(); // Boolean |
+final Boolean includeIn = new Boolean(); // Boolean |
+final Boolean includeOut = new Boolean(); // Boolean |
+final String startBlock = new String(); // String |
+final String endBlock = new String(); // String |
+final String startTimestamp = new String(); // String |
+final String endTimestamp = new String(); // String |
+final array[Integer] transactionStatus = new array[Integer](); // array[Integer] |
+final String methodSignature = new String(); // String |
+final Integer limit = new Integer(); // Integer |
+final byte[] pageToken = new byte[](); // byte[] |
+
+try {
+ final result = await api_instance.searchTransactions(owner, slug, chainId, address, includeDirect, includeTrace, includeIn, includeOut, startBlock, endBlock, startTimestamp, endTimestamp, transactionStatus, methodSignature, limit, pageToken);
+ print(result);
+} catch (e) {
+ print('Exception when calling DefaultApi->searchTransactions: $e\n');
+}
+
+
+
+
+
+ import org.openapitools.client.api.DebugAndSimulationApi;
+
+public class DebugAndSimulationApiExample {
+ public static void main(String[] args) {
+ DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
+ String owner = owner_example; // String |
+ String slug = slug_example; // String |
+ array[String] chainId = ; // array[String] |
+ array[String] address = ; // array[String] |
+ Boolean includeDirect = true; // Boolean |
+ Boolean includeTrace = true; // Boolean |
+ Boolean includeIn = true; // Boolean |
+ Boolean includeOut = true; // Boolean |
+ String startBlock = startBlock_example; // String |
+ String endBlock = endBlock_example; // String |
+ String startTimestamp = startTimestamp_example; // String |
+ String endTimestamp = endTimestamp_example; // String |
+ array[Integer] transactionStatus = ; // array[Integer] |
+ String methodSignature = methodSignature_example; // String |
+ Integer limit = 56; // Integer |
+ byte[] pageToken = BYTE_ARRAY_DATA_HERE; // byte[] |
+
+ try {
+ txindex.EvmSearchTransactionsResponse result = apiInstance.searchTransactions(owner, slug, chainId, address, includeDirect, includeTrace, includeIn, includeOut, startBlock, endBlock, startTimestamp, endTimestamp, transactionStatus, methodSignature, limit, pageToken);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DebugAndSimulationApi#searchTransactions");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure API key authorization: (authentication scheme: ApiKeyAuth)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-key"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-key"];
+
+
+// Create an instance of the API class
+DebugAndSimulationApi *apiInstance = [[DebugAndSimulationApi alloc] init];
+String *owner = owner_example; // (default to null)
+String *slug = slug_example; // (default to null)
+array[String] *chainId = ; // (optional) (default to null)
+array[String] *address = ; // (optional) (default to null)
+Boolean *includeDirect = true; // (optional) (default to null)
+Boolean *includeTrace = true; // (optional) (default to null)
+Boolean *includeIn = true; // (optional) (default to null)
+Boolean *includeOut = true; // (optional) (default to null)
+String *startBlock = startBlock_example; // (optional) (default to null)
+String *endBlock = endBlock_example; // (optional) (default to null)
+String *startTimestamp = startTimestamp_example; // (optional) (default to null)
+String *endTimestamp = endTimestamp_example; // (optional) (default to null)
+array[Integer] *transactionStatus = ; // (optional) (default to null)
+String *methodSignature = methodSignature_example; // (optional) (default to null)
+Integer *limit = 56; // (optional) (default to null)
+byte[] *pageToken = BYTE_ARRAY_DATA_HERE; // (optional) (default to null)
+
+// Search transactions
+[apiInstance searchTransactionsWith:owner
+ slug:slug
+ chainId:chainId
+ address:address
+ includeDirect:includeDirect
+ includeTrace:includeTrace
+ includeIn:includeIn
+ includeOut:includeOut
+ startBlock:startBlock
+ endBlock:endBlock
+ startTimestamp:startTimestamp
+ endTimestamp:endTimestamp
+ transactionStatus:transactionStatus
+ methodSignature:methodSignature
+ limit:limit
+ pageToken:pageToken
+ completionHandler: ^(txindex.EvmSearchTransactionsResponse output, NSError* error) {
+ if (output) {
+ NSLog(@"%@", output);
+ }
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+}];
+
+
+
+
+ var SentioApi = require('sentio_api');
+var defaultClient = SentioApi.ApiClient.instance;
+
+// Configure API key authorization: ApiKeyAuth
+var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
+ApiKeyAuth.apiKey = "YOUR API KEY";
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//ApiKeyAuth.apiKeyPrefix['api-key'] = "Token";
+
+// Create an instance of the API class
+var api = new SentioApi.DebugAndSimulationApi()
+var owner = owner_example; // {String}
+var slug = slug_example; // {String}
+var opts = {
+ 'chainId': , // {array[String]}
+ 'address': , // {array[String]}
+ 'includeDirect': true, // {Boolean}
+ 'includeTrace': true, // {Boolean}
+ 'includeIn': true, // {Boolean}
+ 'includeOut': true, // {Boolean}
+ 'startBlock': startBlock_example, // {String}
+ 'endBlock': endBlock_example, // {String}
+ 'startTimestamp': startTimestamp_example, // {String}
+ 'endTimestamp': endTimestamp_example, // {String}
+ 'transactionStatus': , // {array[Integer]}
+ 'methodSignature': methodSignature_example, // {String}
+ 'limit': 56, // {Integer}
+ 'pageToken': BYTE_ARRAY_DATA_HERE // {byte[]}
+};
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+api.searchTransactions(owner, slug, opts, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class searchTransactionsExample
+ {
+ public void main()
+ {
+ // Configure API key authorization: ApiKeyAuth
+ Configuration.Default.ApiKey.Add("api-key", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
+
+ // Create an instance of the API class
+ var apiInstance = new DebugAndSimulationApi();
+ var owner = owner_example; // String | (default to null)
+ var slug = slug_example; // String | (default to null)
+ var chainId = new array[String](); // array[String] | (optional) (default to null)
+ var address = new array[String](); // array[String] | (optional) (default to null)
+ var includeDirect = true; // Boolean | (optional) (default to null)
+ var includeTrace = true; // Boolean | (optional) (default to null)
+ var includeIn = true; // Boolean | (optional) (default to null)
+ var includeOut = true; // Boolean | (optional) (default to null)
+ var startBlock = startBlock_example; // String | (optional) (default to null)
+ var endBlock = endBlock_example; // String | (optional) (default to null)
+ var startTimestamp = startTimestamp_example; // String | (optional) (default to null)
+ var endTimestamp = endTimestamp_example; // String | (optional) (default to null)
+ var transactionStatus = new array[Integer](); // array[Integer] | (optional) (default to null)
+ var methodSignature = methodSignature_example; // String | (optional) (default to null)
+ var limit = 56; // Integer | (optional) (default to null)
+ var pageToken = BYTE_ARRAY_DATA_HERE; // byte[] | (optional) (default to null)
+
+ try {
+ // Search transactions
+ txindex.EvmSearchTransactionsResponse result = apiInstance.searchTransactions(owner, slug, chainId, address, includeDirect, includeTrace, includeIn, includeOut, startBlock, endBlock, startTimestamp, endTimestamp, transactionStatus, methodSignature, limit, pageToken);
+ Debug.WriteLine(result);
+ } catch (Exception e) {
+ Debug.Print("Exception when calling DebugAndSimulationApi.searchTransactions: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure API key authorization: ApiKeyAuth
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi();
+$owner = owner_example; // String |
+$slug = slug_example; // String |
+$chainId = ; // array[String] |
+$address = ; // array[String] |
+$includeDirect = true; // Boolean |
+$includeTrace = true; // Boolean |
+$includeIn = true; // Boolean |
+$includeOut = true; // Boolean |
+$startBlock = startBlock_example; // String |
+$endBlock = endBlock_example; // String |
+$startTimestamp = startTimestamp_example; // String |
+$endTimestamp = endTimestamp_example; // String |
+$transactionStatus = ; // array[Integer] |
+$methodSignature = methodSignature_example; // String |
+$limit = 56; // Integer |
+$pageToken = BYTE_ARRAY_DATA_HERE; // byte[] |
+
+try {
+ $result = $api_instance->searchTransactions($owner, $slug, $chainId, $address, $includeDirect, $includeTrace, $includeIn, $includeOut, $startBlock, $endBlock, $startTimestamp, $endTimestamp, $transactionStatus, $methodSignature, $limit, $pageToken);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling DebugAndSimulationApi->searchTransactions: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::DebugAndSimulationApi;
+
+# Configure API key authorization: ApiKeyAuth
+$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new();
+my $owner = owner_example; # String |
+my $slug = slug_example; # String |
+my $chainId = []; # array[String] |
+my $address = []; # array[String] |
+my $includeDirect = true; # Boolean |
+my $includeTrace = true; # Boolean |
+my $includeIn = true; # Boolean |
+my $includeOut = true; # Boolean |
+my $startBlock = startBlock_example; # String |
+my $endBlock = endBlock_example; # String |
+my $startTimestamp = startTimestamp_example; # String |
+my $endTimestamp = endTimestamp_example; # String |
+my $transactionStatus = []; # array[Integer] |
+my $methodSignature = methodSignature_example; # String |
+my $limit = 56; # Integer |
+my $pageToken = BYTE_ARRAY_DATA_HERE; # byte[] |
+
+eval {
+ my $result = $api_instance->searchTransactions(owner => $owner, slug => $slug, chainId => $chainId, address => $address, includeDirect => $includeDirect, includeTrace => $includeTrace, includeIn => $includeIn, includeOut => $includeOut, startBlock => $startBlock, endBlock => $endBlock, startTimestamp => $startTimestamp, endTimestamp => $endTimestamp, transactionStatus => $transactionStatus, methodSignature => $methodSignature, limit => $limit, pageToken => $pageToken);
+ print Dumper($result);
+};
+if ($@) {
+ warn "Exception when calling DebugAndSimulationApi->searchTransactions: $@\n";
+}
+
+
+
+ from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: ApiKeyAuth
+openapi_client.configuration.api_key['api-key'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer'
+
+# Create an instance of the API class
+api_instance = openapi_client.DebugAndSimulationApi()
+owner = owner_example # String | (default to null)
+slug = slug_example # String | (default to null)
+chainId = # array[String] | (optional) (default to null)
+address = # array[String] | (optional) (default to null)
+includeDirect = true # Boolean | (optional) (default to null)
+includeTrace = true # Boolean | (optional) (default to null)
+includeIn = true # Boolean | (optional) (default to null)
+includeOut = true # Boolean | (optional) (default to null)
+startBlock = startBlock_example # String | (optional) (default to null)
+endBlock = endBlock_example # String | (optional) (default to null)
+startTimestamp = startTimestamp_example # String | (optional) (default to null)
+endTimestamp = endTimestamp_example # String | (optional) (default to null)
+transactionStatus = # array[Integer] | (optional) (default to null)
+methodSignature = methodSignature_example # String | (optional) (default to null)
+limit = 56 # Integer | (optional) (default to null)
+pageToken = BYTE_ARRAY_DATA_HERE # byte[] | (optional) (default to null)
+
+try:
+ # Search transactions
+ api_response = api_instance.search_transactions(owner, slug, chainId=chainId, address=address, includeDirect=includeDirect, includeTrace=includeTrace, includeIn=includeIn, includeOut=includeOut, startBlock=startBlock, endBlock=endBlock, startTimestamp=startTimestamp, endTimestamp=endTimestamp, transactionStatus=transactionStatus, methodSignature=methodSignature, limit=limit, pageToken=pageToken)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling DebugAndSimulationApi->searchTransactions: %s\n" % e)
+
+
+
+ extern crate DebugAndSimulationApi;
+
+pub fn main() {
+ let owner = owner_example; // String
+ let slug = slug_example; // String
+ let chainId = ; // array[String]
+ let address = ; // array[String]
+ let includeDirect = true; // Boolean
+ let includeTrace = true; // Boolean
+ let includeIn = true; // Boolean
+ let includeOut = true; // Boolean
+ let startBlock = startBlock_example; // String
+ let endBlock = endBlock_example; // String
+ let startTimestamp = startTimestamp_example; // String
+ let endTimestamp = endTimestamp_example; // String
+ let transactionStatus = ; // array[Integer]
+ let methodSignature = methodSignature_example; // String
+ let limit = 56; // Integer
+ let pageToken = BYTE_ARRAY_DATA_HERE; // byte[]
+
+ let mut context = DebugAndSimulationApi::Context::default();
+ let result = client.searchTransactions(owner, slug, chainId, address, includeDirect, includeTrace, includeIn, includeOut, startBlock, endBlock, startTimestamp, endTimestamp, transactionStatus, methodSignature, limit, pageToken, &context).wait();
+
+ println!("{:?}", result);
+}
+
+
+
+
+ Scopes
+
+
+
+
+ Parameters
+
+ Path parameters
+
+
+ Name
+ Description
+
+ owner*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+ slug*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+
+
+
+
+
+ Query parameters
+
+
+ Name
+ Description
+
+ chainId
+
+
+
+
+
+
+
+ array[String]
+
+
+
+
+
+
+
+
+ address
+
+
+
+
+
+
+
+ array[String]
+
+
+
+
+
+
+
+
+ includeDirect
+
+
+
+
+
+
+
+ Boolean
+
+
+
+
+
+
+
+
+ includeTrace
+
+
+
+
+
+
+
+ Boolean
+
+
+
+
+
+
+
+
+ includeIn
+
+
+
+
+
+
+
+ Boolean
+
+
+
+
+
+
+
+
+ includeOut
+
+
+
+
+
+
+
+ Boolean
+
+
+
+
+
+
+
+
+ startBlock
+
+
+
+
+
+
+
+ String
+
+
+ (int64)
+
+
+
+
+
+
+
+
+ endBlock
+
+
+
+
+
+
+
+ String
+
+
+ (int64)
+
+
+
+
+
+
+
+
+ startTimestamp
+
+
+
+
+
+
+
+ String
+
+
+ (int64)
+
+
+
+
+
+
+
+
+ endTimestamp
+
+
+
+
+
+
+
+ String
+
+
+ (int64)
+
+
+
+
+
+
+
+
+ transactionStatus
+
+
+
+
+
+
+
+ array[Integer]
+
+
+ (int32)
+
+
+
+
+
+
+
+
+ methodSignature
+
+
+
+
+
+
+
+ String
+
+
+
+
+
+
+
+
+ limit
+
+
+
+
+
+
+
+ Integer
+
+
+ (int32)
+
+
+
+
+
+
+
+
+ pageToken
+
+
+
+
+
+
+
+ byte[]
+
+
+ (byte)
+
+
+
+
- timeRange.start.absoluteTime
-
+
+
+ Responses
+
+
+
+
+
+
+ -
+ Schema
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ simulateTransaction
+ Run simulation
+
+
+
+
+ Create a new transaction simulation. The simulation body should be included in the request body.
+Your simulations will be saved, and a unique ID for each simulation is included in the response. It will be useful for fetching simulation details.
+
+
+ /api/v1/solidity/{owner}/{slug}/{chainId}/simulation
+
+
Usage and SDK Samples
+
+
+
+
+
+ curl -X POST \
+-H "api-key: [[apiKey]]" \
+ -H "Accept: application/json" \
+ -H "Content-Type: application/json" \
+ "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/{chainId}/simulation" \
+ -d ''
+
+
+
+ import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.DebugAndSimulationApi;
+import java.io.File;
+import java.util.*;
-
-
-
-
- String
-
-
- (int64)
-
+public class DebugAndSimulationApiExample {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-
-
-
-
+ // Configure API key authorization: ApiKeyAuth
+ ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
+ ApiKeyAuth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //ApiKeyAuth.setApiKeyPrefix("Token");
- timeRange.end.relativeTime.unit
-
+ // Create an instance of the API class
+ DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
+ String owner = owner_example; // String |
+ String slug = slug_example; // String |
+ String chainId = chainId_example; // String |
+ SolidityServiceSolidityAPIServiceSimulateTransactionBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBody |
+
+ try {
+ solidity_service.SimulateTransactionResponse result = apiInstance.simulateTransaction(owner, slug, chainId, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DebugAndSimulationApi#simulateTransaction");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+
+ import 'package:openapi/api.dart';
+
+final api_instance = DefaultApi();
+
+final String owner = new String(); // String |
+final String slug = new String(); // String |
+final String chainId = new String(); // String |
+final SolidityServiceSolidityAPIServiceSimulateTransactionBody body = new SolidityServiceSolidityAPIServiceSimulateTransactionBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBody |
+
+try {
+ final result = await api_instance.simulateTransaction(owner, slug, chainId, body);
+ print(result);
+} catch (e) {
+ print('Exception when calling DefaultApi->simulateTransaction: $e\n');
+}
+
+
+
+
+
+ import org.openapitools.client.api.DebugAndSimulationApi;
+
+public class DebugAndSimulationApiExample {
+ public static void main(String[] args) {
+ DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
+ String owner = owner_example; // String |
+ String slug = slug_example; // String |
+ String chainId = chainId_example; // String |
+ SolidityServiceSolidityAPIServiceSimulateTransactionBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBody |
+
+ try {
+ solidity_service.SimulateTransactionResponse result = apiInstance.simulateTransaction(owner, slug, chainId, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DebugAndSimulationApi#simulateTransaction");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure API key authorization: (authentication scheme: ApiKeyAuth)
+[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-key"];
+// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-key"];
+
+
+// Create an instance of the API class
+DebugAndSimulationApi *apiInstance = [[DebugAndSimulationApi alloc] init];
+String *owner = owner_example; // (default to null)
+String *slug = slug_example; // (default to null)
+String *chainId = chainId_example; // (default to null)
+SolidityServiceSolidityAPIServiceSimulateTransactionBody *body = ; //
+
+// Run simulation
+[apiInstance simulateTransactionWith:owner
+ slug:slug
+ chainId:chainId
+ body:body
+ completionHandler: ^(solidity_service.SimulateTransactionResponse output, NSError* error) {
+ if (output) {
+ NSLog(@"%@", output);
+ }
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+}];
+
+
+
+
+ var SentioApi = require('sentio_api');
+var defaultClient = SentioApi.ApiClient.instance;
+
+// Configure API key authorization: ApiKeyAuth
+var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
+ApiKeyAuth.apiKey = "YOUR API KEY";
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//ApiKeyAuth.apiKeyPrefix['api-key'] = "Token";
+
+// Create an instance of the API class
+var api = new SentioApi.DebugAndSimulationApi()
+var owner = owner_example; // {String}
+var slug = slug_example; // {String}
+var chainId = chainId_example; // {String}
+var body = ; // {SolidityServiceSolidityAPIServiceSimulateTransactionBody}
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+api.simulateTransaction(owner, slug, chainId, body, callback);
+
+
+
+
+
+ using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+ public class simulateTransactionExample
+ {
+ public void main()
+ {
+ // Configure API key authorization: ApiKeyAuth
+ Configuration.Default.ApiKey.Add("api-key", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
+ // Create an instance of the API class
+ var apiInstance = new DebugAndSimulationApi();
+ var owner = owner_example; // String | (default to null)
+ var slug = slug_example; // String | (default to null)
+ var chainId = chainId_example; // String | (default to null)
+ var body = new SolidityServiceSolidityAPIServiceSimulateTransactionBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBody |
+
+ try {
+ // Run simulation
+ solidity_service.SimulateTransactionResponse result = apiInstance.simulateTransaction(owner, slug, chainId, body);
+ Debug.WriteLine(result);
+ } catch (Exception e) {
+ Debug.Print("Exception when calling DebugAndSimulationApi.simulateTransaction: " + e.Message );
+ }
+ }
+ }
+}
+
+
-
-
-
-
- String
-
+
+ <?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');
- timeRange.end.relativeTime.value
-
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi();
+$owner = owner_example; // String |
+$slug = slug_example; // String |
+$chainId = chainId_example; // String |
+$body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBody |
+try {
+ $result = $api_instance->simulateTransaction($owner, $slug, $chainId, $body);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling DebugAndSimulationApi->simulateTransaction: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
-
-
-
-
- Integer
-
-
- (int32)
-
+
+ use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::DebugAndSimulationApi;
-
-
-
-
-
+# Configure API key authorization: ApiKeyAuth
+$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
+# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
- timeRange.end.relativeTime.align
-
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new();
+my $owner = owner_example; # String |
+my $slug = slug_example; # String |
+my $chainId = chainId_example; # String |
+my $body = WWW::OPenAPIClient::Object::SolidityServiceSolidityAPIServiceSimulateTransactionBody->new(); # SolidityServiceSolidityAPIServiceSimulateTransactionBody |
+eval {
+ my $result = $api_instance->simulateTransaction(owner => $owner, slug => $slug, chainId => $chainId, body => $body);
+ print Dumper($result);
+};
+if ($@) {
+ warn "Exception when calling DebugAndSimulationApi->simulateTransaction: $@\n";
+}
+
-
-
-
-
- String
-
+
+ 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'
- timeRange.end.absoluteTime
-
+# Create an instance of the API class
+api_instance = openapi_client.DebugAndSimulationApi()
+owner = owner_example # String | (default to null)
+slug = slug_example # String | (default to null)
+chainId = chainId_example # String | (default to null)
+body = # SolidityServiceSolidityAPIServiceSimulateTransactionBody |
+try:
+ # Run simulation
+ api_response = api_instance.simulate_transaction(owner, slug, chainId, body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling DebugAndSimulationApi->simulateTransaction: %s\n" % e)
+
-
-
-
-
- String
-
-
- (int64)
-
+
+ extern crate DebugAndSimulationApi;
-
-
-
-
-
+pub fn main() {
+ let owner = owner_example; // String
+ let slug = slug_example; // String
+ let chainId = chainId_example; // String
+ let body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBody
- timeRange.step
-
+ let mut context = DebugAndSimulationApi::Context::default();
+ let result = client.simulateTransaction(owner, slug, chainId, body, &context).wait();
+ println!("{:?}", result);
+}
+
+
+
-
-
-
-
- String
-
-
- (int64)
-
+ Scopes
+
+
+
-
-
-
-
-
+ Parameters
- timeRange.interval.value
+ Path parameters
+
+
+ Name
+ Description
+
+ owner*
-
+
- Double
+ String
-
- (double)
-
+
+ Required
+
- timeRange.interval.unit
+ slug*
-
+
@@ -9630,16 +17123,19 @@ Parameters
+
+ Required
+
- timeRange.timezone
+ chainId*
-
+
@@ -9647,91 +17143,86 @@ Parameters
+
+ Required
+
- limit
-
-
-
-
-
-
-
- Integer
-
-
- (int32)
-
+
-
-
-
-
-
- offset
+ Body parameters
+
+
+ Name
+ Description
+
+ body *
+
+
+
- version
-
-
-
-
-
-
-
- Integer
-
-
- (int32)
-
+
-
-
-
-
-
-
Responses
-
-
+
+
-
+
-
-
-
+
+
+
-
+
-
-
+
+
- queryRange
- Metric range queries
+ simulateTransactionBundle
+ Run bundle simulation
- 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)
+ You could also create bundle simulations so that one transaction could be executed one after another. For `blockNumber` `transactionIndex` `networkId` `stateOverrides` and `blockOverrides` fields, only the first simulation takes effect.
- /api/v1/metrics/{owner}/{slug}/query_range
+ /api/v1/solidity/{owner}/{slug}/{chainId}/simulation_bundle
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_range" \
+ "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/{chainId}/simulation_bundle" \
-d ''
-
+
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
-import org.openapitools.client.api.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();
@@ -9858,16 +17347,17 @@ Usage and SDK Samples
//ApiKeyAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
- DataApi apiInstance = new DataApi();
- String owner = owner_example; // String | username or organization name
- String slug = slug_example; // String | project slug
- MetricsServiceObservabilityServiceQueryRangeBody body = ; // MetricsServiceObservabilityServiceQueryRangeBody |
+ DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
+ String owner = owner_example; // String |
+ String slug = slug_example; // String |
+ String chainId = chainId_example; // String |
+ SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody |
try {
- metrics_service.MetricsQueryResponse result = apiInstance.queryRange(owner, slug, body);
+ solidity_service.SimulateTransactionBundleResponse result = apiInstance.simulateTransactionBundle(owner, slug, chainId, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#queryRange");
+ System.err.println("Exception when calling DebugAndSimulationApi#simulateTransactionBundle");
e.printStackTrace();
}
}
@@ -9875,50 +17365,52 @@ 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 chainId = new String(); // String |
+final SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody body = new SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody |
try {
- final result = await api_instance.queryRange(owner, slug, body);
+ final result = await api_instance.simulateTransactionBundle(owner, slug, chainId, body);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->queryRange: $e\n');
+ print('Exception when calling DefaultApi->simulateTransactionBundle: $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();
- String owner = owner_example; // String | username or organization name
- String slug = slug_example; // String | project slug
- MetricsServiceObservabilityServiceQueryRangeBody body = ; // MetricsServiceObservabilityServiceQueryRangeBody |
+ DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
+ String owner = owner_example; // String |
+ String slug = slug_example; // String |
+ String chainId = chainId_example; // String |
+ SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody |
try {
- metrics_service.MetricsQueryResponse result = apiInstance.queryRange(owner, slug, body);
+ solidity_service.SimulateTransactionBundleResponse result = apiInstance.simulateTransactionBundle(owner, slug, chainId, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#queryRange");
+ System.err.println("Exception when calling DebugAndSimulationApi#simulateTransactionBundle");
e.printStackTrace();
}
}
}
-
+
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
@@ -9928,16 +17420,18 @@ 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 = ; //
+DebugAndSimulationApi *apiInstance = [[DebugAndSimulationApi alloc] init];
+String *owner = owner_example; // (default to null)
+String *slug = slug_example; // (default to null)
+String *chainId = chainId_example; // (default to null)
+SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody *body = ; //
-// Metric range queries
-[apiInstance queryRangeWith:owner
+// Run bundle simulation
+[apiInstance simulateTransactionBundleWith:owner
slug:slug
+ chainId:chainId
body:body
- completionHandler: ^(metrics_service.MetricsQueryResponse output, NSError* error) {
+ completionHandler: ^(solidity_service.SimulateTransactionBundleResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -9948,7 +17442,7 @@ Usage and SDK Samples
-
+
var SentioApi = require('sentio_api');
var defaultClient = SentioApi.ApiClient.instance;
@@ -9959,10 +17453,11 @@ Usage and SDK Samples
//ApiKeyAuth.apiKeyPrefix['api-key'] = "Token";
// Create an instance of the API class
-var api = new SentioApi.DataApi()
-var owner = owner_example; // {String} username or organization name
-var slug = slug_example; // {String} project slug
-var body = ; // {MetricsServiceObservabilityServiceQueryRangeBody}
+var api = new SentioApi.DebugAndSimulationApi()
+var owner = owner_example; // {String}
+var slug = slug_example; // {String}
+var chainId = chainId_example; // {String}
+var body = ; // {SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody}
var callback = function(error, data, response) {
if (error) {
@@ -9971,14 +17466,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.queryRange(owner, slug, body, callback);
+api.simulateTransactionBundle(owner, slug, chainId, body, callback);
-
-
+
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
@@ -9987,7 +17482,7 @@ Usage and SDK Samples
namespace Example
{
- public class queryRangeExample
+ public class simulateTransactionBundleExample
{
public void main()
{
@@ -9997,17 +17492,18 @@ Usage and SDK Samples
// Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
// Create an instance of the API class
- var apiInstance = new DataApi();
- var owner = owner_example; // String | username or organization name (default to null)
- var slug = slug_example; // String | project slug (default to null)
- var body = new MetricsServiceObservabilityServiceQueryRangeBody(); // MetricsServiceObservabilityServiceQueryRangeBody |
+ var apiInstance = new DebugAndSimulationApi();
+ var owner = owner_example; // String | (default to null)
+ var slug = slug_example; // String | (default to null)
+ var chainId = chainId_example; // String | (default to null)
+ var body = new SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody |
try {
- // Metric range queries
- metrics_service.MetricsQueryResponse result = apiInstance.queryRange(owner, slug, body);
+ // Run bundle simulation
+ solidity_service.SimulateTransactionBundleResponse result = apiInstance.simulateTransactionBundle(owner, slug, chainId, body);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling DataApi.queryRange: " + e.Message );
+ Debug.Print("Exception when calling DebugAndSimulationApi.simulateTransactionBundle: " + e.Message );
}
}
}
@@ -10015,7 +17511,7 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
@@ -10025,24 +17521,25 @@ Usage and SDK Samples
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
// Create an instance of the API class
-$api_instance = new OpenAPITools\Client\Api\DataApi();
-$owner = owner_example; // String | username or organization name
-$slug = slug_example; // String | project slug
-$body = ; // MetricsServiceObservabilityServiceQueryRangeBody |
+$api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi();
+$owner = owner_example; // String |
+$slug = slug_example; // String |
+$chainId = chainId_example; // String |
+$body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody |
try {
- $result = $api_instance->queryRange($owner, $slug, $body);
+ $result = $api_instance->simulateTransactionBundle($owner, $slug, $chainId, $body);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling DataApi->queryRange: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling DebugAndSimulationApi->simulateTransactionBundle: ', $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';
@@ -10050,21 +17547,22 @@ Usage and SDK Samples
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
# Create an instance of the API class
-my $api_instance = WWW::OPenAPIClient::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 |
+my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new();
+my $owner = owner_example; # String |
+my $slug = slug_example; # String |
+my $chainId = chainId_example; # String |
+my $body = WWW::OPenAPIClient::Object::SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody->new(); # SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody |
eval {
- my $result = $api_instance->queryRange(owner => $owner, slug => $slug, body => $body);
+ my $result = $api_instance->simulateTransactionBundle(owner => $owner, slug => $slug, chainId => $chainId, body => $body);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling DataApi->queryRange: $@\n";
+ warn "Exception when calling DebugAndSimulationApi->simulateTransactionBundle: $@\n";
}
-
+
from __future__ import print_statement
import time
import openapi_client
@@ -10077,29 +17575,31 @@ Usage and SDK Samples
# openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer'
# Create an instance of the API class
-api_instance = openapi_client.DataApi()
-owner = owner_example # String | username or organization name (default to null)
-slug = slug_example # String | project slug (default to null)
-body = # MetricsServiceObservabilityServiceQueryRangeBody |
+api_instance = openapi_client.DebugAndSimulationApi()
+owner = owner_example # String | (default to null)
+slug = slug_example # String | (default to null)
+chainId = chainId_example # String | (default to null)
+body = # SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody |
try:
- # Metric range queries
- api_response = api_instance.query_range(owner, slug, body)
+ # Run bundle simulation
+ api_response = api_instance.simulate_transaction_bundle(owner, slug, chainId, body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DataApi->queryRange: %s\n" % e)
+ print("Exception when calling DebugAndSimulationApi->simulateTransactionBundle: %s\n" % e)
-
- extern crate DataApi;
+
+ extern crate DebugAndSimulationApi;
pub fn main() {
let owner = owner_example; // String
let slug = slug_example; // String
- let body = ; // MetricsServiceObservabilityServiceQueryRangeBody
+ let chainId = chainId_example; // String
+ let body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody
- let mut context = DataApi::Context::default();
- let result = client.queryRange(owner, slug, body, &context).wait();
+ let mut context = DebugAndSimulationApi::Context::default();
+ let result = client.simulateTransactionBundle(owner, slug, chainId, body, &context).wait();
println!("{:?}", result);
}
@@ -10124,16 +17624,13 @@ Parameters
-
+
String
-
-username or organization name
-
Required
@@ -10147,16 +17644,33 @@ Parameters
-
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+
+ chainId*
+
+
+
+
String
-
-project slug
-
Required
@@ -10184,7 +17698,7 @@ Parameters
"content" : {
"application/json" : {
"schema" : {
- "$ref" : "#/components/schemas/metrics_service.ObservabilityService.QueryRangeBody"
+ "$ref" : "#/components/schemas/solidity_service.SolidityAPIService.SimulateTransactionBundleBody"
}
}
},
@@ -10207,12 +17721,12 @@ Parameters
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
- var result = $('#d2e199_queryRange_body');
+ var result = $('#d2e199_simulateTransactionBundle_body');
result.empty();
result.append(view.render());
});
-
+
@@ -10221,23 +17735,23 @@ Parameters
Responses
-
-
+
+
-
+
-
-
-
+
+
+
-
+
-
-
+
+
+ Default
+
+
- retention
- Retention query
+ createMute
+ low priority
- Query for retention.
+
- /api/v1/insights/{owner}/{slug}/retention
+ /api/v1/alerts/mute
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/alerts/mute" \
-d ''
-
+
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
-import org.openapitools.client.api.DataApi;
+import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
-public class DataApiExample {
+public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
@@ -10362,16 +17879,14 @@ Usage and SDK Samples
//ApiKeyAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
- DataApi apiInstance = new DataApi();
- String owner = owner_example; // String |
- String slug = slug_example; // String |
- InsightsServiceInsightsServiceRetentionBody body = ; // InsightsServiceInsightsServiceRetentionBody |
+ DefaultApi apiInstance = new DefaultApi();
+ AlertServiceCreateMuteRequest body = ; // AlertServiceCreateMuteRequest |
try {
- insights_service.RetentionResponse result = apiInstance.retention(owner, slug, body);
+ Object result = apiInstance.createMute(body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#retention");
+ System.err.println("Exception when calling DefaultApi#createMute");
e.printStackTrace();
}
}
@@ -10379,50 +17894,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 AlertServiceCreateMuteRequest body = new AlertServiceCreateMuteRequest(); // AlertServiceCreateMuteRequest |
try {
- final result = await api_instance.retention(owner, slug, body);
+ final result = await api_instance.createMute(body);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->retention: $e\n');
+ print('Exception when calling DefaultApi->createMute: $e\n');
}
-
- import org.openapitools.client.api.DataApi;
+
+ import org.openapitools.client.api.DefaultApi;
-public class DataApiExample {
+public class DefaultApiExample {
public static void main(String[] args) {
- DataApi apiInstance = new DataApi();
- String owner = owner_example; // String |
- String slug = slug_example; // String |
- InsightsServiceInsightsServiceRetentionBody body = ; // InsightsServiceInsightsServiceRetentionBody |
+ DefaultApi apiInstance = new DefaultApi();
+ AlertServiceCreateMuteRequest body = ; // AlertServiceCreateMuteRequest |
try {
- insights_service.RetentionResponse result = apiInstance.retention(owner, slug, body);
+ Object result = apiInstance.createMute(body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#retention");
+ System.err.println("Exception when calling DefaultApi#createMute");
e.printStackTrace();
}
}
}
-
+
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
@@ -10432,16 +17943,12 @@ 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 = ; //
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+AlertServiceCreateMuteRequest *body = ; //
-// Retention query
-[apiInstance retentionWith:owner
- slug:slug
- body:body
- completionHandler: ^(insights_service.RetentionResponse output, NSError* error) {
+// low priority
+[apiInstance createMuteWith:body
+ completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -10452,7 +17959,7 @@ Usage and SDK Samples
-
+
var SentioApi = require('sentio_api');
var defaultClient = SentioApi.ApiClient.instance;
@@ -10463,10 +17970,8 @@ Usage and SDK Samples
//ApiKeyAuth.apiKeyPrefix['api-key'] = "Token";
// Create an instance of the API class
-var api = new SentioApi.DataApi()
-var owner = owner_example; // {String}
-var slug = slug_example; // {String}
-var body = ; // {InsightsServiceInsightsServiceRetentionBody}
+var api = new SentioApi.DefaultApi()
+var body = ; // {AlertServiceCreateMuteRequest}
var callback = function(error, data, response) {
if (error) {
@@ -10475,14 +17980,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.retention(owner, slug, body, callback);
+api.createMute(body, callback);
-
-
+
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
@@ -10491,7 +17996,7 @@ Usage and SDK Samples
namespace Example
{
- public class retentionExample
+ public class createMuteExample
{
public void main()
{
@@ -10501,17 +18006,15 @@ Usage and SDK Samples
// Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
// Create an instance of the API class
- var apiInstance = new DataApi();
- var owner = owner_example; // String | (default to null)
- var slug = slug_example; // String | (default to null)
- var body = new InsightsServiceInsightsServiceRetentionBody(); // InsightsServiceInsightsServiceRetentionBody |
+ var apiInstance = new DefaultApi();
+ var body = new AlertServiceCreateMuteRequest(); // AlertServiceCreateMuteRequest |
try {
- // Retention query
- insights_service.RetentionResponse result = apiInstance.retention(owner, slug, body);
+ // low priority
+ Object result = apiInstance.createMute(body);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling DataApi.retention: " + e.Message );
+ Debug.Print("Exception when calling DefaultApi.createMute: " + e.Message );
}
}
}
@@ -10519,7 +18022,7 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
@@ -10529,24 +18032,22 @@ Usage and SDK Samples
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
// Create an instance of the API class
-$api_instance = new OpenAPITools\Client\Api\DataApi();
-$owner = owner_example; // String |
-$slug = slug_example; // String |
-$body = ; // InsightsServiceInsightsServiceRetentionBody |
+$api_instance = new OpenAPITools\Client\Api\DefaultApi();
+$body = ; // AlertServiceCreateMuteRequest |
try {
- $result = $api_instance->retention($owner, $slug, $body);
+ $result = $api_instance->createMute($body);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling DataApi->retention: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling DefaultApi->createMute: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
-use WWW::OPenAPIClient::DataApi;
+use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: ApiKeyAuth
$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
@@ -10554,21 +18055,19 @@ Usage and SDK Samples
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
# Create an instance of the API class
-my $api_instance = WWW::OPenAPIClient::DataApi->new();
-my $owner = owner_example; # String |
-my $slug = slug_example; # String |
-my $body = WWW::OPenAPIClient::Object::InsightsServiceInsightsServiceRetentionBody->new(); # InsightsServiceInsightsServiceRetentionBody |
+my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
+my $body = WWW::OPenAPIClient::Object::AlertServiceCreateMuteRequest->new(); # AlertServiceCreateMuteRequest |
eval {
- my $result = $api_instance->retention(owner => $owner, slug => $slug, body => $body);
+ my $result = $api_instance->createMute(body => $body);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling DataApi->retention: $@\n";
+ warn "Exception when calling DefaultApi->createMute: $@\n";
}
-
+
from __future__ import print_statement
import time
import openapi_client
@@ -10581,29 +18080,25 @@ Usage and SDK Samples
# openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer'
# Create an instance of the API class
-api_instance = openapi_client.DataApi()
-owner = owner_example # String | (default to null)
-slug = slug_example # String | (default to null)
-body = # InsightsServiceInsightsServiceRetentionBody |
+api_instance = openapi_client.DefaultApi()
+body = # AlertServiceCreateMuteRequest |
try:
- # Retention query
- api_response = api_instance.retention(owner, slug, body)
+ # low priority
+ api_response = api_instance.create_mute(body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DataApi->retention: %s\n" % e)
+ print("Exception when calling DefaultApi->createMute: %s\n" % e)
-
- extern crate DataApi;
+
+ extern crate DefaultApi;
pub fn main() {
- let owner = owner_example; // String
- let slug = slug_example; // String
- let body = ; // InsightsServiceInsightsServiceRetentionBody
+ let body = ; // AlertServiceCreateMuteRequest
- let mut context = DataApi::Context::default();
- let result = client.retention(owner, slug, body, &context).wait();
+ let mut context = DefaultApi::Context::default();
+ let result = client.createMute(body, &context).wait();
println!("{:?}", result);
}
@@ -10618,53 +18113,6 @@ Scopes
Parameters
- Path parameters
-
-
- Name
- Description
-
- owner*
-
-
-
-
-
-
-
- String
-
-
-
-
- Required
-
-
-
-
-
-
- slug*
-
-
-
-
-
-
-
- String
-
-
-
-
- Required
-
-
-
-
-
-
-
Body parameters
@@ -10682,7 +18130,7 @@ Parameters
"content" : {
"application/json" : {
"schema" : {
- "$ref" : "#/components/schemas/insights_service.InsightsService.RetentionBody"
+ "$ref" : "#/components/schemas/alert_service.CreateMuteRequest"
}
}
},
@@ -10705,12 +18153,12 @@ Parameters
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
- var result = $('#d2e199_retention_body');
+ var result = $('#d2e199_createMute_body');
result.empty();
result.append(view.render());
});
-
+
@@ -10719,23 +18167,23 @@ Parameters
Responses
-
-
+
+
-
+
-
-
-
-
+
+
+
+
-
+
-
-
+
+
- retention2
- Retention query
+ deleteAlertRule
+
- Query for retention.
+
- /api/v1/insights/retention
+ /api/v1/alerts/rule/{id}
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 DELETE \
-H "api-key: [[apiKey]]" \
-H "Accept: application/json" \
- -H "Content-Type: application/json" \
- "https://app.sentio.xyz/api/v1/insights/retention" \
- -d ''
+ "https://app.sentio.xyz/api/v1/alerts/rule/{id}"
-
+
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.DefaultApi;
import java.io.File;
import java.util.*;
-public class DataApiExample {
+public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
@@ -10860,14 +18306,14 @@ Usage and SDK Samples
//ApiKeyAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
- DataApi apiInstance = new DataApi();
- InsightsServiceRetentionRequest body = ; // InsightsServiceRetentionRequest |
+ DefaultApi apiInstance = new DefaultApi();
+ String id = id_example; // String |
try {
- insights_service.RetentionResponse result = apiInstance.retention2(body);
+ Object result = apiInstance.deleteAlertRule(id);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#retention2");
+ System.err.println("Exception when calling DefaultApi#deleteAlertRule");
e.printStackTrace();
}
}
@@ -10875,46 +18321,46 @@ Usage and SDK Samples
-
+
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
-final InsightsServiceRetentionRequest body = new InsightsServiceRetentionRequest(); // InsightsServiceRetentionRequest |
+final String id = new String(); // String |
try {
- final result = await api_instance.retention2(body);
+ final result = await api_instance.deleteAlertRule(id);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->retention2: $e\n');
+ print('Exception when calling DefaultApi->deleteAlertRule: $e\n');
}
-
- import org.openapitools.client.api.DataApi;
+
+ import org.openapitools.client.api.DefaultApi;
-public class DataApiExample {
+public class DefaultApiExample {
public static void main(String[] args) {
- DataApi apiInstance = new DataApi();
- InsightsServiceRetentionRequest body = ; // InsightsServiceRetentionRequest |
+ DefaultApi apiInstance = new DefaultApi();
+ String id = id_example; // String |
try {
- insights_service.RetentionResponse result = apiInstance.retention2(body);
+ Object result = apiInstance.deleteAlertRule(id);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DataApi#retention2");
+ System.err.println("Exception when calling DefaultApi#deleteAlertRule");
e.printStackTrace();
}
}
}
-
+
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
@@ -10924,12 +18370,11 @@ Usage and SDK Samples
// Create an instance of the API class
-DataApi *apiInstance = [[DataApi alloc] init];
-InsightsServiceRetentionRequest *body = ; //
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+String *id = id_example; // (default to null)
-// Retention query
-[apiInstance retention2With:body
- completionHandler: ^(insights_service.RetentionResponse output, NSError* error) {
+[apiInstance deleteAlertRuleWith:id
+ completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -10940,7 +18385,7 @@ Usage and SDK Samples
-
+
var SentioApi = require('sentio_api');
var defaultClient = SentioApi.ApiClient.instance;
@@ -10951,8 +18396,8 @@ Usage and SDK Samples
//ApiKeyAuth.apiKeyPrefix['api-key'] = "Token";
// Create an instance of the API class
-var api = new SentioApi.DataApi()
-var body = ; // {InsightsServiceRetentionRequest}
+var api = new SentioApi.DefaultApi()
+var id = id_example; // {String}
var callback = function(error, data, response) {
if (error) {
@@ -10961,14 +18406,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.retention2(body, callback);
+api.deleteAlertRule(id, callback);
-
-
+
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
@@ -10977,7 +18422,7 @@ Usage and SDK Samples
namespace Example
{
- public class retention2Example
+ public class deleteAlertRuleExample
{
public void main()
{
@@ -10987,15 +18432,14 @@ 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 InsightsServiceRetentionRequest(); // InsightsServiceRetentionRequest |
+ var apiInstance = new DefaultApi();
+ var id = id_example; // String | (default to null)
try {
- // Retention query
- insights_service.RetentionResponse result = apiInstance.retention2(body);
+ Object result = apiInstance.deleteAlertRule(id);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling DataApi.retention2: " + e.Message );
+ Debug.Print("Exception when calling DefaultApi.deleteAlertRule: " + e.Message );
}
}
}
@@ -11003,7 +18447,7 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
@@ -11013,22 +18457,22 @@ Usage and SDK Samples
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
// Create an instance of the API class
-$api_instance = new OpenAPITools\Client\Api\DataApi();
-$body = ; // InsightsServiceRetentionRequest |
+$api_instance = new OpenAPITools\Client\Api\DefaultApi();
+$id = id_example; // String |
try {
- $result = $api_instance->retention2($body);
+ $result = $api_instance->deleteAlertRule($id);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling DataApi->retention2: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling DefaultApi->deleteAlertRule: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
-use WWW::OPenAPIClient::DataApi;
+use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: ApiKeyAuth
$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
@@ -11036,19 +18480,19 @@ Usage and SDK Samples
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
# Create an instance of the API class
-my $api_instance = WWW::OPenAPIClient::DataApi->new();
-my $body = WWW::OPenAPIClient::Object::InsightsServiceRetentionRequest->new(); # InsightsServiceRetentionRequest |
+my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
+my $id = id_example; # String |
eval {
- my $result = $api_instance->retention2(body => $body);
+ my $result = $api_instance->deleteAlertRule(id => $id);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling DataApi->retention2: $@\n";
+ warn "Exception when calling DefaultApi->deleteAlertRule: $@\n";
}
-
+
from __future__ import print_statement
import time
import openapi_client
@@ -11061,25 +18505,24 @@ 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 = # InsightsServiceRetentionRequest |
+api_instance = openapi_client.DefaultApi()
+id = id_example # String | (default to null)
try:
- # Retention query
- api_response = api_instance.retention2(body)
+ api_response = api_instance.delete_alert_rule(id)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DataApi->retention2: %s\n" % e)
+ print("Exception when calling DefaultApi->deleteAlertRule: %s\n" % e)
-
- extern crate DataApi;
+
+ extern crate DefaultApi;
pub fn main() {
- let body = ; // InsightsServiceRetentionRequest
+ let id = id_example; // String
- let mut context = DataApi::Context::default();
- let result = client.retention2(body, &context).wait();
+ let mut context = DefaultApi::Context::default();
+ let result = client.deleteAlertRule(id, &context).wait();
println!("{:?}", result);
}
@@ -11094,52 +18537,29 @@ Scopes
Parameters
-
-
- Body parameters
+ Path parameters
-
- Name
- Description
-
- body *
+
+ Name
+ Description
+
+ id*
-
-
-
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
@@ -11147,24 +18567,26 @@ Parameters
+
+
Responses
-
-
+
+
-
+
-
-
-
+
+
+
-
+
-
-
- DebugAndSimulation
-
-
+
+
- getCallTraceByBundle
- Get trace by bundle simulation
+ deleteChannel
+
@@ -11242,44 +18661,44 @@ getCallTraceByBundle
- /api/v1/solidity/{owner}/{slug}/{chainId}/bundle/{bundleId}/call_trace
+ /api/v1/alerts/channels/{id}
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 DELETE \
-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/alerts/channels/{id}"
-
+
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
-import org.openapitools.client.api.DebugAndSimulationApi;
+import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
-public class DebugAndSimulationApiExample {
+public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
@@ -11290,20 +18709,14 @@ Usage and SDK Samples
//ApiKeyAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
- DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
- String owner = owner_example; // String |
- String slug = slug_example; // String |
- String chainId = chainId_example; // String |
- String bundleId = bundleId_example; // String |
- Boolean withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
- Boolean disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
- Boolean ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true.
+ DefaultApi apiInstance = new DefaultApi();
+ String id = id_example; // String |
try {
- google.api.HttpBody result = apiInstance.getCallTraceByBundle(owner, slug, chainId, bundleId, withInternalCalls, disableOptimizer, ignoreGasCost);
+ Object result = apiInstance.deleteChannel(id);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByBundle");
+ System.err.println("Exception when calling DefaultApi#deleteChannel");
e.printStackTrace();
}
}
@@ -11311,58 +18724,46 @@ Usage and SDK Samples
-
+
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
-final String owner = new String(); // String |
-final String slug = new String(); // String |
-final String chainId = new String(); // String |
-final String bundleId = new String(); // String |
-final Boolean withInternalCalls = new Boolean(); // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
-final Boolean disableOptimizer = new Boolean(); // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
-final Boolean ignoreGasCost = new Boolean(); // Boolean | Only effective when disableOptimizer=true.
+final String id = new String(); // String |
try {
- final result = await api_instance.getCallTraceByBundle(owner, slug, chainId, bundleId, withInternalCalls, disableOptimizer, ignoreGasCost);
+ final result = await api_instance.deleteChannel(id);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->getCallTraceByBundle: $e\n');
+ print('Exception when calling DefaultApi->deleteChannel: $e\n');
}
-
- import org.openapitools.client.api.DebugAndSimulationApi;
+
+ import org.openapitools.client.api.DefaultApi;
-public class DebugAndSimulationApiExample {
+public class DefaultApiExample {
public static void main(String[] args) {
- DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
- String owner = owner_example; // String |
- String slug = slug_example; // String |
- String chainId = chainId_example; // String |
- 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.
+ DefaultApi apiInstance = new DefaultApi();
+ String id = id_example; // String |
try {
- google.api.HttpBody result = apiInstance.getCallTraceByBundle(owner, slug, chainId, bundleId, withInternalCalls, disableOptimizer, ignoreGasCost);
+ Object result = apiInstance.deleteChannel(id);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByBundle");
+ System.err.println("Exception when calling DefaultApi#deleteChannel");
e.printStackTrace();
}
}
}
-
+
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
@@ -11372,24 +18773,11 @@ Usage and SDK Samples
// Create an instance of the API class
-DebugAndSimulationApi *apiInstance = [[DebugAndSimulationApi alloc] init];
-String *owner = owner_example; // (default to null)
-String *slug = slug_example; // (default to null)
-String *chainId = chainId_example; // (default to null)
-String *bundleId = bundleId_example; // (default to null)
-Boolean *withInternalCalls = true; // Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null)
-Boolean *disableOptimizer = true; // Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null)
-Boolean *ignoreGasCost = true; // Only effective when disableOptimizer=true. (optional) (default to null)
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+String *id = id_example; // (default to null)
-// 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) {
+[apiInstance deleteChannelWith:id
+ completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -11400,7 +18788,7 @@ Usage and SDK Samples
-
+
var SentioApi = require('sentio_api');
var defaultClient = SentioApi.ApiClient.instance;
@@ -11411,16 +18799,8 @@ Usage and SDK Samples
//ApiKeyAuth.apiKeyPrefix['api-key'] = "Token";
// Create an instance of the API class
-var api = new SentioApi.DebugAndSimulationApi()
-var owner = owner_example; // {String}
-var slug = slug_example; // {String}
-var chainId = chainId_example; // {String}
-var bundleId = bundleId_example; // {String}
-var opts = {
- 'withInternalCalls': true, // {Boolean} Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
- 'disableOptimizer': true, // {Boolean} Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
- 'ignoreGasCost': true // {Boolean} Only effective when disableOptimizer=true.
-};
+var api = new SentioApi.DefaultApi()
+var id = id_example; // {String}
var callback = function(error, data, response) {
if (error) {
@@ -11429,14 +18809,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.getCallTraceByBundle(owner, slug, chainId, bundleId, opts, callback);
+api.deleteChannel(id, callback);
-
-
+
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
@@ -11445,7 +18825,7 @@ Usage and SDK Samples
namespace Example
{
- public class getCallTraceByBundleExample
+ public class deleteChannelExample
{
public void main()
{
@@ -11455,21 +18835,14 @@ Usage and SDK Samples
// Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
// Create an instance of the API class
- var apiInstance = new DebugAndSimulationApi();
- var owner = owner_example; // String | (default to null)
- var slug = slug_example; // String | (default to null)
- var chainId = chainId_example; // String | (default to null)
- var bundleId = bundleId_example; // String | (default to null)
- var withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null)
- var disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null)
- var ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. (optional) (default to null)
+ var apiInstance = new DefaultApi();
+ var id = id_example; // String | (default to null)
try {
- // Get trace by bundle simulation
- google.api.HttpBody result = apiInstance.getCallTraceByBundle(owner, slug, chainId, bundleId, withInternalCalls, disableOptimizer, ignoreGasCost);
+ Object result = apiInstance.deleteChannel(id);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling DebugAndSimulationApi.getCallTraceByBundle: " + e.Message );
+ Debug.Print("Exception when calling DefaultApi.deleteChannel: " + e.Message );
}
}
}
@@ -11477,7 +18850,7 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
@@ -11487,28 +18860,22 @@ Usage and SDK Samples
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
// Create an instance of the API class
-$api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi();
-$owner = owner_example; // String |
-$slug = slug_example; // String |
-$chainId = chainId_example; // String |
-$bundleId = bundleId_example; // String |
-$withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
-$disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
-$ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true.
+$api_instance = new OpenAPITools\Client\Api\DefaultApi();
+$id = id_example; // String |
try {
- $result = $api_instance->getCallTraceByBundle($owner, $slug, $chainId, $bundleId, $withInternalCalls, $disableOptimizer, $ignoreGasCost);
+ $result = $api_instance->deleteChannel($id);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling DebugAndSimulationApi->getCallTraceByBundle: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling DefaultApi->deleteChannel: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
-use WWW::OPenAPIClient::DebugAndSimulationApi;
+use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: ApiKeyAuth
$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
@@ -11516,25 +18883,19 @@ Usage and SDK Samples
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
# Create an instance of the API class
-my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new();
-my $owner = owner_example; # String |
-my $slug = slug_example; # String |
-my $chainId = chainId_example; # String |
-my $bundleId = bundleId_example; # String |
-my $withInternalCalls = true; # Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
-my $disableOptimizer = true; # Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
-my $ignoreGasCost = true; # Boolean | Only effective when disableOptimizer=true.
+my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
+my $id = id_example; # String |
eval {
- my $result = $api_instance->getCallTraceByBundle(owner => $owner, slug => $slug, chainId => $chainId, bundleId => $bundleId, withInternalCalls => $withInternalCalls, disableOptimizer => $disableOptimizer, ignoreGasCost => $ignoreGasCost);
+ my $result = $api_instance->deleteChannel(id => $id);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling DebugAndSimulationApi->getCallTraceByBundle: $@\n";
+ warn "Exception when calling DefaultApi->deleteChannel: $@\n";
}
-
+
from __future__ import print_statement
import time
import openapi_client
@@ -11547,37 +18908,24 @@ Usage and SDK Samples
# openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer'
# Create an instance of the API class
-api_instance = openapi_client.DebugAndSimulationApi()
-owner = owner_example # String | (default to null)
-slug = slug_example # String | (default to null)
-chainId = chainId_example # String | (default to null)
-bundleId = bundleId_example # String | (default to null)
-withInternalCalls = true # Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null)
-disableOptimizer = true # Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null)
-ignoreGasCost = true # Boolean | Only effective when disableOptimizer=true. (optional) (default to null)
+api_instance = openapi_client.DefaultApi()
+id = id_example # String | (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)
+ api_response = api_instance.delete_channel(id)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DebugAndSimulationApi->getCallTraceByBundle: %s\n" % e)
+ print("Exception when calling DefaultApi->deleteChannel: %s\n" % e)
-
- extern crate DebugAndSimulationApi;
+
+ extern crate DefaultApi;
pub fn main() {
- let owner = owner_example; // String
- let slug = slug_example; // String
- let chainId = chainId_example; // String
- let bundleId = bundleId_example; // String
- let withInternalCalls = true; // Boolean
- let disableOptimizer = true; // Boolean
- let ignoreGasCost = true; // Boolean
+ let id = id_example; // String
- let mut context = DebugAndSimulationApi::Context::default();
- let result = client.getCallTraceByBundle(owner, slug, chainId, bundleId, withInternalCalls, disableOptimizer, ignoreGasCost, &context).wait();
+ let mut context = DefaultApi::Context::default();
+ let result = client.deleteChannel(id, &context).wait();
println!("{:?}", result);
}
@@ -11598,71 +18946,11 @@ Parameters
Name
Description
- owner*
-
-
-
-
-
-
-
- String
-
-
-
-
- Required
-
-
-
-
-
-
- slug*
-
-
-
-
-
-
-
- String
-
-
-
-
- Required
-
-
-
-
-
-
- chainId*
-
-
-
-
-
-
-
- String
-
-
-
-
- Required
-
-
-
-
-
-
- bundleId*
+ id*
-
+
@@ -11683,92 +18971,25 @@ Parameters
- Query parameters
-
-
- Name
- Description
-
- 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
-
-
+
+
-
+
-
-
-
+
+
+
-
+
-
-
+
+
- getCallTraceBySimulation
- Get trace by simulation
+ getChannel
+ TODO move channel related APIs somewhere else
@@ -11843,44 +19064,44 @@ getCallTraceBySimulation
- /api/v1/solidity/{owner}/{slug}/{chainId}/simulation/{simulationId}/call_trace
+ /api/v1/alerts/channels/{channelId}
Usage and SDK Samples
-
- - 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/alerts/channels/{channelId}?projectId=projectId_example"
-
+
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
-import org.openapitools.client.api.DebugAndSimulationApi;
+import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
-public class DebugAndSimulationApiExample {
+public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
@@ -11891,20 +19112,15 @@ Usage and SDK Samples
//ApiKeyAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
- DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
- String owner = owner_example; // String |
- String slug = slug_example; // String |
- String chainId = chainId_example; // String |
- String 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.
+ DefaultApi apiInstance = new DefaultApi();
+ String channelId = channelId_example; // String |
+ String projectId = projectId_example; // String |
try {
- google.api.HttpBody result = apiInstance.getCallTraceBySimulation(owner, slug, chainId, simulationId, withInternalCalls, disableOptimizer, ignoreGasCost);
+ alert_service.GetChannelResponse result = apiInstance.getChannel(channelId, projectId);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceBySimulation");
+ System.err.println("Exception when calling DefaultApi#getChannel");
e.printStackTrace();
}
}
@@ -11912,58 +19128,48 @@ Usage and SDK Samples
-
+
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
-final String owner = new String(); // String |
-final String slug = new String(); // String |
-final String chainId = new String(); // String |
-final String 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.
+final String channelId = new String(); // String |
+final String projectId = new String(); // String |
try {
- final result = await api_instance.getCallTraceBySimulation(owner, slug, chainId, simulationId, withInternalCalls, disableOptimizer, ignoreGasCost);
+ final result = await api_instance.getChannel(channelId, projectId);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->getCallTraceBySimulation: $e\n');
+ print('Exception when calling DefaultApi->getChannel: $e\n');
}
-
- import org.openapitools.client.api.DebugAndSimulationApi;
+
+ import org.openapitools.client.api.DefaultApi;
-public class DebugAndSimulationApiExample {
+public class DefaultApiExample {
public static void main(String[] args) {
- DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
- String owner = owner_example; // String |
- String slug = slug_example; // String |
- String chainId = chainId_example; // String |
- 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.
+ DefaultApi apiInstance = new DefaultApi();
+ String channelId = channelId_example; // String |
+ String projectId = projectId_example; // String |
try {
- google.api.HttpBody result = apiInstance.getCallTraceBySimulation(owner, slug, chainId, simulationId, withInternalCalls, disableOptimizer, ignoreGasCost);
+ alert_service.GetChannelResponse result = apiInstance.getChannel(channelId, projectId);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceBySimulation");
+ System.err.println("Exception when calling DefaultApi#getChannel");
e.printStackTrace();
}
}
}
-
+
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
@@ -11973,24 +19179,14 @@ Usage and SDK Samples
// Create an instance of the API class
-DebugAndSimulationApi *apiInstance = [[DebugAndSimulationApi alloc] init];
-String *owner = owner_example; // (default to null)
-String *slug = slug_example; // (default to null)
-String *chainId = chainId_example; // (default to null)
-String *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)
+DefaultApi *apiInstance = [[DefaultApi alloc] init];
+String *channelId = channelId_example; // (default to null)
+String *projectId = projectId_example; // (optional) (default to null)
-// Get trace by simulation
-[apiInstance getCallTraceBySimulationWith:owner
- slug:slug
- chainId:chainId
- simulationId:simulationId
- withInternalCalls:withInternalCalls
- disableOptimizer:disableOptimizer
- ignoreGasCost:ignoreGasCost
- completionHandler: ^(google.api.HttpBody output, NSError* error) {
+// TODO move channel related APIs somewhere else
+[apiInstance getChannelWith:channelId
+ projectId:projectId
+ completionHandler: ^(alert_service.GetChannelResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -12001,7 +19197,7 @@ Usage and SDK Samples
-
+
var SentioApi = require('sentio_api');
var defaultClient = SentioApi.ApiClient.instance;
@@ -12012,15 +19208,10 @@ Usage and SDK Samples
//ApiKeyAuth.apiKeyPrefix['api-key'] = "Token";
// Create an instance of the API class
-var api = new SentioApi.DebugAndSimulationApi()
-var owner = owner_example; // {String}
-var slug = slug_example; // {String}
-var chainId = chainId_example; // {String}
-var simulationId = simulationId_example; // {String}
+var api = new SentioApi.DefaultApi()
+var channelId = channelId_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.
+ 'projectId': projectId_example // {String}
};
var callback = function(error, data, response) {
@@ -12030,14 +19221,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.getCallTraceBySimulation(owner, slug, chainId, simulationId, opts, callback);
+api.getChannel(channelId, opts, callback);
-
-
+
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
@@ -12046,7 +19237,7 @@ Usage and SDK Samples
namespace Example
{
- public class getCallTraceBySimulationExample
+ public class getChannelExample
{
public void main()
{
@@ -12056,21 +19247,16 @@ Usage and SDK Samples
// Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
// Create an instance of the API class
- var apiInstance = new DebugAndSimulationApi();
- var owner = owner_example; // String | (default to null)
- var slug = slug_example; // String | (default to null)
- var chainId = chainId_example; // String | (default to null)
- var 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)
+ var apiInstance = new DefaultApi();
+ var channelId = channelId_example; // String | (default to null)
+ var projectId = projectId_example; // String | (optional) (default to null)
try {
- // Get trace by simulation
- google.api.HttpBody result = apiInstance.getCallTraceBySimulation(owner, slug, chainId, simulationId, withInternalCalls, disableOptimizer, ignoreGasCost);
+ // TODO move channel related APIs somewhere else
+ alert_service.GetChannelResponse result = apiInstance.getChannel(channelId, projectId);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling DebugAndSimulationApi.getCallTraceBySimulation: " + e.Message );
+ Debug.Print("Exception when calling DefaultApi.getChannel: " + e.Message );
}
}
}
@@ -12078,7 +19264,7 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
@@ -12088,28 +19274,23 @@ Usage and SDK Samples
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
// Create an instance of the API class
-$api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi();
-$owner = owner_example; // String |
-$slug = slug_example; // String |
-$chainId = chainId_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.
+$api_instance = new OpenAPITools\Client\Api\DefaultApi();
+$channelId = channelId_example; // String |
+$projectId = projectId_example; // String |
try {
- $result = $api_instance->getCallTraceBySimulation($owner, $slug, $chainId, $simulationId, $withInternalCalls, $disableOptimizer, $ignoreGasCost);
+ $result = $api_instance->getChannel($channelId, $projectId);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling DebugAndSimulationApi->getCallTraceBySimulation: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling DefaultApi->getChannel: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
-use WWW::OPenAPIClient::DebugAndSimulationApi;
+use WWW::OPenAPIClient::DefaultApi;
# Configure API key authorization: ApiKeyAuth
$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
@@ -12117,25 +19298,20 @@ Usage and SDK Samples
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
# Create an instance of the API class
-my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new();
-my $owner = owner_example; # String |
-my $slug = slug_example; # String |
-my $chainId = chainId_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.
+my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
+my $channelId = channelId_example; # String |
+my $projectId = projectId_example; # String |
eval {
- my $result = $api_instance->getCallTraceBySimulation(owner => $owner, slug => $slug, chainId => $chainId, simulationId => $simulationId, withInternalCalls => $withInternalCalls, disableOptimizer => $disableOptimizer, ignoreGasCost => $ignoreGasCost);
+ my $result = $api_instance->getChannel(channelId => $channelId, projectId => $projectId);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling DebugAndSimulationApi->getCallTraceBySimulation: $@\n";
+ warn "Exception when calling DefaultApi->getChannel: $@\n";
}
-
+
from __future__ import print_statement
import time
import openapi_client
@@ -12148,37 +19324,27 @@ Usage and SDK Samples
# openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer'
# Create an instance of the API class
-api_instance = openapi_client.DebugAndSimulationApi()
-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)
-withInternalCalls = true # Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null)
-disableOptimizer = true # Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null)
-ignoreGasCost = true # Boolean | Only effective when disableOptimizer=true. (optional) (default to null)
+api_instance = openapi_client.DefaultApi()
+channelId = channelId_example # String | (default to null)
+projectId = projectId_example # String | (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)
+ # TODO move channel related APIs somewhere else
+ api_response = api_instance.get_channel(channelId, projectId=projectId)
pprint(api_response)
except ApiException as e:
- print("Exception when calling DebugAndSimulationApi->getCallTraceBySimulation: %s\n" % e)
+ print("Exception when calling DefaultApi->getChannel: %s\n" % e)
-
- extern crate DebugAndSimulationApi;
+
+ extern crate DefaultApi;
pub fn main() {
- let owner = owner_example; // String
- let slug = slug_example; // String
- let chainId = chainId_example; // String
- let simulationId = simulationId_example; // String
- let withInternalCalls = true; // Boolean
- let disableOptimizer = true; // Boolean
- let ignoreGasCost = true; // Boolean
+ let channelId = channelId_example; // String
+ let projectId = projectId_example; // String
- let mut context = DebugAndSimulationApi::Context::default();
- let result = client.getCallTraceBySimulation(owner, slug, chainId, simulationId, withInternalCalls, disableOptimizer, ignoreGasCost, &context).wait();
+ let mut context = DefaultApi::Context::default();
+ let result = client.getChannel(channelId, projectId, &context).wait();
println!("{:?}", result);
}
@@ -12193,157 +19359,54 @@ Scopes
Parameters
- Path parameters
-
-