Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-1468

Add missing fields on CloudStack usage API

    Details

      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 As part  CLOUDSTACK-9958/ PR 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-9958PR 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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              johnmcdonnell John McDonnell
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: