aboutsummaryrefslogtreecommitdiffstats
path: root/UniversalVesAdapter/src/main/resources/snmptovesTest.xml
blob: 5fad2c9dfaf2f38f57a30be9e7346420768908fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0" encoding="UTF-8"?>
<smooks-resource-list
	 xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
	 xmlns:json="http://www.milyn.org/xsd/smooks/json-1.1.xsd"
	 xmlns:jb="http://www.milyn.org/xsd/smooks/javabean-1.2.xsd">
    <json:reader rootName="simple"  keyWhitspaceReplacement="-">
	</json:reader>
    <!-- <jb:bean class="com.example.demo.Simple" beanId="simple" createOnElement="simple">
    	<jb:value property="orderId" data="#/orderId" />
    	<jb:value property="username" data="#/username" />
    	<jb:wiring property="customer" beanIdRef="customer"/>
    	<jb:wiring property="orderItems" beanIdRef="orderItems"/>    	
    </jb:bean> -->
    
    <jb:bean class="org.onap.dcaegen2.ves.domain.VesEvent" beanId="vesEvent" createOnElement="simple">
    	<jb:wiring property="event" beanIdRef="event"/>
    </jb:bean>
 
     <jb:bean class="org.onap.dcaegen2.ves.domain.Event" beanId="event" createOnElement="simple">
    	<jb:wiring property="commonEventHeader" beanIdRef="commonEventHeader"/>
    	<jb:wiring property="faultFields" beanIdRef="faultFields"/>    	
    	<!--<jb:wiring property="measurementsForVfScalingFields" beanIdRef="measurementsForVfScalingFields"/> -->   	
    </jb:bean>   
    <!--<jb:bean class="org.onap.dcaegen2.ves.domain.MeasurementsForVfScalingFields" beanId="measurementsForVfScalingFields" createOnElement="simple">
    	<jb:wiring property="additionalMeasurements" beanIdRef="additionalMeasurements"/>
    </jb:bean>-->
    
    <jb:bean class="org.onap.dcaegen2.ves.domain.CommonEventHeader" beanId="commonEventHeader" createOnElement="simple">
    	<jb:value property="eventId" data="#/community" />
    	<jb:value property="eventName" data="#/protocol-version" /> 	
    	<jb:value property="domain" data="#/trap-category" /> 
    	<jb:value property="sequence" data="#/time-received" decoder="Long"/>
    	<jb:value property="lastEpochMicrosec" data="#/community-len"  decoder="Double" />
    	<jb:value property="startEpochMicrosec" data="#/notify-OID-len"   />
    </jb:bean>   
    
    <jb:bean class="org.onap.dcaegen2.ves.domain.FaultFields" beanId="faultFields" createOnElement="simple">
    	<jb:value property="alarmCondition" data="#/cambria.partition" />
    	<jb:value property="eventSeverity" data="#/notify-OID" /> 
    	<jb:value property="eventSourceType" data="#/agent-name" />
    	<jb:value property="specificProblem" data="#/agent-address" /> 	
    	<jb:value property="faultFieldsVersion" data="#/epoch_serno" decoder="Double" />
    </jb:bean>   
        
    
	<!--<jb:bean class="java.util.ArrayList" beanId="additionalMeasurements" createOnElement="simple">
    	<jb:wiring beanIdRef="additionalMeasurement"/>
    </jb:bean>    
    
    <jb:bean class="org.onap.dcaegen2.ves.domain.AdditionalMeasurement" beanId="additionalMeasurement" createOnElement="varbinds/element">
    	<jb:value property="name" data="#/varbind_value" />
    </jb:bean>  -->  
    
</smooks-resource-list>