CREATE NOTIFICATION INTEGRATION
Creates a named notification integration that can be used to send notifications to external messaging services.
NOTICE: this functionality works out of the box only in TiDB Cloud Lake.
Syntax
Webhook Notification
CREATE NOTIFICATION INTEGRATION [ IF NOT EXISTS ] <name>
TYPE = <type>
ENABLED = <bool>
[ WEBHOOK = ( url = <string_literal>, method = <string_literal>, authorization_header = <string_literal> ) ]
[ COMMENT = '<string_literal>' ]
Examples
Webhook Notification
CREATE NOTIFICATION INTEGRATION IF NOT EXISTS SampleNotification type = webhook enabled = true webhook = (url = 'https://example.com', method = 'GET', authorization_header = 'bearer auth')
This example creates a notification integration named SampleNotification of type webhook that is enabled and sends notifications to the https://example.com URL using the GET method and the bearer auth authorization header.