All Products
Search
Document Center

Function Compute:LogTriggerConfig

Last Updated:Sep 14, 2024
ParameterTypeDescriptionExample
object

The configurations of the Simple Log Service trigger.

sourceConfigSourceConfig

The trigger source configuration.

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 configuration. Simple Log Service passes the configurations into the function as part of the event. The configuration content 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