Properly save to local fs store (for debugging)
[aquarium] / src / main / resources / policy.yaml
index c4d21d7..f909b1a 100644 (file)
@@ -1,47 +1,59 @@
 aquariumpolicy:
   resources:
     - resource:
-      name: bndup
-      unit: MB
+      name: bandwidthup
+      unit: MB/hr
       complex: false
-      costpolicy: diff
+      costpolicy: discrete
     - resource:
-      name: bnddown
-      unit: MB
+      name: bandwidthdown
+      unit: MB/hr
       complex: false
-      costpolicy: diff
+      costpolicy: discrete
     - resource:
       name: vmtime
       unit: Hour
       complex: true
       costpolicy: onoff
-      descriminatorfield: vmid
     - resource:
-      name: dsksp
-      unit: MB
+      name: diskspace
+      unit: MB/hr
       complex: false
-      costpolicy: diff
+      costpolicy: continuous
+    - resource:
+      name: refills
+      unit: credits
+      complex: false
+      costpolicy: once
+
+  implicitvars:
+    - price
+    - volume
 
   algorithms:
     - algorithm:
       name: default
-      bndup: $price times $volume
-      bnddown: $price times $volume
+      bandwidthup: $price times $volume
+      bandwidthdown: $price times $volume
       vmtime: $price times $volume
-      dsksp: $price times $volume
+      diskspace: $price times $volume
+      bookpages: $price times $volume
+      refills: $price times $volume
       effective:
         from: 0
-
+  
   pricelists:
     - pricelist: 
       name: default
-      bndup: 0.01
-      bnddown: 0.02
+      bandwidthup: 0.01
+      bandwidthdown: 0.02
       vmtime: 0.1
-      dsksp: 0.05
+      diskspace: 0.05
+      bookpages: 0.1
+      refills: 1
       effective:
         from: 0
-
+  
   creditplans:
     - creditplan:
       name: default
@@ -56,3 +68,4 @@ aquariumpolicy:
       algorithm: default
       pricelist: default
       creditplan: default
+