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 EventQueryResult
addEventsItem(EventRestEntry eventsItem)
EventQueryResult
events(List<EventRestEntry> events)
EventQueryResult
from(Long from)
List<EventRestEntry>
getEvents()
List of eventsLong
getFrom()
Start of the query timeframeString
getNextCursor()
If the result would return more than 150 events, nextCursor contains a string that can be used to fetch the next 150 results.Long
getNextEventId()
ID of the next event if the total number of events exceeds the maximum batch size of 150 events per request.Long
getNextEventStartTms()
Start time of the next event if the total number of events exceeds the maximum batch size of 150 events per request.Long
getTo()
End of the query timeframeLong
getTotalEventCount()
Total amount of events foundEventQueryResult
nextCursor(String nextCursor)
EventQueryResult
nextEventId(Long nextEventId)
EventQueryResult
nextEventStartTms(Long nextEventStartTms)
void
setEvents(List<EventRestEntry> events)
void
setFrom(Long from)
void
setNextCursor(String nextCursor)
void
setNextEventId(Long nextEventId)
void
setNextEventStartTms(Long nextEventStartTms)
void
setTo(Long to)
void
setTotalEventCount(Long totalEventCount)
EventQueryResult
to(Long to)
String
toString()
EventQueryResult
totalEventCount(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)
-
-