|
Parameter |
Type |
Description |
Example |
|---|---|---|---|
|
object |
The log configuration for the function. |
||
| enableInstanceMetrics |
boolean |
Specifies whether to enable instance-level metrics. When this feature is enabled, you can view core metrics for each instance, such as CPU usage, memory usage, network conditions, and the number of requests. The default value is `false`, which disables instance-level metrics. Set the value to `true` to enable them. |
true |
| enableRequestMetrics |
boolean |
Specifies whether to enable request-level metrics. When this feature is enabled, you can view the time and memory consumed by each function invocation in the service. The default value is `true`, which enables request-level metrics. Set the value to `false` to disable them. |
true |
| logBeginRule |
string |
The rule for matching the first line of a log entry. |
DefaultRegex |
| logstore |
string |
The name of the Logstore in Simple Log Service. |
test-logstore |
| project |
string |
The name of the Project in Simple Log Service. |
test-project |
| enableLlmMetrics |
boolean |