Monitor key counts on a 5-minute schedule

Recipe ToolsMarketingDeveloper Tool

What it does

When the clock triggers every 5 minutes, this automation executes Ruby code to read and count the keys. The result is logged to the job report so someone can monitor key activity over time.

Who it's for

Operations teams who need to track key counts at regular intervals.

How teams use this

Monitor key counts on schedule

Check how many keys exist every 5 minutes and log each count to the job report. The team can review the report anytime to see if counts are stable or changing.

Alert when count drops below threshold

Add a condition after the Ruby code runs so the automation only logs when the count falls below a set number. Someone is notified only when the threshold is breached.

Run the check hourly instead

Change the clock trigger from every 5 minutes to every hour so key counts are checked less often. The rest of the automation stays the same.

How it works

  1. Start the check every 5 minutes. The clock starts this automation on a 5-minute schedule so key counts are checked regularly throughout the day.
  2. Execute Ruby code to read keys. Workato Custom Code runs Ruby code that reads and counts the keys, then stores the result for the next step to log.
  3. Log the count to job report. Write the key count to the job report so someone can review the history and spot any changes or issues.