New event on the emnify platform: 75% of your monthly limit reached

24.02.2023
guide-image

The emnify platform gives you the opportunity, through the service policies, to set up a monthly data & SMS limit. This feature is now complemented with a new event/alert warning you that 75% of said limit has been reached.

In this article, we will show you how to use this new feature to have better control of your consumption and get notified via email when 75% of your data limit has been reached.

Requirements

  • an emnify account
  • at least one connected device
  • a Zapier account linked to your emnify account

1. On the emnify portal

a. Setting up a data limit & assigning it to the device

Please refer to this article for setting up a data or SMS limit.

For this exercise, we will set up a small limit of 12MB and assign it to our test device:

emnify portal showing a service policy configured with a 12MB monthly data limit.

Device assignment view showing the selected data limit policy applied to a test device.

b. Testing the alert & finding the event

Once you’ve correctly set up your data limit, and used some data, go to “Details” on the device with the data limit:

Device page in the emnify portal highlighting the Details section for a device with a data limit.

Then go to the “Events”:

Device Events tab in the emnify portal showing the list of recent events.

The following event will show up once you’ve used 75% of said limit:

emnify event entry for Endpoint data traffic limit warning indicating 75% of the monthly limit has been reached.

In this case, the limit set was 12 MB per device and per month. Therefore, the event showed up once 9 MB of data was consumed:

2. Setting up an email alert via Zapier

If you haven’t used the combination emnify + Zapier before, please refer to this article for a comprehensive introduction.

a. Create your Zap

All set? Then create a new Zap:

Zapier dashboard showing the option to create a new Zap.

Choose emnify as the triggering app:

Zapier app selection screen with emnify chosen as the trigger app.

b. Select the right event

Choose “All emnify events”:

Zapier trigger event selection showing All emnify events.

Choose your account (to associate your account, please refer to this article on how to associate your emnify account):

Zapier account connection step showing the selected emnify account.

Choose event number 65, “Endpoint data traffic limit warning”:

Zapier trigger configuration selecting event 65: Endpoint data traffic limit warning.

Concretely, choosing this event will create a data stream between emnify and zapier which will only redirect the event “Endpoint data traffic limit warning” to your Zapier account. As such the data stream will show up in the “Integration” tab of your emnify account and we recommend naming it properly so you don’t confuse it with other data streams that you might have created, and deleted by mistake:

emnify Integrations tab showing the newly created Zapier data stream and its name.

emnify portal screen confirming the integration or data stream setup details.

c. Test your trigger

After creating your Zap and selecting your event of interest, it is time to test your trigger.

In this step, Zapier will consult all emnify events in order to find a previous instance of the event “Endpoint data traffic limit warning”. If such an event happened before, then you’ll receive a recap. Click to “Continue”:

Zapier trigger test screen prompting to continue after finding a sample emnify event.

If this event has not occurred before, then Zapier will notify you and ask you if you want to proceed. You can then click Skip Test or go back to step 1.a :

Zapier message indicating no prior Endpoint data traffic limit warning event was found, with options to skip or proceed.

d. Have this event trigger an email being sent

You can then choose the application which will issue the notification following the occurrence of the event. In this article, we will use Gmail, but as you can see, there are hundreds of other options, including Outlook, Slack, Mailchimp, SalesForce, Hubspot, etc.

Zapier action app selection showing Gmail chosen to send an email notification.

Once you’ve selected, choose the type of action you want the app to perform. In this example, we want Gmail to send us an email:

Zapier Gmail action selection showing the Send Email action.

Then choose your account.

Once the account has been chosen, please select the recipient of the email. You can also add addresses in CC, and BCC as well as the originator of the email and her/his/its name.

Zapier Gmail email configuration showing recipient, CC/BCC, and sender fields.

Finally, you can decide what will be the content of the email, especially the title and the body of the email. Zapier conveniently provides you with fillers obtained from the test we performed earlier. Once the Zap has been turned on, future notifications will automatically contain all information regarding to your device name, ICCIDs, tags, etc.

Zapier Gmail message editor showing the email subject and body populated with dynamic fields from the emnify event.

e. Test & Publish your Zap

Zapier will then show you a recap and ask you to confirm. If you are happy with all the email looks like, click Continue. A test will be performed straight after:

Zapier review step showing a recap of the Zap before continuing to test.

Zapier test result confirmation indicating the email action ran successfully.

If you are happy with the result, you only have to click on “Publish Zap” and let the combo emnify + zapier monitor your consumptions and do the work for you automatically.

3. Implement on all your devices

After this testing device and testing data limit, you can obviously use this feature on a larger scale, with different devices and different data limits, for instance, 1,500MB:

emnify service policy example showing a higher monthly data limit configured (e.g., 1,500MB).

Additional emnify portal view showing applying or managing data limits across devices.

Overview screen illustrating devices and their configured limits after rollout to multiple devices.

Related Posts