Request parameters for setting event notifications
| Parameter | Type | Mandatory (Yes/No) | Description |
|---|---|---|---|
| options | The context of the bucket request. For details, see Configuring option (SDK for C). | Yes | Bucket parameters |
| notification_conf | obs_smn_notification_configuration* | Yes | Indicates the container for configuring the event notification. |
| handler | obs_response_handler * | Yes | Callback function |
| callback_data | void * | No | Callback data |
The following table describes the parameter obs_smn_notification_configuration.
| Parameter | Type | Description |
|---|---|---|
| topic_conf | obs_smn_topic_configuration* | Container for configuring the event notification topic |
| topic_conf_num | unsigned int | Number of topic_conf |
The following table describes the parameter obs_smn_topic_configuration.
| Parameter | Type | Description |
|---|---|---|
| topic | char * | URN of the event notification topic. After detecting a specific event, OBS sends a message to the topic. |
| id | char * | Unique ID of each event notification. If no ID is specified, the system automatically assigns one. |
| filter_rule | obs_smn_filter_rule * | Container for storing key-value pairs of filtering rules |
| filter_rule_num | unsigned int | Number of filter_rule |
| event | obs_smn_event_enum* | Type of events that requiring notification |
| event_num | unsigned int | Number of event types |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot