Merge "HPA Telemetry Schema"
authorJames Forsyth <jf2512@att.com>
Fri, 14 Sep 2018 15:18:06 +0000 (15:18 +0000)
committerGerrit Code Review <gerrit@onap.org>
Fri, 14 Sep 2018 15:18:06 +0000 (15:18 +0000)
1  2 
aai-schema/src/main/resources/onap/oxm/v14/aai_oxm_v14.xml

                                                 <xml-property name="description" value="the status of external system." />
                                         </xml-properties>
                                 </xml-element>
 +                               <xml-element java-attribute="openstackRegionId" name="openstack-region-id" type="java.lang.String">
 +                                       <xml-properties>
 +                                                 <xml-property name="description" value="OpenStack region ID used by MultiCloud plugin to interact with an OpenStack instance." />
 +                                       </xml-properties>
 +                               </xml-element>
                                 <xml-element java-attribute="resourceVersion" name="resource-version" type="java.lang.String">
                                         <xml-properties>
                                                 <xml-property name="description" value="Used for optimistic concurrency.  Must be empty on create, valid on update and delete." />
                  <xml-element java-attribute="relationshipList" name="relationship-list" type="inventory.aai.onap.org.v14.RelationshipList"/>
                  <xml-element java-attribute="pInterfaces" name="p-interfaces" type="inventory.aai.onap.org.v14.PInterfaces"/>
                  <xml-element java-attribute="lagInterfaces" name="lag-interfaces" type="inventory.aai.onap.org.v14.LagInterfaces"/>
+                 <xml-element container-type="java.util.ArrayList" java-attribute="hpaCapacity" name="hpa-capacity" type="inventory.aai.onap.org.v14.HpaCapacity"/>
              </java-attributes>
              <xml-properties>
                  <xml-property name="description" value="Compute host whose hostname must be unique and must exactly match what is sent as a relationship to a vserver."/>
              </xml-properties>
          </java-type>
  
+         <java-type name="HpaCapacity">
+             <xml-root-element name="hpa-capacity"/>
+             <java-attributes>
+                 <xml-element java-attribute="hpaCapacityKey" name="hpa-capacity-key" required="true" type="java.lang.String" xml-key="true">
+                     <xml-properties>
+                         <xml-property name="description" value="Composite key formed with hpaFeature and append list of hpaFeatureAttributes needed for capacity check"/>
+                     </xml-properties>
+                 </xml-element>
+                 <xml-element java-attribute="hpaCapacityValue" name="hpa-capacity-value" type="java.lang.String">
+                     <xml-properties>
+                         <xml-property name="description" value="JSON string specifying the capacity (total,free), unit and metadata of the specific HPA attribute"/>
+                     </xml-properties>
+                 </xml-element>
+                 <xml-element java-attribute="resourceVersion" name="resource-version" type="java.lang.String">
+                     <xml-properties>
+                         <xml-property name="description" value="Used for optimistic concurrency.  Must be empty on create, valid on update and delete."/>
+                     </xml-properties>
+                 </xml-element>
+                 <xml-element java-attribute="relationshipList" name="relationship-list" type="inventory.aai.onap.org.v14.RelationshipList"/>
+             </java-attributes>
+             <xml-properties>
+                 <xml-property name="description" value="HPA Capacity information for compute node"/>
+                 <xml-property name="indexedProps" value="hpa-capacity-key"/>
+                 <xml-property name="dependentOn" value="hpa-capacity"/>
+             </xml-properties>
+         </java-type>
          <java-type name="PInterfaces">
              <xml-properties>
                  <xml-property name="description" value="Collection of physical interfaces."/>