Event data is passed to the handler of your function as an input. After configuration, event data is persisted for later use. Each function can have a maximum of 10 test events.
Figure 1 Configuring a test event

Parameter | Description |
|---|---|
Configure Test Event | You can choose to create a test event or edit an existing one. Use the default option Create new test event. |
Event Template | If you select blank-template, you can create a test event from scratch. If you select a template, the corresponding test event in the template is automatically loaded. For details about event templates, see Table 2. |
*Event Name | The event name can contain 1 to 25 characters and must start with a letter and end with a letter or digit. Only letters, digits, underscores (_), and hyphens (-) are allowed. For example, even-123test. |
Event data | Enter a test event. |
Template Name | Description |
|---|---|
blank-template | The template event is {"key": "value"}, which can be changed based on requirements. |
API Gateway (Dedicated Gateway) | Simulates an API Gateway event to trigger your function. |
Data Injection Service (DIS) | Simulates a DIS event to trigger your function. |
Simple Message Notification (SMN) | Simulates an SMN event to trigger your function. |
Object Storage Service (OBS) | Simulates an OBS event to trigger your function. |
timer | Simulates a timer event to trigger your function. |
Log Tank Service (LTS) | Simulates an LTS event to trigger your function. |
Cloud Trace Service (CTS) | Simulates a CTS event to trigger your function. |
DMS (for Kafka) | Simulates a Kafka event to trigger your function. |
Login Security Analysis | Serves as an input for the loginSecurity-realtime-analysis-python function template. |
Pornographic Image Analysis | Serves as an input for the porn-image-analysis function template. |
Speech Recognition | Serves as an input for the voice-analysis function template. |
Image Classification | Serves as an input for the image-tag function template. |
After creating a function, you can test it online to check whether it can run properly as expected.
The Log Output area displays a maximum of 2 KB logs. To view more logs, see Querying Logs.
Parameter | Description |
|---|---|
Configure Test Event | Select Edit saved test event. |
Saved Test Event | Select the test event you want to modify. |
Event data | Modify the test event code. |
Parameter | Description |
|---|---|
Create new test event | Select a test event template. |
Edit saved test event | Select the test event you want to delete. |