Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes


Accepted answer

Permanent link
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

1 vote

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

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,941

Question asked: Dec 20 '13, 2:57 a.m.

Question was seen: 4,317 times

Last updated: Jan 28 '14, 12:11 a.m.

Confirmation Cancel Confirm