Parameter | Type | Description | Example |
---|---|---|---|
object | The log configuration of the function. | ||
logstore | string | The name of the Logstore. | test-prj |
project | string | The name of the project. | 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 the collection of instance-level metrics. If you enable this feature, you can view core metrics, such as CPU utilization, memory usage, network conditions of instances, and the number of requests that an instance concurrently processes. Valid values:
| true |
logBeginRule | string | The log segmentation rule. Logs are segmented based on the log segmentation rule. The log blocks that are obtained after the segmentation are written to Log Service. Valid values:
| DefaultRegex |