Change in ovirt-engine[master]: restapi: Renamed the statistics "type" property to "kind"

juan.hernandez at redhat.com juan.hernandez at redhat.com
Wed Sep 30 14:16:10 UTC 2015


Juan Hernandez has submitted this change and it was merged.

Change subject: restapi: Renamed the statistics "type" property to "kind"
......................................................................


restapi: Renamed the statistics "type" property to "kind"

The statistics used to be represented using a "type" element that
indicates the kind of statistic (gauge, counter, etc) and also a "type"
attribute that indicates the type of the values (integer, string, etc):

  <statistic>
    <type>GAUGE</type>
    <values type="INTEGER">
      <value>...</value>
      <value>...</value>
      ...
    </values>
  </statistic>

To avoid the use of the "type" concept for both things the first has
been replaced by "kind", and both `kind` and `type` are now elements:

  <statistic>
    <kind>GAUGE</kind>
    <type>INTEGER</type>
    <values>
      <value>...</value>
      <value>...</value>
      ...
    </values>
  </statistic>

Change-Id: I1139776b25babdb550d553d0ab90f364ca6179aa
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
---
M backend/manager/modules/restapi/README.md
M backend/manager/modules/restapi/interface/definition/src/main/schema/api.xsd
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/AbstractStatisticalQuery.java
M backend/manager/modules/restapi/jaxrs/src/test/java/org/ovirt/engine/api/restapi/resource/BackendStatisticsResourceTest.java
M backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/GlusterVolumeProfileInfoMapper.java
M backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/utils/StatisticResourceUtils.java
6 files changed, 48 insertions(+), 20 deletions(-)

Approvals:
  Juan Hernandez: Verified; Looks good to me, approved
  Jenkins CI: Passed CI tests



-- 
To view, visit https://gerrit.ovirt.org/46854
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I1139776b25babdb550d553d0ab90f364ca6179aa
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: automation at ovirt.org



More information about the Engine-commits mailing list