Output Latency of Portal to traffic log of API Gateway

Document ID : KB000012149
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

In API Portal,   Home ›Dashboard ›Analytics ›API Reports> Latency 

The following information is reported.

. Total Latency

. Gateway Latency

. Back End Latency

 

We want to output the above information to traffic log of API Gateway. 

Is it a possible? If yes, how do we set it up?

Answer:

It is impossible.

API gateway does not have any context variables for Latency value of Portal.

It is most of them are calculated from the service metrics table.

 

Also, You may be able to calculate your own.

For example, ${gateway.time} minus ${request.time} will give you the time that the request was in the service policy.

Then ${httpRouting.latency} will give you the backend time.