Parameter | Type | Description | Example |
---|---|---|---|
object | The function log configurations. | ||
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: false: disables the collection of instance-level metrics. This is the default value. true: enables the collection of instance-level metrics. | true |
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: false: disables request-level metrics. true: enables request-level metrics. This is the default value. | true |
logBeginRule | string | The log segmentation rule. | DefaultRegex |
logstore | string | The name of the Logstore of Simple Log Service. | test-logstore |
project | string | The name of the project in Simple Log Service. | test-project |