Retrieve the status of processing of usages that were added by the job.
GET {{baseUrl}}/usagesJobs/:id?page=1&size=200
Returns status summary of the usages added by the data sent using /usages APIs. - Callers are not usually expected to use this API as part of business workflow, but for 'in-frequent auditing'. - The calls to this method may be throttled. - Description of usage statuses. - ACCEPTED: Usages have been accepted. - VERIFIED: Usages have been verified against the rules configured in rule engine, if applicable. - VERIFICATIONFAILED: Verification of at least one of the usages has failed. - NOVERIFICATION: No applicable rule was found and hence no verification was done. - AGGREGATED: Usages have been aggregated into a running daily aggregate value based on the aggregation function defined in UTS rule. In case no rule is applicable, default aggregation function 'SUM' is used. The aggregation is performed every hour and the daily aggregate is updated. Once aggregated, the UTS can be queried to report the usages through UI or data endpoints. - SENTFORBILLING: If billing is enabled for the usages, the data has been sent successfully to the billing system. - FAILEDTOSENDFORBILLING: Errors were encountered while sending the data to billing. These could be network issues or other internal errors.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
page | number | page number | |
size | number | page size |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"id":"35a4cb01-2497-4191-ad1c-551a1942c409-20190520131","time":"2011-07-14T19:43:37Z","status":"INPROGRESS","usagesCount":7,"usagesSummary":[{"application":"assetmonitor","unit":"asset-count","usagesCount":2,"processStatus":"VERIFIED"},{"application":"assetmonitor","unit":"asset-count","usagesCount":2,"processStatus":"SENTFORBILLING"}],"page":{"number":2,"size":10,"totalElements":40,"totalPages":4}}