DCAE mS receiving VES Events may require enrichment to be done before generating a CL event structure expected by Policy (https://wiki.onap.org/display/DW/Control+Loop+Operational+Policy?focusedCommentId=10782165#comment-10782165)
VNF based VES Events
The VES events has sourceName which is mandatory field required to be set by the VNF (under event.commonEventHeader.sourceName) which can be passed as parameter to the following A&AI API - /aai/v11/network/generic-vnfs/generic-vnf?vnf-name={vnf-name} . The returned object is attached which can be used to set the policy required fields (such as is-closed-loop-disabled etc) in the CL event to be generated.
More complete A&AI API definitions can be found here - https://wiki.onap.org/pages/viewpage.action?pageId=13598793
Below is sample response for query (vnfname as iygiy89y98) –
<?xml version="1.0" encoding="UTF-8"?><generic-vnf xmlns="http://org.openecomp.aai.inventory/v11"><vnf-id>aef6d127-50d8-40bb-b64b-59f0e9e447eb</vnf-id><vnf-name>iygiy89y98</vnf-name><vnf-type>0238df0c-3aa4-4875-a8ca/f88b9078-c51e-43d4-9ff8 0</vnf-type><service-id>79cc4011-c67a-4458-bd7f-88f0f8ff49c8</service-id><prov-status>PREPROV</prov-status><orchestration-status>Created</orchestration-status><in-maint>false</in-maint><is-closed-loop-disabled>false</is-closed-loop-disabled><resource-version>1504622573983</resource-version><relationship-list><relationship><related-to>service-instance</related-to><related-link>/aai/v11/business/customers/customer/Demonstration/service-subscriptions/service-subscription/vLB/service-instances/service-instance/db8daf74-62f4-4d96-a24f-d08f1f349770</related-link><relationship-data><relationship-key>customer.global-customer-id</relationship-key><relationship-value>Demonstration</relationship-value></relationship-data><relationship-data><relationship-key>service-subscription.service-type</relationship-key><relationship-value>vLB</relationship-value></relationship-data><relationship-data><relationship-key>service-instance.service-instance-id</relationship-key><relationship-value>db8daf74-62f4-4d96-a24f-d08f1f349770</relationship-value></relationship-data><related-to-property><property-key>service-instance.service-instance-name</property-key><property-value>ofirrole</property-value></related-to-property></relationship></relationship-list></generic-vnf>