All Products
Search
Document Center

Function Compute:LogConfig

Last Updated:Nov 22, 2024
ParameterTypeDescriptionExample
object

The function log configurations.

enableInstanceMetricsboolean

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
enableRequestMetricsboolean

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
logBeginRulestring

The log segmentation rule.

DefaultRegex
logstorestring

The name of the Logstore of Simple Log Service.

test-logstore
projectstring

The name of the project in Simple Log Service.

test-project