public class GetEventStreamQueryParams extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GetEventStreamQueryParams.Builder |
static class |
GetEventStreamQueryParams.EventTypeDeserializer |
static class |
GetEventStreamQueryParams.EventTypeSerializer |
| Modifier and Type | Field and Description |
|---|---|
OffsetDateTime |
createdAfter
The lower bound date and time to return events for.
|
OffsetDateTime |
createdBefore
The upper bound date and time to return events for.
|
List<EnumWrapper<GetEventStreamQueryParamsEventTypeField>> |
eventType
A comma-separated list of events to filter by.
|
Long |
limit
Limits the number of events returned.
|
String |
streamPosition
The location in the event stream to start receiving events from.
|
EnumWrapper<GetEventStreamQueryParamsStreamTypeField> |
streamType
Defines the type of events that are returned
|
| Modifier | Constructor and Description |
|---|---|
|
GetEventStreamQueryParams() |
protected |
GetEventStreamQueryParams(GetEventStreamQueryParams.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
OffsetDateTime |
getCreatedAfter() |
OffsetDateTime |
getCreatedBefore() |
List<EnumWrapper<GetEventStreamQueryParamsEventTypeField>> |
getEventType() |
Long |
getLimit() |
String |
getStreamPosition() |
EnumWrapper<GetEventStreamQueryParamsStreamTypeField> |
getStreamType() |
public EnumWrapper<GetEventStreamQueryParamsStreamTypeField> streamType
* `all` returns everything for a user and is the default * `changes` returns events that may cause file tree changes such as file updates or collaborations. * `sync` is similar to `changes` but only applies to synced folders * `admin_logs` returns all events for an entire enterprise and requires the user making the API call to have admin permissions. This stream type is for programmatically pulling from a 1 year history of events across all users within the enterprise and within a `created_after` and `created_before` time frame. The complete history of events will be returned in chronological order based on the event time, but latency will be much higher than `admin_logs_streaming`. * `admin_logs_streaming` returns all events for an entire enterprise and requires the user making the API call to have admin permissions. This stream type is for polling for recent events across all users within the enterprise. Latency will be much lower than `admin_logs`, but events will not be returned in chronological order and may contain duplicates.
public String streamPosition
* `now` will return an empty list events and the latest stream position for initialization. * `0` or `null` will return all events.
public Long limit
Note: Sometimes, the events less than the limit requested can be returned even when there may be more events remaining. This is primarily done in the case where a number of events have already been retrieved and these retrieved events are returned rather than delaying for an unknown amount of time to see if there are any more results.
public List<EnumWrapper<GetEventStreamQueryParamsEventTypeField>> eventType
public OffsetDateTime createdAfter
public OffsetDateTime createdBefore
public GetEventStreamQueryParams()
protected GetEventStreamQueryParams(GetEventStreamQueryParams.Builder builder)
public EnumWrapper<GetEventStreamQueryParamsStreamTypeField> getStreamType()
public String getStreamPosition()
public List<EnumWrapper<GetEventStreamQueryParamsEventTypeField>> getEventType()
public OffsetDateTime getCreatedAfter()
public OffsetDateTime getCreatedBefore()