Package com.cumulocity.sdk.client.event
Class EventFilter
java.lang.Object
com.cumulocity.sdk.client.Filter
com.cumulocity.sdk.client.event.EventFilter
A filter to be used in event queries.
The setter (by*) methods return the filter itself to provide chaining:
EventFilter filter = new EventFilter().byType(type).bySource(source);
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyCreationDate
(Date fromDate, Date toDate) byFragmentType
(Class<?> fragmentType) byFragmentType
(String fragmentType) byFragmentValue
(String fragmentValue) byFromCreationDate
(Date fromDate) byFromDate
(Date fromDate) Specifies thesource
query parameterbySource
(ManagedObjectRepresentation source) Deprecated.Specifies thetype
query parametergetType()
Methods inherited from class com.cumulocity.sdk.client.Filter
encode, getQueryParams
-
Constructor Details
-
EventFilter
public EventFilter()
-
-
Method Details
-
byType
Specifies thetype
query parameter- Parameters:
type
- the type of the event(s)- Returns:
- the event filter with
type
set
-
bySource
Specifies thesource
query parameter- Parameters:
id
- the managed object id that generated the event(s)- Returns:
- the event filter with
source
set
-
bySource
Deprecated.Specifies thesource
query parameter- Parameters:
source
- the managed object that generated the event(s)- Returns:
- the event filter with
source
set
-
getType
- Returns:
- the
type
parameter of the query
-
getSource
- Returns:
- the
source
parameter of the query
-
byFragmentType
-
byFragmentType
-
byFragmentValue
-
getFragmentType
-
getFragmentValue
-
byDate
-
byFromDate
-
getFromDate
-
getToDate
-
getCreatedFrom
-
getCreatedTo
-
byCreationDate
-
byFromCreationDate
-