0

SQL 引擎隐藏了有关正在执行哪些 API 调用的所有漂亮细节。但是,一些云解决方案按 API 调用定价。

例如:

select *
from   transactionlines

检索当前公司的所有 Exact Online 交易行,但是:

select *
from   transactionlines
where  financialyear = 2016

在 Exact Online 的 REST API 上将其有效过滤到当年,从而减少数据量。和:

select *
from   gltransactionlines
where  year_attr = 2016

检索所有数据,因为 where 子句未转发到 Exact 的此 XML API。

当然我可以附上fiddler或者wireshark尝试分析数据量,但是有没有更简单的方法可以用Invantive SQL分析API调用的数据量呢?

4

1 回答 1

0

首先,Invantive SQL 处理的所有调用都记录在 Invantive Cloud 中,其中包括:

  • 时间
  • 双向数据量
  • 期间

在所有受支持的云平台上启用一致的 API 使用监控。实际数据不会被记录并直接传输。

您可以在会话中查询相同的号码,例如:

select * from exactonlinerest..projects where code like 'A%'

检索代码以“A”开头的所有项目。接着:

select * from sessionios@datadictionary

向您显示进行的 API 调用:

API 调用

您还可以在注销之前在会话结束时进行如下查询:

select main_url
,      sum(bytes_received) bytes_received
,      sum(duration_ms) duration_ms
from   ( select regexp_replace(url, '\?.*', '') main_url
         ,      bytes_received
         ,      duration_ms
         from   sessionios@datadictionary
       )
group 
by     main_url

结果如下:

API调用分析

于 2017-03-13T08:59:01.367 回答