Volcano Engine Function as a Service
Parameter | Type | Required or Not | Sample value | Description |
Parameter | Type | Required or Not | Sample value | Description |
Action | String | Yes | UpdateKafkaTrigger | Interface name. The current API is called UpdateKafkaTrigger. |
Version | String | Yes | 2024-06-06 | Interface version. The current version of the API is 2024-06-06. |
FunctionId | String | Yes | wrw****** | |
Id | String | Yes | nw****** | |
Enabled | Boolean | No | true | Whether to enable the Trigger while creating it. Value:
tip Only Trigger enabled will work properly. |
MaximumRetryAttempts | Integer | No | 100 | The maximum number of retries when a function has run errors, including user code errors and runtime errors. A positive integer with values ranging from 0 to 100. |
Description | String | No | Example Kafka Trigger | Kafka Trigger description. The length is limited to 200 characters. |
BatchSize | Integer | No | 10 | The number of messages per batch consumed by the Trigger in bulk. The recommended value should not exceed 1,000. |
BatchFlushDurationMilliseconds | Integer | No | 1,000 | Maximum waiting time for bulk consumption by Trigger. The unit is millisecond (ms), and the value range is 1,000 to 60,000 ms. The default value is 1,000 ms. warning This parameter only takes effect when the BatchSize parameter has been configured. |
Parameter | Type | Sample value | Description |
Parameter | Type | Sample value | Description |
FunctionId | String | wrw****** | Function ID. |
Name | String | reviews-consumer | Kafka Trigger name. |
Description | String | Example Kafka Trigger | Kafka Trigger description. |
Enabled | Boolean | true | Whether to enable Kafka Trigger. Parameter value description:
|
MqInstanceId | String | kafka-cnngl4if****** | Message queue Kafka instance ID. |
TopicName | String | reviews-topic | Topic name of the message queue Kafka instance. |
StartingPosition | String | Latest | Start consuming the message located in the Topic. Parameter value description:
|
MaximumRetryAttempts | Integer | 100 | The maximum number of retries when a function runs incorrectly. |
Id | String | 18lt**** | Kafka Trigger ID. |
ConsumerGroup | String | reviews-topic_18lt**** | The consumer group of message queue Kafka instance. |
Status | String | pending | Kafka Trigger status. Parameter value description:
|
CreationTime | String | 2025-02-03 06:47:41.423691239 +0000 UTC | |
LastUpdateTime | String | 2025-02-03 06:47:41.423691239 +0000 UTC | |
BatchSize | Integer | 10 | The number of messages per batch consumed by the Trigger in bulk. |
BatchFlushDurationMilliseconds | Integer | 1,000 | Maximum waiting time for bulk consumption by Trigger. The unit is millisecond. |