How to get asset usage and asset browse statistics using RAM JAVA API?
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:
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());
Comments
Thanks Lin. Will try out this solution.
Hi Lin,
Can we access ASSET_BROWSE using a reporting URL(with tid=608)?
Hi Pramod,
I do not quite understand your use case about reporting URL. Would you like to give more details?
Thanks
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?
Hi Pramod,
For the # restriction, I think there is not a restriction on API.
As to the use case of return activities histories in community scope, I am afraid there is not a feature like "audit" in community configuration in Java API at this time.
1 vote
Thanks Lin Lu
showing 5 of 7
show 2 more comments