Supported Trigger Events for FunctionGraph
Supported Trigger Events
Table 1 lists the supported cloud services and trigger events for FunctionGraph. After an event source trigger is configured, the corresponding function is automatically invoked when an event is detected.
|
Cloud Service/Feature |
Trigger Event |
|---|---|
|
Timer |
You can schedule a timer (timer example event) to invoke function code based on a fixed rate of minutes, hours, or days or a cron expression. For details, see Using a Timer Trigger. |
|
API Gateway (APIG) |
FunctionGraph functions are invoked over HTTP or HTTPS by defining REST APIs and endpoints on APIG. You can map each API operation (such as, GET and PUT) to a specific function. APIG invokes the relevant function when an HTTPS request (APIG example event) is sent to the API endpoint. For details, see Using an APIG (Dedicated) Trigger. |
|
ROMA Connect (APIC) |
With API operations such as GET and PUT mapped to specific functions, APIC can invoke corresponding functions to perform operations when receiving relevant HTTPS or HTTP requests. For details, see Using an APIC Trigger. |
|
Data Ingestion Service (DIS) |
DIS can ingest large amounts of data in real time. You can create a function to automatically poll a DIS stream and process all new data records, such as website click streams, financial transactions, social media streams, IT logs, and data tracking events (DIS example event). FunctionGraph periodically polls the stream for new data records. For details, see Using a DIS Trigger. |
|
Distributed Message Service (DMS) for Kafka |
When a message is created in a Kafka topic, FunctionGraph consumes the message and triggers the function to perform other operations (Kafka example event)). For details about how to use Kafka triggers, see: |
|
Distributed Message Service (DMS) for RabbitMQ |
When a DMS for RabbitMQ trigger is used, FunctionGraph periodically polls for new messages in a specific topic bound to the exchange of a RabbitMQ instance and passes the messages as input parameters to invoke functions (RabbitMQ example event). For details, see Using a DMS (for RabbitMQ) Trigger. |
|
GeminiDB MongoDB |
If you create a GeminiDB Mongo trigger for a function, any updates (GeminiDB MongoDB example event) to the specified database table will trigger the function. For details, see Using a GeminiDB Mongo Trigger. |
|
IoT Device Access (IoTDA) |
FunctionGraph can use IoTDA trigger to track device properties, message reporting, and status changes as well as analyze, sort out, and measure data flows (IoTDA example event). For details, see Using an IoTDA Trigger. |
|
Simple Message Notification (SMN) |
Simple Message Notification (SMN) sends messages to email addresses, mobile phones, or HTTP/HTTPS URLs. If you create a function with an SMN trigger, messages published to a specified topic will be passed as a parameter (SMN example event) to invoke the function. Then, the function processes the event, for example, publishing messages to other SMN topics or sending them to other cloud services. For details, see Using an SMN Trigger. |
|
Object Storage Service (OBS) |
Create a function for processing OBS events, such as object creation or deletion (OBS example events). When an image is uploaded to a specified bucket, OBS invokes the function to read the image and create a thumbnail. For details, see: |
|
EventGrid (EG) |
EventGrid (EG) receives messages from event sources and passes the message payload as a parameter (EG example event) to invoke a function. Then, the function processes the events, for example, sending messages to other cloud services. EventGrid supports the following event sources: |
Trigger Event Examples
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