RANGE_COUNT_EVENTS
Count how many events have been triggered in a time window between startDate and endDate.
Usage
RANGE_COUNT_EVENTS(eventListName, startDate, endDate)
Parameters
eventListName |
String |
The name of the event list containing the events to use. |
startDate |
DateTimeString |
The date and time we should start counting events from. |
endDate |
DateTimeString |
The date and time we should stop counting events to. |
Returns
Number
Examples
RANGE_COUNT_EVENTS(‘MyColl’, ‘2021-03-04’, ‘2021-03-15’) |
Count events in MyColl fired between 3/4/21 and 3/15/21. |
RANGE_COUNT_EVENTS(‘MyColl’, ‘2021-03-04’, GET_CURRENT_TIME()) |
Count events in MyColl fired between 3/4/21 and now. |
Remarks
If the provided collection name does not exist, the function will return 0.