Difference between revisions of "Common-accounting ABANDONED"

From Gcube Wiki
Jump to: navigation, search
(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…')
 
Line 3: Line 3:
  
 
= Design and implementation notes =
 
= 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.
+
The "common-accounting" library contains the resource accounting data-model ([https://gcube.wiki.gcube-system.org/gcube/index.php?title=Common-accounting-model common-accounting-model]), a producer to publish accounting data on the messaging broker and a consumer to retrieve them.
  
== Data-model ==
+
= Usage =
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:
+
To do
 
+
* 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.
+

Revision as of 17:11, 6 May 2013

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 (common-accounting-model), a producer to publish accounting data on the messaging broker and a consumer to retrieve them.

Usage

To do