Get User Statistics

User's statistics show the summary of the resources used by a particular user and their costs (which are set in the bucket assigned to the user). To see the statistics, use this API call:

GET /users/:user_id/user_statistics.xml
GET /users/:user_id/user_statistics.json

XML Output example

<?xml version="1.0" encoding="UTF-8"?>
<user_stat>
<backup_cost type="decimal">0.0</backup_cost>
<currency_code>USD</currency_code>
<total_cost type="decimal">96500.0004196997</total_cost>
<user_resources_cost type="decimal">96500.0004196997</user_resources_cost>
<template_cost type="decimal">0.0</template_cost>
<storage_disk_size_cost type="decimal">0.0</storage_disk_size_cost>
<template_iso_cost type="decimal">0.0</template_iso_cost>
<autoscale_cost type="decimal">0.0</autoscale_cost>
<customer_network_cost type="decimal">0.0</customer_network_cost>
<acceleration_cost type="decimal">0.0</acceleration_cost>
<ova_cost type="decimal">0.0</ova_cost>
<ova_size_cost type="decimal">0.0</ova_size_cost>
<edge_group_cost type="decimal">0.00041969971744038</edge_group_cost>
<backup_cost type="decimal">96500.0</backup_cost>
<template_cost type="decimal">0.0</template_cost>
<user_id type="integer">1</user_id>
<backup_disk_size_cost type="decimal">0.0</backup_disk_size_cost>
<monit_cost type="decimal">0.0</monit_cost>
<stat_time nil="true"></stat_time>
<template_disk_size_cost type="decimal">0.0</template_disk_size_cost>
<vm_cost type="decimal">0.0</vm_cost>
<vm_stats type="array">
<vm_stat>
<total_cost type="decimal">0.0</total_cost>
<virtual_machine_id type="integer">0</virtual_machine_id>
<usage_cost type="decimal">0.0</usage_cost>
</vm_stat>
</vm_stats>
</user_stat> 

Where:

vm_stat – billing statistics on virtual servers, owned by the user

virtual_machine _id – ID of the VS, for which this statistics is generated

total_cost – sum total of VS costs (usage_cost + vm_resource_cost)

usage_cost –costs for actual usage of the VS

backup_cost - cost per backup per hour for the backups of a particular Backup server zone. The price is set by the Limits for backup server zone.

backup_disk_size_cost - cost per GB per hour for the backups of a particular Backup server zone. The price is set by the Limits for backup server zone.

backup_cost – cost per backup per hour

template_iso_cost – cost per ISO per hour

autoscale_cost – cost per number of VSs using Autoscaling 

customer_network_cost – cost per number of customer networks

acceleration_cost – cost per number of accelerated VSs

ova_cost – cost per OVA file per hour

ova_size_cost – cost per GB per hour for OVA file disk size 

currency_code - the currency set for this user

template_cost - cost per template per hour for the templates of a particular Backup server zone. The price is set by the Limits for backup server zone.

template_disk_size_cost - cost per GB per hour for the templates of a particular Backup server zone.

template_cost — total template costs (cost per template per hour)

edge_group_cost - total edge group costs

user_id - the ID of the user for whom the statistics are generated

stat_time - a particular point of time for which these statistics are generated

storage_disk_size_cost – costs for disk size used for backups/templates storage (cost per GB per hour) user_resources_cost — sum total of all backups/templates/monitis monitors costs (backup_cost+storage_disk_size_cost+template_cost+monit_cost)

total_cost — overall sum total of all costs (vm_cost+user_resources_cost)

monit_cost – total costs for VSs using monitis monitors (cost for VS per hour)

vm_cost – total VSs costs (sum total of all user VSs)

Page history


v.5.6

  • Removed the vm_resource_cost parameter
  • Replaced the backup_count_cost parameter with the backup_cost parameter
  • Replaced the ova_count_cost parameter with the ova_cost parameter
  • Replaced the template_count_cost parameter with the template_cost parameter

v5.2:

  • Added the following parameters:
    • template_iso_cost 
    • autoscale_cost 
    • customer_network_cost 
    • acceleration_cost 
    • ova_count_cost 
    • ova_size_cost