@Produces(value="application/json") @Path(value="/events") public class EventServiceEndpoint extends Object
Constructor and Description |
---|
EventServiceEndpoint() |
Modifier and Type | Method and Description |
---|---|
Event |
getEvents(String id)
Allows to retrieve event by id.
|
Set<String> |
getEventTypeNames()
Retrieves the list of event types identifiers that the server has processed.
|
PartialList<Event> |
searchEvents(Query query)
Allows to search events using a query.
|
void |
setEventService(EventService eventService) |
public void setEventService(EventService eventService)
@POST @Path(value="/search") public PartialList<Event> searchEvents(Query query)
query
- the query object to use to search for events. You can specify offset and limits along with a
condition tree.@GET @Path(value="/{id}") public Event getEvents(@PathParam(value="id") String id)
id
- the event id.Event
with the provided id.Copyright © 2014–2022 Apache Software Foundation. All rights reserved.