Creating an Event
This section describes how to create an event to periodically respond to specific operations.
If you set event_scheduler to ON and enable the event function, you can manage events.
When event_scheduler is set to OFF, but the event function is enabled, you can only create events and the events do not take effect. For details about how to set parameter event_scheduler, contact TaurusDB technical support.
Procedure
- Log in to the DAS console.
- Click in the upper left corner and select a region and project.
- Click in the upper left corner, and under Databases, click Data Admin Service.
- In the navigation pane on the left, choose Development Tool.
You can also click Go to Development Tool on the overview page.
- Locate the DB instance that you want to log in to and click Log In in the Operation column.
- On the top menu bar, choose Database Management.
- On the displayed Objects page, select Events. In the upper left corner of the page, click Create Event.
Figure 1 Creating an event
- Enter an event name (mandatory) and event definition statements (mandatory), set the execution time, status, and comment, and click Create.
Figure 2 Specifying event information
- Event Definition Statements
Indicates the SQL statements to be executed when a scheduled event is triggered.
- Dropped upon expiration
Indicates that the event to be executed at a fixed time will be deleted after it is executed and the event to be executed in a scheduled cycle will be deleted at the specified time.
- Event Definition Statements
- In the displayed dialog box, click Execute. If there are no errors reported, the event takes effect.
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