For running and allocated virtual machine usage, the following fields exist in a usage record:
account – name of the account
accountid – ID of the account
domainid – ID of the domain in which this account resides
zoneid – Zone where the usage occurred
description – A string describing what the usage record is tracking
usage – String representation of the usage, including the units of usage (e.g. 'Hrs' for VM running time)
usagetype – A number representing the usage type (see Usage Types)
rawusage – A number representing the actual usage in hours
virtualMachineId – The ID of the virtual machine
name – The name of the virtual machine
offeringid – The ID of the service offering
templateid – The ID of the template or the ID of the parent template. The parent template value is present when the current template was created from a volume.
usageid – Virtual machine
type – Hypervisor
startdate, enddate – The range of time for which the usage is aggregated; see Dates in the Usage Record
5.1.2. Network Usage Record Format
For network usage (bytes sent/received), the following fields exist in a usage record.
account – name of the account
accountid – ID of the account
domainid – ID of the domain in which this account resides
zoneid – Zone where the usage occurred
description – A string describing what the usage record is tracking
usagetype – A number representing the usage type (see Usage Types)
rawusage – A number representing the actual usage in hours
usageid – Device ID (virtual router ID or external device ID)
type – Device type (domain router, external load balancer, etc.)
startdate, enddate – The range of time for which the usage is aggregated; see Dates in the Usage Record
5.1.3. IP Address Usage Record Format
For IP address usage the following fields exist in a usage record.
account - name of the account
accountid - ID of the account
domainid - ID of the domain in which this account resides
zoneid - Zone where the usage occurred
description - A string describing what the usage record is tracking
usage - String representation of the usage, including the units of usage
usagetype - A number representing the usage type (see Usage Types)
rawusage - A number representing the actual usage in hours
usageid - IP address ID
startdate, enddate - The range of time for which the usage is aggregated; see Dates in the Usage Record
issourcenat - Whether source NAT is enabled for the IP address
iselastic - True if the IP address is elastic.
5.1.4. Disk Volume Usage Record Format
For disk volumes, the following fields exist in a usage record.
account – name of the account
accountid – ID of the account
domainid – ID of the domain in which this account resides
zoneid – Zone where the usage occurred
description – A string describing what the usage record is tracking
usage – String representation of the usage, including the units of usage (e.g. 'Hrs' for hours)
usagetype – A number representing the usage type (see Usage Types)
rawusage – A number representing the actual usage in hours
usageid – The volume ID
offeringid – The ID of the disk offering
type – Hypervisor
templateid – ROOT template ID
size – The amount of storage allocated
startdate, enddate – The range of time for which the usage is aggregated; see Dates in the Usage Record
5.1.5. Template, ISO, and Snapshot Usage Record Format
account – name of the account
accountid – ID of the account
domainid – ID of the domain in which this account resides
zoneid – Zone where the usage occurred
description – A string describing what the usage record is tracking
usage – String representation of the usage, including the units of usage (e.g. 'Hrs' for hours)
usagetype – A number representing the usage type (see Usage Types)
rawusage – A number representing the actual usage in hours
usageid – The ID of the the template, ISO, or snapshot
offeringid – The ID of the disk offering
templateid – – Included only for templates (usage type 7). Source template ID.
size – Size of the template, ISO, or snapshot
startdate, enddate – The range of time for which the usage is aggregated; see Dates in the Usage Record
5.1.6. Load Balancer Policy or Port Forwarding Rule Usage Record Format
account - name of the account
accountid - ID of the account
domainid - ID of the domain in which this account resides
zoneid - Zone where the usage occurred
description - A string describing what the usage record is tracking
usage - String representation of the usage, including the units of usage (e.g. 'Hrs' for hours)
usagetype - A number representing the usage type (see Usage Types)
rawusage - A number representing the actual usage in hours
usageid - ID of the load balancer policy or port forwarding rule
usagetype - A number representing the usage type (see Usage Types)
startdate, enddate - The range of time for which the usage is aggregated; see Dates in the Usage Record
5.1.7. Network Offering Usage Record Format
account – name of the account
accountid – ID of the account
domainid – ID of the domain in which this account resides
zoneid – Zone where the usage occurred
description – A string describing what the usage record is tracking
usage – String representation of the usage, including the units of usage (e.g. 'Hrs' for hours)
usagetype – A number representing the usage type (see Usage Types)
rawusage – A number representing the actual usage in hours
usageid – ID of the network offering
usagetype – A number representing the usage type (see Usage Types)
offeringid – Network offering ID
virtualMachineId – The ID of the virtual machine
virtualMachineId – The ID of the virtual machine
startdate, enddate – The range of time for which the usage is aggregated; see Dates in the Usage Record
5.1.8. VPN User Usage Record Format
account – name of the account
accountid – ID of the account
domainid – ID of the domain in which this account resides
zoneid – Zone where the usage occurred
description – A string describing what the usage record is tracking
usage – String representation of the usage, including the units of usage (e.g. 'Hrs' for hours)
usagetype – A number representing the usage type (see Usage Types)
rawusage – A number representing the actual usage in hours
usageid – VPN user ID
usagetype – A number representing the usage type (see Usage Types)
startdate, enddate – The range of time for which the usage is aggregated; see Dates in the Usage Record