Class EventQueryResult
- java.lang.Object
-
- de.tsystems.mms.apm.performancesignature.dynatracesaas.rest.model.EventQueryResult
-
public class EventQueryResult extends Object
Result of an Event Feed Query
-
-
Constructor Summary
Constructors Constructor Description EventQueryResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventQueryResultaddEventsItem(EventRestEntry eventsItem)EventQueryResultevents(List<EventRestEntry> events)EventQueryResultfrom(Long from)List<EventRestEntry>getEvents()List of eventsLonggetFrom()Start of the query timeframeStringgetNextCursor()If the result would return more than 150 events, nextCursor contains a string that can be used to fetch the next 150 results.LonggetNextEventId()ID of the next event if the total number of events exceeds the maximum batch size of 150 events per request.LonggetNextEventStartTms()Start time of the next event if the total number of events exceeds the maximum batch size of 150 events per request.LonggetTo()End of the query timeframeLonggetTotalEventCount()Total amount of events foundEventQueryResultnextCursor(String nextCursor)EventQueryResultnextEventId(Long nextEventId)EventQueryResultnextEventStartTms(Long nextEventStartTms)voidsetEvents(List<EventRestEntry> events)voidsetFrom(Long from)voidsetNextCursor(String nextCursor)voidsetNextEventId(Long nextEventId)voidsetNextEventStartTms(Long nextEventStartTms)voidsetTo(Long to)voidsetTotalEventCount(Long totalEventCount)EventQueryResultto(Long to)StringtoString()EventQueryResulttotalEventCount(Long totalEventCount)
-
-
-
Method Detail
-
nextEventStartTms
public EventQueryResult nextEventStartTms(Long nextEventStartTms)
-
getNextEventStartTms
public Long getNextEventStartTms()
Start time of the next event if the total number of events exceeds the maximum batch size of 150 events per request.- Returns:
- nextEventStartTms
-
setNextEventStartTms
public void setNextEventStartTms(Long nextEventStartTms)
-
nextEventId
public EventQueryResult nextEventId(Long nextEventId)
-
getNextEventId
public Long getNextEventId()
ID of the next event if the total number of events exceeds the maximum batch size of 150 events per request.- Returns:
- nextEventId
-
setNextEventId
public void setNextEventId(Long nextEventId)
-
nextCursor
public EventQueryResult nextCursor(String nextCursor)
-
getNextCursor
public String getNextCursor()
If the result would return more than 150 events, nextCursor contains a string that can be used to fetch the next 150 results. If nextCursor is null, then there are no more events returned by the query.- Returns:
- nextCursor
-
setNextCursor
public void setNextCursor(String nextCursor)
-
from
public EventQueryResult from(Long from)
-
getFrom
public Long getFrom()
Start of the query timeframe- Returns:
- from
-
setFrom
public void setFrom(Long from)
-
to
public EventQueryResult to(Long to)
-
getTo
public Long getTo()
End of the query timeframe- Returns:
- to
-
setTo
public void setTo(Long to)
-
totalEventCount
public EventQueryResult totalEventCount(Long totalEventCount)
-
getTotalEventCount
public Long getTotalEventCount()
Total amount of events found- Returns:
- totalEventCount
-
setTotalEventCount
public void setTotalEventCount(Long totalEventCount)
-
events
public EventQueryResult events(List<EventRestEntry> events)
-
addEventsItem
public EventQueryResult addEventsItem(EventRestEntry eventsItem)
-
getEvents
public List<EventRestEntry> getEvents()
List of events- Returns:
- events
-
setEvents
public void setEvents(List<EventRestEntry> events)
-
-