Scripted Rest Api response time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2020 11:10 AM
Hi Team,
Is there any possibility to test response time for scripted Rest API in service now logs?
- Labels:
-
Customer Service Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2020 11:24 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2020 08:28 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2020 08:47 AM
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