Notification Management
Overview
The paper introduces the operations of notification management to you, including creating, editing and deleting notifications.
Create Notification
When creating a queue, the user can choose to configure message notifications to keep track of job status. The user can choose not to notice, or choose the information to be noticed. If a queue is set with message notification, the job status will be called back to the address set in the notification automatically when the jobs under the queue finish.
The information message is pushed by HTTP POST.
HTTP POST message format
POST /notexist HTTP/1.1
host: multimedia.bce-testinternal.baidu.com
accept: _/_
content-type: application/json
content-length: 559
{
"messageId": "bqs-topic-134-1-5",
"messageBody": "{\\"jobId\\":\\"job-ffyfa478uh4mjyrz\\",\\"pipelineName\\":\\"a2\\",\\"jobStatus\\":\\"FAILED\\",\\"createTime\\":\\"2015-06-23T05:44:21Z\\",\\"startTime\\":\\"2015-06-23T05:44:25Z\\",\\"endTime\\":\\"2015-06-23T05:47:36Z\\",\\"error\\":{\\"code\\":\\"JobOverTime\\",\\"message\\":\\"the job has timed out.please retry it\\"},\\"source\\":{\\"sourceKey\\":\\"1.mp4\\"},\\"target\\":{\\"targetKey\\":\\"out.mp4\\",\\"presetName\\":\\"bce.video_mp4_854x480_800kbps\\"}}",
"subscriptionName": "hello2",
"version": "v1alpha",
"signature": "BQS signature"
}
Note: You only have to extract the messageBody content for resolution.
Operation Steps
1.Log in MCT Console.
2.Select Product Configurations->Notification Management in the left navigation bar to enter “Notification Management” page.
3.Click Create Notification Template, and enter “Create Notification” page.
4.Enter the notification name, callback address and callback verification type. When using the signature for verification, you need to enter a Token. Please refer to Notification Interface API for methods of application.
5.Enter relevant information and click OK to complete the creation of notification template.
Edit Notification
When the notification configuration information changes, you can update the notification information through editing the notification configuration.
Operation Steps
1.Log in MCT Console.
2.Select Product Configurations->Notification Management in the left navigation bar to enter “Notification Management” page.
3.Click the Edit button in the operation list to enter “Edit Notifications” Page.
4.Only the notification name is not editable, other information is all editable.
5.Confirm relevant information, and click OK to complete the modification of notification template.
Delete Notice
If the notification configuration is not used, you can delete the notification.
Notes
The notification configuration cannot be restored after being deleted.
Operation Steps
1.Log in MCT Console.
2.Select Product Configurations->Notification Management in the left navigation bar to enter “Notification Management” page.
3.Click Delete button in the operation list, and pop up the deletion window.
4.Click OK to complete the deletion of notification template, it cannot be recovered once it is deleted.