HPA Telemetry Schema 91/65991/2
authorDileep Ranganathan <dileep.ranganathan@intel.com>
Tue, 11 Sep 2018 17:20:15 +0000 (10:20 -0700)
committerDileep Ranganathan <dileep.ranganathan@intel.com>
Wed, 12 Sep 2018 06:47:54 +0000 (23:47 -0700)
Added HPA Capacity type in the schema.
Added Capacity information to Compute Nodes in the pserver object
Added relationships for pserver and flavor, pserver and hpa-capacity

Change-Id: I326ed9dd13d94082e532ebaf7286af7a43d9117c
Issue-ID: AAI-1593
Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
aai-schema/src/main/resources/onap/dbedgerules/v14/DbEdgeRules_hpa_v14.json
aai-schema/src/main/resources/onap/oxm/v14/aai_oxm_v14.xml

index 11ea1b5..a2d4444 100644 (file)
       "prevent-delete": "NONE",
       "default": "true",
       "description":""
+    },
+    {
+      "from": "hpa-capacity",
+      "to": "pserver",
+      "label": "org.onap.relationships.inventory.BelongsTo",
+      "direction": "OUT",
+      "multiplicity": "MANY2ONE",
+      "contains-other-v": "!${direction}",
+      "delete-other-v": "!${direction}",
+      "SVC-INFRA": "!${direction}",
+      "prevent-delete": "NONE",
+      "default": "true",
+      "description":"HPA Capacity KV for given compute node"
+    },
+    {
+      "from": "flavor",
+      "to": "pserver",
+      "label": "org.onap.relationships.inventory.CanBeInstantiatedIn",
+      "direction": "OUT",
+      "multiplicity": "MANY2MANY",
+      "contains-other-v": "NONE",
+      "delete-other-v": "NONE",
+      "prevent-delete": "NONE",
+      "default": "true",
+      "description":"HPA Capacity getting the compute nodes from given flavor"
     }
   ]
 }
index 15ef277..0996468 100644 (file)
                 <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."/>