public class EventsApi extends Object
| Constructor and Description |
|---|
EventsApi(ApiClient api)
EventsApi constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<Event> |
all()
all is used to get a list of all events.
|
List<Event> |
all(Options options)
all is used to get a list of all events.
|
List<EventData> |
allData(Long eventId,
Long start,
Long stop)
Get data from start to stop for a given event.
|
Msg |
delete(long id)
Delete a event by id.
|
Msg |
deleteData(Long eventId,
Long dataId)
Delete EventData.
|
Event |
get(long id)
get a event by the id.
|
EventData |
getData(Long eventId,
Long dataId)
Get a single Data point by its id.
|
Event |
insert(EventInsert event)
Insert a new event.
|
EventData |
insertData(Long eventId,
EventDataInsert data)
Create new EventData for a given event.
|
public EventsApi(ApiClient api)
api - ApiClient.public List<Event> all() throws IOException
IOExceptionpublic List<Event> all(Options options) throws IOException
options - which contain query parametersIOExceptionpublic Event get(long id) throws IOException
id - id of the event.IOExceptionpublic Event insert(EventInsert event) throws IOException
event - EventInsert containing data for the new event.IOExceptionpublic Msg delete(long id) throws IOException
id - id of the event.IOExceptionpublic List<EventData> allData(Long eventId, @Nullable Long start, @Nullable Long stop) throws IOException
eventId - the event id for which the data is requested.start - start time.stop - stop time.IOExceptionpublic EventData getData(Long eventId, Long dataId) throws IOException
eventId - the event id.dataId - the event data id.IOExceptionpublic EventData insertData(Long eventId, EventDataInsert data) throws IOException
eventId - the event for which the data will ne inserted.data - EventDataInsert the data that will be inserted.IOExceptionpublic Msg deleteData(Long eventId, Long dataId) throws IOException
eventId - the event id.dataId - the event data id.IOExceptionCopyright © 2016. All rights reserved.