Class OnmsRestEventsClient
- java.lang.Object
-
- org.opennms.plugins.elasticsearch.rest.archive.OnmsRestEventsClient
-
public class OnmsRestEventsClient extends java.lang.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 java.lang.String
EVENT_COUNT_URI
static java.lang.String
EVENTS_URI
static java.lang.String
NODE_LABEL
-
Constructor Summary
Constructors Constructor Description OnmsRestEventsClient(java.lang.String baseUrl, java.lang.String username, java.lang.String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integer
getEventCount()
java.util.List<Event>
getEvents(java.lang.Integer limit, java.lang.Integer offset)
-
-
-
Field Detail
-
NODE_LABEL
public static final java.lang.String NODE_LABEL
- See Also:
- Constant Field Values
-
EVENTS_URI
public static final java.lang.String EVENTS_URI
- See Also:
- Constant Field Values
-
EVENT_COUNT_URI
public static final java.lang.String EVENT_COUNT_URI
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEventCount
public java.lang.Integer getEventCount()
-
getEvents
public java.util.List<Event> getEvents(java.lang.Integer limit, java.lang.Integer offset)
-
-