HTTP-JSON delivery methods
Details
HTTP-JSON type delivery methods send alerts to any server configured to receive JSON objects. These JSON objects are sent using the POST request method over HTTP or HTTPS to the server where you intend to receive alerts.
Server configuration
For a successful validation and use, you must configure the destination server to accept petitions from the corresponding Devo domain and return a 200 to 300 status code. If it uses Digest access authentication, you can identify the user and password required for authentication.
There are two different types of requests made by Devo to send JSON objects:
One type contains the encapsulated alert and its extraData.
The extraData is included as a string with the fields encoded using urlEncoding. Even though the extraData compiles info only from certain fields (more info here), all of them are included, showing empty values for those not compiled (legacy feature).
A URL to the alert in the Devo platform is included for easy access to its details.
The other type is used for the validation process.
Â
You can find below the information required on the New Delivery Method window for this delivery method (for the creation process visit Manage delivery methods).
Name | A unique name that identifies this specific delivery method. |
---|---|
Timezone | This is the time zone that will be used to calculate when alerts can be sent. This will be applied to the schedule defined in any sending policy that uses this delivery method. |
URL | The URL of the server to which the alerts should be sent. |
Language | The language in which to send the alert content. |
Content-Type |
|
Choose the desired authentication method | Choose one of the available authentication options:
|
Add headers | You may add specific headers to the JSON objects using this delivery method. To do it, check the Add headers box at the bottom of the window. Enter the required header names and values and click the Add button to include them in the delivery method. The list will all the headers added will appear below. Note that Content-Type, Content-Length, Accept, Authorization and Host are reserved headers and cannot be used as names. |
Activation
The new delivery method is saved in Pending status.
To activate it, you will need to introduce in Devo the HTTP validation code that you will receive through the URL specified. This activation code must be validated on the server side before the delivery method can be used.
Server configuration
The server where you intend to receive the alerts must have been properly configured to accept petitions from the corresponding Devo domain and return a 200 to 300 status code. Otherwise, the activation process will fail and the delivery method will not be validated.
Copy the code and then return to the newly created delivery method in Devo. Click pending activation under the status column, paste the validation code into the Activation Code window and click Apply.
You can now associate this new delivery method with sending policies to start receiving alerts through this method.
Â