Time Restrictions
This guide explains how you can set up time based weekday restrictions for individual actions on Datacake Rule Engine.
Last updated
This guide explains how you can set up time based weekday restrictions for individual actions on Datacake Rule Engine.
Last updated
This document provides an overview of the Time Restrictions feature within the Datacake Rule Engine. This feature allows users to specify time frames during which particular actions within a rule are permitted to trigger. If an action's associated time restriction is not met, the action will not execute, even if the rule's conditions are satisfied.
Work Shift Notifications: Set up rules to notify specific team members based on shift times.
Off-Hours Monitoring: Limit notifications to business hours or specific time frames to reduce unnecessary alerts outside working hours.
Daily or Weekly Alerts: Schedule notifications or actions to occur only on certain days, for example, to align with weekly reporting needs.
Begin by selecting the product for which you want to create a rule. This rule will apply to all devices within that product.
Choose a trigger condition (e.g., when a new measurement is received).
Set the rule’s conditions, such as “temperature is less than 10°C.”
Select an Action
Choose an action type (e.g., Email, Webhook, SMS, or Downlink) to execute when the rule’s conditions are met.
Customize the action details, such as the recipient for an email.
In Advanced Settings, enable Time Restrictions.
Define the time frame for the action, specifying:
Days of the Week: Select specific days (e.g., Monday through Friday).
Time Range: Set the start and end times for each selected day.
Example: Configure an email notification to send only from 12 a.m. to 8 a.m., Monday through Friday. Notifications outside this period will not be sent.
For actions requiring more complex schedules, you can add multiple time restrictions. For example, create multiple time ranges within the same day.
The Time Restrictions feature allows you to configure different time frames for each action within a single rule:
Example: Set an Email action to trigger only during a specified night shift (e.g., 12 a.m. to 8 a.m.) and a Webhook action to trigger at any time.
This is ideal for workflows involving shift-based alerts or targeted notifications based on time-sensitive needs.