Run Schedule

Overview

You can define schedules for monitor runs. The setting is available in the Monitor Wizard during monitor creation, and you can change it anytime.

How To

Modes

You can define a run schedule in two ways:

  • Standard: For simple schedule frequencies, such as daily, hourly or weekly.
  • Cron Expression: For complex schedules with the full power of cron.

Both options let you select a Timezone for the schedule.

Standard Options

  • Hourly: "At minute 0" each hour
  • Daily: At a specified hour each day
  • Weekly: At a specified hour on a specific day each week

Cron Expressions

If you need more flexibility on when your monitors should run — for example, scheduling your monitors to run on a specific hour or weekdays only — you can create a new schedule with Cron Expressions.

Note that Sifflet uses a non-standard implementation when both the day of the month and day of the week are provided (non-* values). In that case, it uses an 'AND' condition instead of an 'OR'. For example for the expression:

0 0 3 * TUE

The monitor will run on the 3rd of the month, if and only if it's also a Tuesday.

As Code

Parameters

These parameters belong in the root of the monitor definition and not in the params.

schedule: The cron schedule for the monitor. Alternatively, you can use @daily, @weekly, or @hourly for quick scheduling.

scheduleTimezone: The timezone for the schedule. For example, Europe/Paris.

kind: Monitor
version: 1
name: Unique Monitor
schedule: '@daily'
scheduleTimezone: Europe/Paris

Did this page help you?