配置数据集时,可以定义变量(也称为参数)来表示有意义的值。
To assign a value to a parameter (that is, to define the parameter), you add the parameter's name and value to the Parameters vector in a log processing or Transformation Dataset Include file. 定义参数之后,您就可以在数据集配置文件的配置文件中引用这些参数。定义和引用此类参数称为参数替代。配置数据集时使用参数替代可以为参数定义创建一个集中位置。当您需要对引用了多次或在多个文件中引用的参数进行更新时,只需更改一次即可。
在本指南中,术语参数用于引用配置文件中任何设置的名称(如日志条目条件、重新处理或转换)。 但在本节中,参数特指数据集包含文件中“参数”矢量的成员,而不是配置文件中设置的名称。
在定义参数时,您应该考虑以下几点:
定义参数
您可以在和文件中定义字符串、数字和矢 Log Processing 量参 Transformation Include 数。
在或文件的Data Workbench窗 Log Processing 口中, Transformation Dataset Include 右键单击 Parameters,然后单击 Add new > Parameter。
选 String Parameter择、 Numeric Parameter或 Vector Parameter,并完成“名称”和“值”参数,如以下各节所述。
To save the dataset include file in which you have defined the parameter, right-click (modified) at the top of the window and click Save.
To make the locally made changes take effect, in the Profile Manager, right-click the check mark for the file in the User column, then click Save to > <profile name>, where profile name is the name of the dataset profile or the inherited profile to which the dataset include file belongs.
请勿将已修改的配置文件保存到 Adobe 提供的任何内部配置文件中,因为当您安装这些配置文件的更新时,系统会覆盖您所做的更改。
引用参数
以下各节描述了您可以定义的参数类型。