Eventline is now open source and available on GitHub !

If you are still using the old Eventline platform, contact us to migrate to the new service, and head to the new documentation website for more information.

time

Description

The time connector provides a way to activate triggers using various kind of timers.

Identities

This connector does not provide any identity.

Events

tick

The tick event is emitted when a timer goes off.

Trigger parameters

Parameters must include one of the following data fields:

oneshot (object)
The trigger will be activated one single time. The value is a datetime string.
periodic (integer)
The trigger will be activated at a fixed time interval. The value is the number of seconds between two activation.
hourly (object)
The trigger will be activated every hour. The value is an object containing two fields minute and second indicating the precise activation time.
daily (object)
The trigger will be activated every day. The value is an object containing three fields hour, minute, and second indicating the precise activation time.
weekly (object)
The trigger will be activated every week. The value is an object containing four fields day, hour, minute, and second indicating the precise activation time. The day field is a string indicating the day of the week between monday and sunday.

Data fields

This event does not contain any data field.

Examples

Trigger

Periodic

---
type: "trigger"
version: 1
name: "every-5-minutes"
data:
  connector: "time"
  event: "tick"
  parameters:
    periodic: 300 # seconds
  pipelines:
    - "my-pipeline"

Hourly

---
type: "trigger"
version: 1
name: "every-hour"
data:
  connector: "time"
  event: "tick"
  parameters:
    hourly:
      minute: 30
  pipelines:
    - "my-pipeline"

Daily

---
type: "trigger"
version: 1
name: "wake-up"
data:
  connector: "time"
  event: "tick"
  parameters:
    daily:
      hour: 7
      minute: 45
  pipelines:
    - "my-pipeline"

Weekly

---
type: "trigger"
version: 1
name: "weekend-time"
data:
  connector: "time"
  event: "tick"
  parameters:
    weekly:
      day: "friday"
      hour: 18
      minute: 30
  pipelines:
    - "my-pipeline"