|
Parameter |
Type |
Description |
Example |
|---|---|---|---|
|
object |
The function log configuration. |
||
| enableInstanceMetrics |
boolean |
Specifies whether to enable instance-level metrics. After you enable this feature, you can view core metrics such as CPU usage, memory usage, network status, and request count at the instance level. Valid values: false: disables instance-level metrics. This is the default value. true: enables instance-level metrics. |
true |
| enableRequestMetrics |
boolean |
Specifies whether to enable request-level metrics. After you enable this feature, you can view the time and memory consumed by each invocation of all functions 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 line beginning matching rule. |
DefaultRegex |
| logstore |
string |
The Logstore name in Simple Log Service. |
test-logstore |
| project |
string |
The project name in Simple Log Service. |
test-project |
| enableLlmMetrics |
boolean |
Specifies whether to enable LLM metrics. After you enable this feature, you can view LLM metrics. We recommend that you enable this feature only for LLM inference services. Valid values: false: disables LLM metrics. This is the default value. true: enables LLM metrics. |