Search in sources :

Example 6 with Logmsg

use of org.opennms.netmgt.xml.event.Logmsg in project opennms by OpenNMS.

the class EventTranslatorIT method createEventWithParms.

private Event createEventWithParms(String uei, List<Parm> parms) {
    Event e = MockEventUtil.createEventBuilder("Automation", uei).getEvent();
    e.setHost("localhost");
    e.setParmCollection(parms);
    Logmsg logmsg = new Logmsg();
    logmsg.setContent("Testing Passive Status Keeper with down status");
    e.setLogmsg(logmsg);
    return e;
}
Also used : Logmsg(org.opennms.netmgt.xml.event.Logmsg) Event(org.opennms.netmgt.xml.event.Event)

Aggregations

Event (org.opennms.netmgt.xml.event.Event)6 Logmsg (org.opennms.netmgt.xml.event.Logmsg)6 Parm (org.opennms.netmgt.xml.event.Parm)3 OnmsEvent (org.opennms.netmgt.model.OnmsEvent)2 AlarmData (org.opennms.netmgt.xml.event.AlarmData)2 Value (org.opennms.netmgt.xml.event.Value)2 BufferedReader (java.io.BufferedReader)1 StringReader (java.io.StringReader)1 InetAddress (java.net.InetAddress)1 ArrayList (java.util.ArrayList)1 Date (java.util.Date)1 LinkedList (java.util.LinkedList)1 ObjectNotFoundException (org.hibernate.ObjectNotFoundException)1 Test (org.junit.Test)1 OnmsAlarm (org.opennms.netmgt.model.OnmsAlarm)1 OnmsEventParameter (org.opennms.netmgt.model.OnmsEventParameter)1 OnmsNode (org.opennms.netmgt.model.OnmsNode)1