From: Christos KK Loverdos Date: Mon, 24 Sep 2012 12:29:30 +0000 (+0300) Subject: Cleanup message field aliases and add documentation X-Git-Url: https://code.grnet.gr/git/aquarium/commitdiff_plain/8a9e6e4c3360dc3be37d473dad311503d61c490e?ds=sidebyside Cleanup message field aliases and add documentation --- diff --git a/src/main/avro/aquarium-policy.avdl b/src/main/avro/aquarium-policy.avdl index c7609ff..9f7acde 100644 --- a/src/main/avro/aquarium-policy.avdl +++ b/src/main/avro/aquarium-policy.avdl @@ -36,9 +36,9 @@ @namespace("gr.grnet.aquarium.message.avro.gen") protocol AquariumPolicy { record ResourceTypeMsg { - string name; - string unit; - string chargingBehaviorClass; + string name; // name of resource type + string unit; // name of the charging unit + string chargingBehaviorClass; // the charging behavior implementation } record CronSpecTupleMsg { @@ -47,7 +47,7 @@ protocol AquariumPolicy { } record EffectiveUnitPriceMsg { - double unitPrice; + double unitPrice; // credits per unit (see ResourceTypeMsg.unit) union {CronSpecTupleMsg, null} when; } @@ -67,13 +67,13 @@ protocol AquariumPolicy { } record PolicyMsg { - string @aliases(["id"]) originalID; // From message creator (e.g. this is present for the default policy.json) - union {string, null} @aliases(["_id", "idInStore"]) inStoreID; // From Aquarium (message recipient) - union {string, null} parentID; + string originalID; // From message creator (e.g. this is present for the default policy.json) + union {string, null} inStoreID; // From Aquarium (message recipient) + union {string, null} parentID; // FIXME: parentOriginalID and parentInStoreID long validFromMillis; long validToMillis; - array resourceTypes; - array chargingBehaviors; - map roleMapping; + array resourceTypes; // the known resource types + array chargingBehaviors; // the known charging behavior implementations + map roleMapping; // the pricing "plan" per role } } \ No newline at end of file