Capture Time Response of REST Service
I would like to capture the Time Response of a REST Service, as it is shown in Postman for example:
![]()
In the example I would like to capture the value of "406 ms". I have tried to capture the Start Time and End Time in the Activity of the Service and use the function of @DateTimeDifference with milliseconds, but the result is not the same as the Service (In the activity the result is 6 ms).
I know that in PDC in the Event alert of "PEGA0011 Service Total Time" the time response is captured from Pega and sent to PDC. But I don't know where to capture that value.
Any help is welcome, thanks!
@JosuéD02
You won't be able to get the value that pega automatically calculates for you. The value used by pega and send to PDC is extracted from svcUtil. This is buried and hidden in the invokeConnector that is used for REST calls.
In InvokeHTTPConnector activity you can still see the utility being used everywhere. Maybe you can get some inspiration from there, but keep in mind that the calls then include inbound / outbound mapping etc.
And one important note. The java implementation is not part of the (public) Engine API. There is no public documentation on it, so I don't recommend using the java class itself.