Function: set_config
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Functions as an extension API of acl.prof.create_config and is used to set profile data collection parameters.
This API can be called for multiple times. You need to ensure data consistency and accuracy.
Prototype
- C Prototype
1aclError aclprofSetConfig(aclprofConfigType configType, const char *config, size_t configLength)
- Python Function
1ret = acl.prof.set_config(config_type, config)
Parameter Description
Parameter |
Description |
|---|---|
config_type |
Int. Each constant indicates a different collection configuration. To use different options of this API to collect multiple types of profile data, you need to call this API for multiple times. The details are as follows:
|
config |
Str, configuration parameter value. |
Return Value Description
Return Value |
Description |
|---|---|
ret |
Int, error code.
|
Restrictions
Call acl.prof.set_config and then acl.prof.start. You can call this API as required.