Importing HTTP/BTM/UEM from an External Source
Importing data from other tools into Applicare
1. Deploy the Applicare Standalone Collector (instructions available in the Applicare Installation Guide) with a default port of 9880 to collect data from the external application.
2. Copy the attached data.importer.jar file into the /Applicare/server/lib directory of the Standalone Collector.
3. Modify the attached ImporterContextListener.java file and map the appropriate data from the external app database to the Applicare API's input. Compilation of this code will require servlet-api.jar, applicare-aspects.jar and data.importer.jar in the classpath. You can use an Eclipse JEE dynamic web project and create a .war file from there.
4. Build a .war file using the attached web.xml file and deploy that to the Standalone Collector by copying the .war file to the /Applicare/server/webapps directory.
5. Start the Standalone Collector and data import will begin.
Available with Applicare 7.2.4 Beta onwards
Creating an HTTP call
ImportUtils.addHttpInvocation("/request.from.outside" , duration);
where:
/request.from.outside is the URI to be shown on the profiler
duration is the time counted for the HTTP call
Creating a Business Transaction
ImportUtils.addBtmInvocation("/request.from.outside", duration , time , "localhost","server1");
where:
/request.from.outside is the URI
duration is the difference between start time and end time
time is when the transaction has been executed
localhost is the IP address.
server1 is the server name.
Creating a user experience record
ImportUtils.addUEMInvocation( "www.mywebsite.com", "server1", false,10, 11, "CHROME", "0.5", "OS2", 200, starttime,endtime, 20, 40, 80, "193.32.12.67");
where:
www.mywebsite.com is the URI of the call
server1 is the server name
false is if it is a slow transaction
10 is average time
11 is backend time
CHROME is browser type
0.5 is browser version
OS2 is operating system
200 is HTTP return code
20 is server response time to first byte
40 is page rendering time
80 is total page load time
start time is when the page load started
end time is when the page load ended
193.32.12.67 is browser/client IP address
addUEMInvocation(
String url, String server,
boolean isSlowTransaction, double avgTime, int backEndTime,
String browserName, String browserVersion, String os,
int httpReturnCode, long beginTime, long EndTime, int respTime,
int pageTime, int totalTime , String ip)
data.importer.jar
web.xml
DI.war
ImporterContextListener.java
Please sign in to leave a comment.
Comments
0 comments