mule ESB 中 Web 服务的响应时间?
Response Time for a web serivice in mule ESB?
如何在 MULE ESB 平台中获取 POST 网络服务请求的 响应时间?
您可以使用变量设置当前时间,然后在您发出请求或连接器操作后计算响应时间。
使用 dataweave 在响应变量中设置当前时间
dw::util::Timer::currentMilliseconds()
稍后使用将转换结果设置为 responseTime 的转换器计算响应时间
%dw 2.0
import dw::util::Timer
output application/json
---
Timer::currentMilliseconds() - vars.responseTime
如何在 MULE ESB 平台中获取 POST 网络服务请求的 响应时间?
您可以使用变量设置当前时间,然后在您发出请求或连接器操作后计算响应时间。
使用 dataweave 在响应变量中设置当前时间
dw::util::Timer::currentMilliseconds()
稍后使用将转换结果设置为 responseTime 的转换器计算响应时间
%dw 2.0
import dw::util::Timer
output application/json
---
Timer::currentMilliseconds() - vars.responseTime