You can configure the alert service to deliver payload to third party endpoints using Rest API. After you define the Rest API configuration using these steps,you must also create an action set.
- From the Setup Options list, select Delivery Settings
- From the Delivery Types list, select REST API.
- In the Name field, enter the name of the REST API.
- In the Endpoint URL, enter the REST API endpoint URL.
- Select the Enable checkbox. By default, the UseSSL is selected to use the Security Sockets Layer as the transmission protocol.
- In Login for Authorization Type, now only Authorization: Basic is supported.
- Enter username and password for the REST API endpoint.
- [Optional]: To verify Rest API endpoint delivery settings, after providing username and password select Test. If the operation is successful,
appears. If the operation fails,
appears. Verify the settings are correct and try again..
- If the test is unsuccessful, verify the proper JSON template payload is provided at /opt/Teradata/cam/alert/config/cam-restapi-testdata.txt. The following is a sample payload:
{ "description" : "Certificates expired Alert", "metric_name" : "certificate:tmsmonitor_vpt-vp-7647", "metric_value" : " expires on Thu Mar 27 04:46:13 PDT 2025", "severity" : "CRITICAL", "node" : "NA", "time_of_event" : "2025-03-26T00:00:00.124-07:00", "short_description" : "TMS Monitor certificate expired", "resource" : "viewpoint-hostname (Viewpoint)", "event_class" : " CertificateAlertScheduler", "type" : "Database", "source" : "Teradata Viewpoint" } - Still if fails, verify given details, like Rest API endpoint URL, username and password are provided properly.
- Still issue exists, verify the error displayed and in the viewpoint.log file.
If the operation is successful, the Rest API service will post the above sample payload to the provided REST endpoint.
- Select Apply.
For customizing the JSON file, refer the Working with REST API Alerts topic in the Viewpoint Installation, Configuration, and Upgrade guide.
The REST API alerts does not work for Data Mover, Bar Portlets and Hadoop. - If the test is unsuccessful, verify the proper JSON template payload is provided at /opt/Teradata/cam/alert/config/cam-restapi-testdata.txt. The following is a sample payload:
PostrequisiteAfter the REST API configuration is complete, create an Action Set.