You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by gi...@git.apache.org on 2017/05/22 13:34:55 UTC

[GitHub] DaanHoogland commented on a change in pull request #859: Bug-ID: CLOUDSTACK-8882: calculate network offering usage per nic instead of per network offering

DaanHoogland commented on a change in pull request #859: Bug-ID: CLOUDSTACK-8882: calculate network offering usage per nic instead of per network offering
URL: https://github.com/apache/cloudstack/pull/859#discussion_r117745815
 
 

 ##########
 File path: engine/schema/src/com/cloud/usage/UsageVO.java
 ##########
 @@ -125,6 +125,25 @@ public UsageVO(Long zoneId, Long accountId, Long domainId, String description, S
         this.endDate = endDate;
     }
 
+    //Network Offering Usage
+    public UsageVO(Long zoneId, Long accountId, Long domainId, String description, String usageDisplay, int usageType, Double rawUsage, Long vmId,
+                   Long offeringId, Long usageId, Long networkId, Date startDate, Date endDate) {
+        this.zoneId = zoneId;
+        this.accountId = accountId;
+        this.domainId = domainId;
+        this.description = description;
+        this.usageDisplay = usageDisplay;
+        this.usageType = usageType;
+        this.rawUsage = rawUsage;
+        this.vmInstanceId = vmId;
+        this.offeringId = offeringId;
+        this.usageId = usageId;
+        this.startDate = startDate;
+        this.endDate = endDate;
+        this.networkId = networkId;
+    }
+
+
     public UsageVO(Long zoneId, Long accountId, Long domainId, String description, String usageDisplay, int usageType, Double rawUsage, Long vmId, String vmName,
 
 Review comment:
   @kishankavala can you answer @borisroman ?
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services