Scripted Rest Api response time

lucky6
Tera Contributor

Hi Team,

Is there any possibility to test response time for scripted Rest API in service now logs? 

3 REPLIES 3

sachin_namjoshi
Kilo Patron
Kilo Patron

 

The response time can easily be tracked using the chrome debugger. 
This works for any REST API for any platform. I use it for REST API on different platforms.

enter image description here

Rajesh Kannan G
ServiceNow Employee
ServiceNow Employee

You can use syslog_transaction.response_time to measure the response time of the Scripted REST API. Make sure to use filter by date as this is a huge table and change the URL to your REST API URL.

syslog_transaction_list.do?sysparm_query=sys_created_onONToday@javascript:gs.beginningOfToday()@javascript:gs.endOfToday()^type=rest^urlSTARTSWITH/api/now/ui/navigator/favorites?api=api

 

Regards,

Rajesh

Ashutosh Munot1
Kilo Patron
Kilo Patron

Hi,

Wait!


When you say the response time means when you hit servicenow and then the third party gets the response or the response is sent from servicenow?

 

ECC queue wont help you in this case.

 

You have to log the in and out times in scripted rest api which we also did.

First line of code was entered: datetime

Last line of code was Exit : ResponseSend date time.


Thanks,
Ashutosh