Striim 3.9.4 / 3.9.5 documentation

Timer Events

You can set timer events using the following functions:

Function

Description

timer(interval <int> {second|minute|hour})

A condition that does not wait for a new event from any stream.

When the timer expires, it send a signal as an event from the timer stream.

signal( variable )

The next event is expected from the timer defined by the specified variable.

stop( variable )

Stops the timer and cancels sending the timer event.

For example, this pattern matches no events for a period of 50 seconds:

PATTERN T W
DEFINE
T=timer(interval 50 second),
W=signal(T)

This pattern matches all events from streamA for 30 seconds (until event W is received from the timer):

PATTERN T A* W -- matching all events from streamA for 30 seconds
DEFINE
T timer(interval 30 second),
A=streamA,
W=signal(T)

This pattern matches an event from streamA within 30 seconds. If an event from streamA does not occur within 30 seconds, an event from the timer will be received causing the pattern matching to fail:

PATTERN T A -- matching event from streamA within 30 seconds
DEFINE
T=timer(interval 30 second),
A=streamA

This pattern matches events from streamA for 30 seconds. It subsequently matches events from streamB for 30 seconds:

PATTERN T A C T2 B -- matching event A for 30 seconds and then event B within 30 seconds
DEFINE
T=timer(interval 30 second),
A=streamA,
C=stop(T),
T2=timer(interval 30 second),
B=streamB