Timer Event Source

When you select Timer as the event source for the Flux App, the App will be triggered at regular intervals.

Event Source Configuration

Set the conditions for when event messages should be published to the channel from the event source.

Data Format

The data sent to a channel configured with the Timer event source consists of Message and Context.

You can check the data received by the event to the Flux App in the History tab of Soracom Flux Studio. For more details, refer to View Logs.

Message

For this event source, the message is always null.

Context

Data related to the timer. Here's an example:

{
  "eventType": "schedule",
  "data": {},
  "scheduleId": "0123456789ABCDEFGHIJKLMNOP",
  "timestamp": 1723203168131
}

The attributes are as follows:

Attribute Description
eventType The type of event. When the timer triggers the Flux App, the value is schedule.
data Always {}.
scheduleId An ID assigned to each timer.
timestamp The date and time when the Flux App execution was triggered by the Timer event source (UNIX time in milliseconds).

To reference the above Context in an action, input it as ${event.context.<CONTEXT_ATTRIBUTE>} or event.context.<CONTEXT_ATTRIBUTE> == 1.