Community
 
 
 

CloudPlatform 3.x

343フォロワー
 
Avatar
Pankaj Paliwal

generateUsageRecords - what does it do?

Avatar

generateUsageRecords - what does it do?

Can someone please provide further information on what the CCP API call: generateUsageRecords actually does.

Obviously it generates usage records, but:

1. Is this the very API command that is called by the Usage Server process when it runs at the scheduled time(=usage.stats.job.exec.time)?

2. Is the API command related in any way to the Usage Server?

3. For what period does it generate the usage records eg.
from the last time it was called


TARIQ IQBAL MEMBERS
2件のコメント
0

サインインしてコメントを残してください。

 
 

Previous 2件のコメント

Avatar
Pankaj Paliwal
Avatar

generateUsageRecords - what does it do?

Sorry did not finish the above when it accidentilly got published, so here it is in full...

Can someone please provide further information on what the CCP API call: generateUsageRecords actually does.

Obviously it generates usage records, but:

1. Is this the very API command that is called by the Usage Server process when it runs at the scheduled time(=usage.stats.job.exec.time)?

2. Is the API command related in any way to the Usage Server?

3. For what period does it generate the usage records eg.
i. from the last time it was called
ii. from the last time the usage server ran

4. If I create a VM and the corresponding CCP events are created in the Cloud DB, if I then run generateUsageRecords soon after will the usage records be generated for up to that point?

5. Are there any other documented details available on this API command other than the API document?

Best Regards


TARIQ IQBAL MEMBERS
コメントアクション パーマリンク
Avatar
Pankaj Paliwal
Avatar

1. Is this the very API command that is called by the Usage Server process when it runs at the scheduled time(=usage.stats.job.exec.time)?

--> No

2. Is the API command related in any way to the Usage Server?
--> Yes. The generateUsageRecords will only work when the last usage job has failed.The api will collect the usage records from the last failed job to till date.

3. For what period does it generate the usage records eg.
i. from the last time it was called
ii. from the last time the usage server ran

--> ii). Note: As said the API will collect the usage records only if the last usage job failed.

4. If I create a VM and the corresponding CCP events are created in the Cloud DB, if I then run generateUsageRecords soon after will the usage records be generated for up to that point?

--> Same as 2. and 3.

5. Are there any other documented details available on this API command other than the API document?

--> No.


Prashanth Reddy Mandadi CITRIX EMPLOYEES
コメントアクション パーマリンク

Top Contributors