All Products
Search
Document Center

Function Compute (2.0):LogTriggerConfig

Last Updated:Mar 03, 2024
ParameterTypeDescriptionExample
object

The configurations of the Log Service trigger.

sourceConfigSourceConfig

The configurations of the trigger source.

jobConfigJobConfig

The interval at which the trigger reads logs, and the retry configuration upon errors.

functionParameterobject

The invocation parameter.

string

The content of the invocation parameter. Log Service passes the configurations into the function as part of the event. The value of this parameter must be a JSON string.

"serverless"
logConfigJobLogConfig

The log configurations of the trigger.

{'project': 'my-sls-project', 'logstore': 'my-sls-logstore'}
enableboolean

Specifies whether to enable the trigger.

  • true: enables the trigger.
  • false: does not enable the trigger. In this case, the log configurations do not take effect.
true