Follow

Creating alerts for Android devices

Alerts are a powerful and helpful way to assist you in managing your deployed devices. Moki provides a highly configurable method for you to set up alerts for your account. This document will explain how to create and manage alerts. 

Create an alert

The alerts page is where you create and manage your alert definitions. To create a new alert definition, you simply click on the "+" button in the upper right corner of the Alert view. 

001-Alerts.png

Once clicked you can now create your alert definition.

002-Alerts-Create.png

Here are the steps for defining a new alert:

  1. Give your new alert definition a descriptive name. In this example "My Alert" is the name.
  2. Select an alert severity. On this scale 1 is the highest priority, and 5 is the lowest.
  3. Choose if you want to fire an alert based on an Event or Custom Data:
    • Fire alert when the event does NOT occur: You may also fire alerts based on the absence of an event type. For example, if you wish to be alerted that a device has missed scheduled heartbeats (indicating it may be offline) you can choose the event type "DEVICE_UPDATE." DEVICE_UPDATE will be reported with every heartbeat and sometimes multiple times per heartbeat so if that isn't seen for a defined period of time you can infer that the device is offline. NOTE: Moki recommends that this time period is set to at least 2x your heartbeat interval. Most devices have a 60-minute heartbeat so setting this time window to at least 120 minutes or higher will help prevent getting false reports.
    • Event: This is an event reported by Agent. Events can come from basic Android state changes or may also come from your SDK enabled apps. If you choose an Event, the alert will fire when a device in your group reports that event on their next heartbeat.You can see listed the existing alerts created for your account. If you mouse over 
    • Custom Data: Custom data can be sent to Moki from SDK enabled apps. This includes many important Android 
    • NOTE: You can add more criteria using the "+" button in the upper right corner. The best advice, however, is to keep it simple. 
  4. Once you have defined your alert, scroll down the page and assign your alert to one or more Device Groups. Alerts are assigned to device groups. This allows you to target specific sets of devices as well as defining specific targets where your alerts are sent.

004-Alerts-Create.png

  1. Once assigned to device groups you need to scroll up and hit the create button.

Setting alert targets

The final step to creating alerts is setting your alert targets. This is done in the alert area of each device group.

007-Alerts-Device-Groups.png

  1. Decide which device group you want to configure to send the alert.
  2. Click on the "Alert" link within the box for your device group.
  3. On this page, you add alerts you have already defined in the top box by clicking the "+" button in the upper box.
  4. In the lower box, you set your alert targets. The options are email, SMS/text, or URL

Email

Email alerts require the following settings:

  1. Recipient Name
  2. Email address
  3. Severity (setting to 1 gets all alert severities, setting to 3 gets alert severities 3-5, setting to 5 gets only alert severity of 5)

 SMS (Text)

SMS alerts require the following settings:

  1. Recipient Name
  2. Phone Number (including area code)
  3. Carrier (choose your carrier from the select list)
  4. Severity (setting to 1 gets all alert severities, setting to 3 gets alert severities 3-5, setting to 5 gets only alert severity of 5)

URL

Alerts can be set to send alerts as JSON to a URL. These can be used as webhooks for applications like Zapier, or you can create your own app and provide that URL to the alert, and you can process it how you like. 

URL alerts require the following settings:

  1. Website Name
  2. URL (webhook or custom URL)
  3. Severity (setting to 1 gets all alert severities, setting to 3 gets alert severities 3-5, setting to 5 gets only alert severity of 5)

That does it for creating alerts. For managing alerts see the "Managing alerts for Android devices."

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.