Class OnmsRestEventsClient
- java.lang.Object
-
- org.opennms.plugins.elasticsearch.rest.archive.OnmsRestEventsClient
-
public class OnmsRestEventsClient extends Object
Client for importing events from OpenNMS ReST interface (This is used to fill ES with old events from the OpenNMS database)- Author:
- cgallen
-
-
Field Summary
Fields Modifier and Type Field Description static StringEVENT_COUNT_URIstatic StringEVENTS_URIstatic StringNODE_LABEL
-
Constructor Summary
Constructors Constructor Description OnmsRestEventsClient(String baseUrl, String username, String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetEventCount()List<Event>getEvents(Integer limit, Integer offset)
-
-
-
Field Detail
-
NODE_LABEL
public static final String NODE_LABEL
- See Also:
- Constant Field Values
-
EVENTS_URI
public static final String EVENTS_URI
- See Also:
- Constant Field Values
-
EVENT_COUNT_URI
public static final String EVENT_COUNT_URI
- See Also:
- Constant Field Values
-
-