Ad hoc events from SNMP traps

Problem:
I am sending SNMP traps to opennms, they are not defined on the MIB file.
How can I configure the events/ad-hoc.events.xml file properly?
Also I don’t have a UEI for these specific events.

Expected outcome:
I am trying to configure OpenNMS events in order to generate ad hoc alarms.

OpenNMS version:
28.1.0

Other relevant data:
Event “custom” file:




id
.1.3.6.1.4.1.45506.1.1.1

            <maskelement>
              <mename>generic</mename>
              <mevalue>6</mevalue>
            </maskelement>

            <maskelement>
              <mename>specific</mename>
              <mevalue>1</mevalue>
            </maskelement>
    </mask>
    <uei>org.opennms.netmgt.provision.detector.snmp.SnmpDetector</uei>
    <event-label>Mida Application Server Status</event-label>
    <descr>
        <p>This event shows the status of the Mida Application Server Status. </p>
    </descr>
    <logmsg dest="logndisplay"><p>Mida Event: %parm[#1]%.</p></logmsg>
    <severity>Normal</severity>
    <alarm-data reduction-key="%uei%:%dpname%:%nodeid%" alarm-type="1" auto-clean="true"/>
</event>