- What's New
- Billing
- Service Overview
- Getting Started
-
User Guide
- Getting Started with EG
- Permissions Management
- Event Sources
- Event Channels
- Event Subscriptions
- Event Streams
- Events
- Event Rules
- Event Targets
- Network Management
- IAM Projects and Enterprise Projects
- Authorization
- Event Monitoring
- Auditing
-
FAQs
- How Is EG Billed?
- Why Did My Event Source Creation Fail?
- How Do I Configure a Security Group When Creating an Event Source?
- Why Did My Event Publishing Fail?
- Why Was the Target Not Triggered?
- Can I Push Custom Events to EG?
- How Do I Filter Events to Transmit to the Target?
- How Do I Transfer Custom Event Content to the Target?
- How Do I Obtain the SASL Certificate Address of a DMS for Kafka Instance?
- SDK Reference
- General Reference
Show all
Copied.
Routing to FunctionGraph
Configure FunctionGraph as the event target when creating an event stream.
Prerequisites
You have enabled FunctionGraph and created a function as the event target.
Procedure
- Log in to the EG console.
- In the navigation pane, choose Event Streams.
- Click Create Event Stream.
- Enter an event stream name and description, and click OK.
- Configure the event source by referring to Configuring DMS for Kafka as the Event Source.
- Configure the event target.
- Click Event Target.
- Select FunctionGraph (function computing) for Target.
- Set event target parameters.
Figure 1 Event target - FunctionGraph
Table 1 FunctionGraph (function computing) parameters Parameter
Description
Function
Select the function to trigger. If no function is available, create one by referring to Creating a Function.
Version/Alias
Choose to specify a version or alias.
Version
Select a function version. Default: latest.
Alias
Select a function alias.
Execute
Default: Synchronously.
Agency
Select an agency. If no agency is available, click Create Agency to generate one named EG_INVOKE_FG_AGENCY.
- Only agencies with EG as the delegated cloud service are displayed.
- Select an agency with the permission functiongraph:function:invoke*.
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
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.
Interval (s)
The interval between batch pushes, in seconds. Default: 1. Range: 0–15. This parameter is available only when Batch Push is enabled.
- Click OK.
- After the event source and target are configured, click Save in the upper right.
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