How to get asset usage and asset browse statistics using RAM JAVA API?
![]()
Hi,
Can we get the asset usage and asset browse statistics using the RAM API?
I know we can get download statistics for any particular asset, but I am interested in asset usage and asset browse statistics.
Regards,
Pramod
|
Accepted answer
![]()
Hi Pramod,
API offers RAMASSet.getActivities() function to get the activities of your interest. Link to info center. http://pic.dhe.ibm.com/infocenter/ramhelp/v7r5m1/topic/com.ibm.ram.api.doc/topics/com/ibm/ram/client/RAMAsset.html#getActivites(int[],%20long,%20long) function accepts three params: the array of activities type, start time and end time. As to the use case you mentioned, I think it is:
activities = sddet.getActivites(new int[]{ActivityTypes.METRIC_TYPE_ASSET_BROWSE, ActivityTypes.METRIC_TYPE_ASSET_USAGE}, startTime, System.currentTimeMillis());
Pramod Chavan selected this answer as the correct answer
Comments Thanks Lin. Will try out this solution. Hi Lin,
Can we access ASSET_BROWSE using a reporting URL(with tid=608)?
Hi Pramod,
Hi Lin,
As we are using RAM ver 7.5.1.1, I came to know from Jazz forum that asset_browse result is restricted to 100 while generating report from the RAM web client.
Do we have similar restriction while generating the report using Java API?
Pramod
Hi Lin,
Can we generate community wise asset_browse report using java API, for specific time duration ?
Regards,
Pramod?
1
Hi Pramod,
Thanks Lin Lu
showing 5 of 7
show 2 more comments
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.