Common-accounting ABANDONED
From Gcube Wiki
Revision as of 17:06, 6 May 2013 by Ermanno.travaglino (Talk | contribs) (Created page with '= Scope = This library offers an easy way to produce and consume resource accounting data. = Design and implementation notes = The "common-accounting" library contains the resou…')
Scope
This library offers an easy way to produce and consume resource accounting data.
Design and implementation notes
The "common-accounting" library contains the resource accounting data-model, a producer to publish accounting data on the messaging broker and a consumer to retrieve them.
Data-model
The structure of a generic accounting record (Usage Record, UR) will be composed of a set of common fields for all resource types, in particular:
- id : an unique identifier for the UR
- consumerId : the user actually consuming the resource (optional, for future purposes)
- createTime : when the UR was created
- startTime, endTime : the time window the UR refers to
- resourceType : the type of resource the UR tracks
- scope : the scope of the resource
- resourceOwner : who owns the resource and/or who creates the UR
Furthermore, for each UR there will be a section to be filled with the specific properties per resource type (key-value pairs).
Resource Types
The resource types we've identified are: Execution, Service, Data-access and Storage.