[ 
https://issues.apache.org/jira/browse/JCLOUDS-1468?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John McDonnell updated JCLOUDS-1468:
------------------------------------
    Description: 
Looking at the CloudStack sources[1], it seems the current version of the 
CloudStack APIs module doesn't support all the available usage types, request 
parameters, and response parameters.

Usage Types missing:

 
||Usage Type||Usage Type Number||
|VM_DISK_IO_READ|21|
|VM_DISK_IO_WRITE|22|
|VM_DISK_BYTES_READ|23|
|VM_DISK_BYTES_WRITE|24|
|VM_SNAPSHOT|25|
|VOLUME_SECONDARY|26|
|VM_SNAPSHOT_ON_PRIMARY|27|

 

Source: 
[https://github.com/apache/cloudstack/blob/master/api/src/main/java/org/apache/cloudstack/usage/UsageTypes.java]

 

+*List Usage Records Request*+

 
||Missing flag||CloudStack implementation||Description||
|includetags|[GetUsageRecordsCmd.java|https://github.com/apache/cloudstack/blob/master/api/src/main/java/org/apache/cloudstack/api/command/admin/usage/GetUsageRecordsCmd.java]|As
 part  CLOUDSTACK-9958/ [PR 
2242|https://github.com/apache/cloudstack/pull/2242] to the CloudStack project, 
tags were introduced to be optionally returned via the ListUsageRecords command.
 
Part of this issue is to introduce this parameter to JClouds.|


 +*List Usage Records Response Changes*+
||Missing Usage Parameter||Description||
|domain|Unable to find when this was introduced but looks to have been part of 
the UsageRecord response for at least 5 years|
|virtualSize|Unable to find when this was introduced but looks to have been 
part of the UsageRecord response for at least 5 years|
|cpuNumber|As part of CLOUDSTACK-6850 cpuNumber, cpuSpeed and memory were 
introduced into CloudStack|
|cpuSpeed|As part of CLOUDSTACK-6850 cpuNumber, cpuSpeed and memory were 
introduced into CloudStack|
|memory|As part of CLOUDSTACK-6850 cpuNumber, cpuSpeed and memory were 
introduced into CloudStack|
|isSystem|Unable to find when this was introduced but looks to have been part 
of the UsageRecord response for at least 5 years|
|networkId|Unable to find when this was introduced but looks to have been part 
of the UsageRecord response for at least 5 years|
|isDefault|Unable to find when this was introduced but looks to have been part 
of the UsageRecord response for at least 5 years|
|tags|As part  CLOUDSTACK-9958/ [PR 
2242|https://github.com/apache/cloudstack/pull/2242] to the CloudStack project, 
tags were introduced to be optionally returned via the ListUsageRecords command.
 
Part of this issue is to introduce this parameter to JClouds.|

Source:

[https://github.com/apache/cloudstack/blob/master/api/src/main/java/org/apache/cloudstack/api/response/UsageRecordResponse.java]

  was:
Looking at the CloudStack sources, it seems the current version of the 
CloudStack module doesn't support all the available request parameters, and 
response parameters.

Request:
Missing - includetags flag:

[https://github.com/apache/cloudstack/blob/master/api/src/main/java/org/apache/cloudstack/api/command/admin/usage/GetUsageRecordsCmd.java]

Reponse:
Missing -  domain
Missing -  virtualSize
Missing -  cpuNumber
Missing -  cpuSpeed
Missing - memory
Missing - isSystem
Missing - networkId
Missing - isDefault
Missing - tags

[https://github.com/apache/cloudstack/blob/master/api/src/main/java/org/apache/cloudstack/api/response/UsageRecordResponse.java]


> Add missing fields on CloudStack usage API
> ------------------------------------------
>
>                 Key: JCLOUDS-1468
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-1468
>             Project: jclouds
>          Issue Type: New Feature
>    Affects Versions: 2.1.1
>            Reporter: John McDonnell
>            Priority: Major
>
> Looking at the CloudStack sources[1], it seems the current version of the 
> CloudStack APIs module doesn't support all the available usage types, request 
> parameters, and response parameters.
> Usage Types missing:
>  
> ||Usage Type||Usage Type Number||
> |VM_DISK_IO_READ|21|
> |VM_DISK_IO_WRITE|22|
> |VM_DISK_BYTES_READ|23|
> |VM_DISK_BYTES_WRITE|24|
> |VM_SNAPSHOT|25|
> |VOLUME_SECONDARY|26|
> |VM_SNAPSHOT_ON_PRIMARY|27|
>  
> Source: 
> [https://github.com/apache/cloudstack/blob/master/api/src/main/java/org/apache/cloudstack/usage/UsageTypes.java]
>  
> +*List Usage Records Request*+
>  
> ||Missing flag||CloudStack implementation||Description||
> |includetags|[GetUsageRecordsCmd.java|https://github.com/apache/cloudstack/blob/master/api/src/main/java/org/apache/cloudstack/api/command/admin/usage/GetUsageRecordsCmd.java]|As
>  part  CLOUDSTACK-9958/ [PR 
> 2242|https://github.com/apache/cloudstack/pull/2242] to the CloudStack 
> project, tags were introduced to be optionally returned via the 
> ListUsageRecords command.
>  
> Part of this issue is to introduce this parameter to JClouds.|
>  +*List Usage Records Response Changes*+
> ||Missing Usage Parameter||Description||
> |domain|Unable to find when this was introduced but looks to have been part 
> of the UsageRecord response for at least 5 years|
> |virtualSize|Unable to find when this was introduced but looks to have been 
> part of the UsageRecord response for at least 5 years|
> |cpuNumber|As part of CLOUDSTACK-6850 cpuNumber, cpuSpeed and memory were 
> introduced into CloudStack|
> |cpuSpeed|As part of CLOUDSTACK-6850 cpuNumber, cpuSpeed and memory were 
> introduced into CloudStack|
> |memory|As part of CLOUDSTACK-6850 cpuNumber, cpuSpeed and memory were 
> introduced into CloudStack|
> |isSystem|Unable to find when this was introduced but looks to have been part 
> of the UsageRecord response for at least 5 years|
> |networkId|Unable to find when this was introduced but looks to have been 
> part of the UsageRecord response for at least 5 years|
> |isDefault|Unable to find when this was introduced but looks to have been 
> part of the UsageRecord response for at least 5 years|
> |tags|As part  CLOUDSTACK-9958/ [PR 
> 2242|https://github.com/apache/cloudstack/pull/2242] to the CloudStack 
> project, tags were introduced to be optionally returned via the 
> ListUsageRecords command.
>  
> Part of this issue is to introduce this parameter to JClouds.|
> Source:
> [https://github.com/apache/cloudstack/blob/master/api/src/main/java/org/apache/cloudstack/api/response/UsageRecordResponse.java]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to