Soracom

IoT Template Gallery

Receive email notifications when daily data usage of IoT SIMs exceeds specified thresholds, including data usage for the past 5 days. This assumes the use of Event Handler.

Overview

This app template notifies you by email when the data usage of IoT SIMs owned by a customer (operator) exceeds a threshold, along with data usage for the past 5 days. This app helps with:

  • Tracking data usage fluctuations
  • Monitoring unintended data transmissions
  • Maintaining budget visibility

The destination email address, email content, and threshold can be changed through configuration.

Email Example

The sent email will contain content like:

Operator: OP0012345678's data usage has exceeded the specified value.
Data usage for the past 5 days is as follows:
2025/6/11: Upload 149 MiB, Download 402 MiB
2025/6/12: Upload 166 MiB, Download 1089 MiB
2025/6/13: Upload 70 MiB, Download 181 MiB
2025/6/14: Upload 103 MiB, Download 828 MiB
2025/6/15: Upload 65 MiB, Download 478 MiB
2025/6/16: Upload 255 MiB, Download 81 MiB
  • Decimal places are rounded up.

Estimated Cost of Running a Flux App

The estimated cost to run a Flux app created from this template is as follows

  • When this app and the event handler are configured, the event handler will run up to once a day with data traffic thresholds, and the Flux app will count the number of events twice per day, for a total of 31 events counted over a month (31 days) of operation.
  • SORACOM Flux Developer plans offer up to 10,000 events/month free per account, with a $0.11 per event charge for any events exceeding 10,000 events/month.
  • The number of events and credits will initially be capped at the same amount as the free bundle. If the limit is reached, the events will no longer launch apps or perform actions. If you wish to use more than this, please update the limit in advance. If you set a limit that exceeds the monthly bundle amount, the excess number of events and credits will be available on a pay-as-you-go basis.

The following is an estimate and actual costs may vary depending on your usage. For accurate pricing, please refer to usage details in the User Console.

Preparation

Before deploying this template, prepare the following:

  • Email Settings: A verified destination email address

For details, refer to SORACOM’s documentation on Email Settings.

Creating the App

You can set the destination email address when creating the app.

Select a verified destination email address from the [Select email address] button.

Post-Creation Tasks

Event Handler Configuration

Configure an event handler with data usage as the threshold. Refer to SORACOM’s documentation on Event Handler for setting up the event handler. For the rule, select Sim Daily total traffic, and for the action, select Execute web request. Specify the Incoming webhook URL of the event input channel as the URL.

Confirm the incoming webhook URL

  1. Click on Event Input Channel.

  1. Click on Show Webhook URL.

  1. Copy the Webhook URL.

Set the copied Webhook URL in the event handler’s action Send a request to a specified URL.

Customization

You can change the email content template in the email notification action settings screen.

  1. Click the [EMAIL Notification] action in Flux Studio.

  1. Update the email destination and body from [CONFIG].

Troubleshooting

If it’s not working properly, check the app’s execution history. For details, refer to View Logs.