Notifications work separately from Alert Definitions. Each Alert Definition can be associated with zero or more Notification Profiles.
There two types of Notification Profiles, User Profiles, and Custom Profiles. All currently defined Notification Profiles are displayed on the Notification Profiles page.
All User and Custom Notification Profiles may be enabled, disabled and edited from the Notification Profiles page (given the appropriate credentials).
To navigate to the Notification Profiles page: in the Uptime Cloud Monitor UI, click on the Issues tab; then click on Notification Profiles in the Left Navigation panel.
User Notification Profiles
A default User Notification Profile is created by Uptime Cloud Monitor when a new User is created within the UI. It will contain an email notification destination.
This User Profile will be assigned a unique NOTIFICATION_PROFILE_ID and is uniquely associated with a single Uptime Cloud Monitor User.
The User Notification Profile is a component of the User’s Personal Settings, and cannot be deleted unless the User is deleted.
Each User may edit their own Notifications Profile on the Personal Settings page: in the Uptime Cloud Monitor UI, click on the Settings tab; then click on Personal Settings in the Left Navigation panel; finally click on Notification Settings.
User Notification Profiles may also be edited using the API, but cannot be deleted. Push notifications are User-specific, and therefore when enabled, will only appear in User Notification Profiles.
Custom Notification Profiles
Custom Notification Profiles can be created, edited, enabled, disabled and deleted using the UI or by using the API.
These profiles provide a great deal of flexibility in terms of managing a wide array of alerts, users, and notification priorities.
Unlike User Notification Profiles, Custom Profiles are not user-specific.
The Notification Profile Hash
An example JSON-encoded Notification Profile Hash is shown below:
The Notification Destination Hash
Each Notification Profile Hash will contain 0 or more Notification Destination Hashes, in an array named “destinations”.
Currently, there are 8 Notification Destination types defined:
Email
SMS
Push
HipChat
PagerDuty
Twitter
Webhook
Specifying Notification Destinations
The following summarizes the format of each.
Index
List all Notification Profiles.
CURL Command, and variations:
CURL Response:
Response is an array of JSON-encoded Notification Profile Hashes. The following exemplifies Twitter, SMS, HipChat and email notification destinations.
Show
Show in-depth information about a single notification profile.
Required parameters: NOTIFICATION_PROFILE_ID as part of the path.
CURL Command, and variations:
CURL Response:
Response is a single JSON Notification Profile Hash. In this case, the profile is the same Twitter profile as above.
Create
Create a new Notification Profile.
NOTE: the Create call will overwrite an existing profile
Required parameters:
At a minimum, you must include a name:
name
Your short text description of the Notification Profile; e.g., “Operations Twitter DM”.
Optional parameters:
You may include any of the following:
state
A Notification Profile may be either “enabled” or “disabled”. If disabled, no notifications will be sent to any of the included destinations.
Default if not specified: “enabled”
destinations
An array of notification destination hashes
Create Example 1: create a new Notification Profile, to demonstrate defaults.
CURL Command, and variations:
CURL Response:
Response is Status 200, and a newly-created Notification Profile Hash.
Create Example 2: create a new alert definition, with one notification destination specified.
CURL Command, and variations:
CURL Response:
Response is Status 200, and a newly-created Notification Profile Hash.
Note that creating this profile creates both a new NOTIFICATION_PROFILE_ID as well as a new Notification Destination ID:
Update
Update an existing Notification Profile.
Required parameters:
You must include all of the following:
NOTIFICATION_PROFILE_ID as part of the path.
Optional parameters:
Same as described for Create.
Update Example 1: Disable a Notification Profile, using the Profile created in Example 2, above:
CURL Command, and variations:
CURL Response:
Response is Status 200, and the updated Notification Profile Hash:
Update Example 2: add an additional Notification Destination to a Notification Profile:
At the end of Update Example 1, we were left with the following Notification Profile:
Now, add a new destination, this time SMS:
CURL Response:
Response is Status 200, and a newly-updated Notification Profile Hash.