Every topic has a default expiration time frame specified when defining the topic. You can override that time frame by specifying a time frame within an individual rule.
You can set the expiration time frame of events at multiple places in RulePoint. The lowest expiration setting always takes precedence. The expiration time frame of events are shown in the following list:
System default expiration
Topic expiration
Event specific timestamp
Rule time frame
For example, if you set the system default expiration to one minute and set the topic specific expiration to seven days, those topics still expire after one minute. Conversely, if you set the topic specific expiration to 30 seconds, a value smaller than the system default expiration, then that expiration setting takes precedence.
You can use the within statement to specify a time frame to evaluate a rule. You can specify days, hours, minutes, and seconds. For example, the following rule activates when five stock events with symbol equal to XYZ occur within 10 minutes of receiving the first stock event with symbol equal to XYZ:
When 5 stock with symbol="XYZ" slide within 10 minutes then response
The value you set must be shorter than both the default value and the topic expiration time frames.
RulePoint evaluates all of the topics and conditions in the rule using the expiration time frame. You cannot specify different time frames for different topics within the same rule. Specifying a time frame in one rule does not affect the time frame for the topic in any other rule.