Action URL alert information

book

Article ID: 198621

calendar_today

Updated On:

Products

CA App Synthetic Monitor

Issue/Introduction

This KD contains some information on using Action URL alert contacts to send alerts to when a Monitor fails a check.
 
Will it support HTTPS?
Will it result in a HTTPS post with data like that in an email?
What does the post data look like? Is it a JSON format?
I assume there’s no authentication or login support. Or can be embedded in the URL?
 

Environment

ASM SaaS

Resolution

Q: Will it support HTTPS?
A: yes if the certificate of the url is valid.

Q: Will it result in a HTTPS post with data like that in an email?
A: It will result in a POST with the following data:
array (
 'id' => 'ff4d6d50-1a58-11ea-91b7-ef44b66ffeb7',  // unique identifier of the check
 'status' => '7', // status = 2 means OK, status = 7 means error
 'message' => 'Not matched', // result message, in this case it is error message
 'since' => '2019-12-09 08:53:34',  // since this time the monitor is in error
 'errors' => '1',  // number of consequent errors
 'rid' => '517506', // monitor ID
 'uid' => '104016', // user ID 
 'name' => 'Text 10%', // monitor name
 'type' => 'https', // monitor type
 'host' => 'ca.drzacek.cz', // host name (depends on the monitor type)
 'port' => '443',
 'path' => '/alive.html', // depends on monitor type
 'cloudmonitor' => '',
)

Q: What does the post data look like? Is it a JSON format?
A: the header is:
Content-type: application/x-www-form-urlencoded; charset=UTF-8

Q: I assume there’s no authentication or login support. Or can be embedded in the URL?
A: No authentication support. If the authentication were included in the URL it would be visible in contacts, logs etc. which is not secure. There are even no action URL parameters supported (we plan to revise it in the future)