Routing to OBS
Configure OBS as the event target when creating an event stream.
Prerequisites
- You have enabled OBS as the event target.
- Select DMS for RocketMQ as the event source.
Procedure
- Log in to the EG console.
- In the navigation pane, choose Event Streams > Serverless Event Streams.
- Click Create Serverless Event Stream, click the
icon in the upper left corner, enter the event stream name and description, and click OK.
- Configure the event source by referring to Distributed Message Service (DMS) for Kafka.
- Configure the event target.
- Click Event Target.
- Select Object Storage Service (OBS) as the target.
- Set event target parameters.
Table 1 OBS parameters Parameter
Description
AK
Enter an AK.
NOTE:For details about how to obtain an AK/SK, see How Do I Obtain an Access Key (AK/SK)?
SK
Enter an SK.
Bucket
Select or enter an OBS bucket name.
Dumping Directory
Enter a directory
of an object in the bucket. Use slashes (/) to separate different directories.
Time Directory Format
Select a format.
NOTE:Data is saved to a hierarchical time directory in the dumping directory.
For example, if the time directory is accurate to day, the directory will be in the format of bucket name/file directory/year/month/day.
Rule
Transform Type
EG transforms CloudEvents-compliant events for targets. The following three types are supported:- Pass-through: Route the complete structure of native events directly to the target.
- Variables: Route only parameters extracted from events with JSONPath to the target.
- Constants: Route only constants in events to the target as a trigger.
For more information about the transform types, see Event Content Transformation.
Message Push
Batch Push
Specify whether to enable batch push to aggregate multiple events.
Messages
Interval (s)
The maximum number of aggregated records that can be pushed at a time. Default: 100. Range: 1–10,000. This parameter is available only when Batch Push is enabled.
The interval between batch pushes, in seconds. Default: 1. Range: 0–15. This parameter is available only when Batch Push is enabled.
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