[ https://issues.apache.org/jira/browse/UNOMI-206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Serge Huber updated UNOMI-206: ------------------------------ Description: The idea is to add an endpoint to be able to search events. This can be very useful to retrieve for example all the view events generate by a specific profile. Here's an example of what such a query could look like : POST /cxs/events/search {code:java} { "limit" : 5, "condition" : { "type" : "booleanCondition", "parameterValues" : { "operator" : "and", "subConditions" : [ { "type" : "eventTypeCondition", "parameterValues" : { "eventTypeId" : "view" } }, { "type" : "eventPropertyCondition", "parameterValues" : { "propertyName" : "profileId", "comparisonOperator" : "equals", "propertyValue" : "0daab9e1-fc20-48a5-bfd7-a9dc634d8b9e" } } ] } } }{code} was: The idea is to add an endpoint to be able to search events. This can be very useful to retrieve for example all the view events generate by a specific profile. Here's an example of what such a query could look like : POST /cxs/events/search {code:java} { "limit" : 5, "condition" : { "type" : "booleanCondition", "parameterValues" : { "operator" : "and", "subConditions" : [ { "type" : "eventTypeCondition", "parameterValues" : { "eventTypeId" : "view" } }, { "type" : "eventPropertyCondition", "parameterValues" : { "propertyName" : "profileId", "comparisonOperator" : "equals", "propertyValue" : "0daab9e1-fc20-48a5-bfd7-a9dc634d8b9e" } } ] } } }{code} > Add endpoint to search in events > -------------------------------- > > Key: UNOMI-206 > URL: https://issues.apache.org/jira/browse/UNOMI-206 > Project: Apache Unomi > Issue Type: Improvement > Components: core > Affects Versions: 1.1.0-incubating, 1.2.0-incubating, 1.3.0-incubating > Reporter: Serge Huber > Assignee: Serge Huber > Priority: Major > Fix For: 1.4.0-incubating > > > The idea is to add an endpoint to be able to search events. This can be very > useful to retrieve for example all the view events generate by a specific > profile. > Here's an example of what such a query could look like : > > POST /cxs/events/search > {code:java} > { > "limit" : 5, > "condition" : { > "type" : "booleanCondition", > "parameterValues" : { > "operator" : "and", > "subConditions" : [ > { > "type" : "eventTypeCondition", > "parameterValues" : { > "eventTypeId" : "view" > } > }, > { > "type" : "eventPropertyCondition", > "parameterValues" : { > "propertyName" : "profileId", > "comparisonOperator" : "equals", > "propertyValue" : "0daab9e1-fc20-48a5-bfd7-a9dc634d8b9e" > } > } > ] > } > } > }{code} > -- This message was sent by Atlassian JIRA (v7.6.3#76005)