Parameter | Type | Description | Example |
---|---|---|---|
object | The log configurations of the function. | ||
logstore | string | The Logstore name. | test-prj |
project | string | The project name. | test-logstore |
enableRequestMetrics | boolean | Specifies whether to enable request-level metrics. If you enable this feature, you can view the amount of time and memory consumed for a specific invocation of each function in the service. Valid values:
| true |
enableInstanceMetrics | boolean | Specifies whether to enable instance-level metrics. If you enable this feature, you can view instance-level core metrics, such as CPU utilization, memory usage, instance network conditions, and requests within an instance. Valid values:
| true |
logBeginRule | string | The log segmentation rule. Logs are segmented based on rules. Log segments are written to Simple Log Service.
| DefaultRegex |