点击或拖拽改变大小

MqttSyncClientReadRpcApiLogAsync 方法

读取服务器的指定的API接口的每天的调用次数,如果API接口不存在,或是还没有调用数据,则返回失败。
Read the number of calls per day of the designated API interface of the server. If the API interface does not exist or the data has not been called yet, it returns a failure.

命名空间:  HslCommunication.MQTT
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public Task<OperateResult<long[]>> ReadRpcApiLogAsync(
	string api
)

参数

api
类型:SystemString
等待请求的API的接口信息,如果为空,就是请求所有的接口的调用的统计信息。

返回值

类型:TaskOperateResultInt64
最近几日的连续的调用情况,例如[1,2,3],表示前提调用1次,昨天调用2次,今天3次
备注
如果api的参数为空字符串,就是请求所有的接口的调用的统计信息。
参见