It's all about the answers!

Ask a question

How to get asset usage and asset browse statistics using RAM JAVA API?


Pramod Chavan (191620) | asked Dec 20 '13, 2:57 a.m.
 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


permanent link
Lin Lu (3063) | answered Dec 25 '13, 11:30 p.m.
JAZZ DEVELOPER
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
Pramod Chavan commented Dec 27 '13, 1:49 p.m.

Thanks Lin. Will try out this solution. 


Pramod Chavan commented Jan 06 '14, 1:23 a.m.

Hi Lin,


Can we access ASSET_BROWSE using a reporting URL(with tid=608)? 


Lin Lu commented Jan 06 '14, 9:15 p.m.
JAZZ DEVELOPER

Hi Pramod,
I do not quite understand your use case about reporting URL. Would you like to give more details?

Thanks


Pramod Chavan commented Jan 10 '14, 12:25 a.m.

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


Pramod Chavan commented Jan 27 '14, 12:41 a.m. | edited Jan 27 '14, 1:27 a.m.

Hi Lin, 


Can we generate community wise asset_browse report using java API, for specific time duration ?

Regards,
Pramod?


1
Lin Lu commented Jan 27 '14, 3:00 a.m.
JAZZ DEVELOPER

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.


Pramod Chavan commented Jan 28 '14, 12:11 a.m.

Thanks Lin Lu 

showing 5 of 7 show 2 more comments

Your answer


Register or to post 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.