rhtyd opened a new issue #3831: The metrics view API response is not super-set 
of resources response keys
URL: https://github.com/apache/cloudstack/issues/3831
 
 
   The API responses for metrics views APIs, such as listZonesMetrics don't 
have all the same keys in the API response as the listZones. If this gets fixed 
in 4.14, Primate can leverage one API to do both metrics and resource view 
listings.
   
   Illustration, output of listZonesMetrics:
   ```
       {
         "allocationstate": "Disabled",
         "clusters": "1 / 1",
         "cputotal": "0.00 Ghz",
         "dhcpprovider": "VirtualRouter",
         "id": "b00e2dca-9032-4f1d-aada-8b2cdc19e745",
         "localstorageenabled": true,
         "memorytotal": "0.00 GB",
         "name": "DummyInvalidZone",
         "securitygroupsenabled": true,
         "state": "Disabled",
         "tags": [],
         "zonetoken": "1dbe40a9-46e0-33a8-9b93-44066c94fdfa"
       }
   ```
   
   Output of listZones:
   ```
       {
         "allocationstate": "Disabled",
         "dhcpprovider": "VirtualRouter",
         "dns1": "8.8.8.8",
         "id": "b00e2dca-9032-4f1d-aada-8b2cdc19e745",
         "internaldns1": "8.8.8.8",
         "localstorageenabled": true,
         "name": "DummyInvalidZone",
         "networktype": "Basic",
         "securitygroupsenabled": true,
         "tags": [],
         "zonetoken": "1dbe40a9-46e0-33a8-9b93-44066c94fdfa"
       }
   ```
   
   The `networktype` is missing. There are also disprepancies seen in the 
listHosts, listHostsMetrics API responses, but did not check other APIs related 
to volume, vm, cluster and storage pool. It's possible the way a java object is 
parsed and serialised needs checking/fixing.
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   API
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on master 
branch.
   -->
   ~~~
   4.13, 4.14/master
   ~~~

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to