Package com.algolia.model.insights
Class ViewedFilters
java.lang.Object
com.algolia.model.insights.ViewedFilters
- All Implemented Interfaces:
EventsItems
Use this method to capture active filters. For example, when browsing a category page, users see
content filtered on that specific category.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.algolia.model.insights.EventsItems
EventsItems.Deserializer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFilters(String filtersItem) booleanCan contain up to 64 ASCII characters.Get eventTypeFacet filters.getIndex()Name of the Algolia index.Time of the event in milliseconds in [Unix epoch time](https://wikipedia.org/wiki/Unix_time).Anonymous or pseudonymous user identifier.inthashCode()setEventName(String eventName) setEventType(ViewEvent eventType) setFilters(List<String> filters) setTimestamp(Long timestamp) setUserToken(String userToken) toString()
-
Constructor Details
-
ViewedFilters
public ViewedFilters()
-
-
Method Details
-
setEventName
-
getEventName
Can contain up to 64 ASCII characters. Consider naming events consistently—for example, by adopting Segment's [object-action](https://segment.com/academy/collecting-data/naming-conventions-for-clean-data/#the-object-action-framework) framework. -
setEventType
-
getEventType
Get eventType -
setIndex
-
getIndex
Name of the Algolia index. -
setFilters
-
addFilters
-
getFilters
Facet filters. Each facet filter string must be URL-encoded, such as, `discount:10%25`. -
setUserToken
-
getUserToken
Anonymous or pseudonymous user identifier. > **Note**: Never include personally identifiable information in user tokens. -
setTimestamp
-
getTimestamp
Time of the event in milliseconds in [Unix epoch time](https://wikipedia.org/wiki/Unix_time). By default, the Insights API uses the time it receives an event as its timestamp. -
equals
-
hashCode
public int hashCode() -
toString
-