ParameterMutation
JSON 表示法 |
{
"parameter": string,
"parameterValue": string
} |
欄位 |
parameter |
string
必要欄位。要變異的參數名稱。這個值必須符合以下條件:* 長度不得超過 40 個半形字元。* 在規則內的所有變異記錄中皆須是唯一值 * 只能包含英文字母、數字或 _ (底線) 在事件編輯規則中,名稱也可以設為「eventName」,以便修改 eventName。
|
parameterValue |
string
必要欄位。要執行的值變異。* 長度不得超過 100 個半形字元。* 如要為 param 指定常數值,請使用該值的字串。* 如要複製其他參數的值,請使用「[[other_parameter]]」等語法。詳情請參閱這篇說明中心文章。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-01-14 (世界標準時間)。
[null,null,["上次更新時間:2025-01-14 (世界標準時間)。"],[[["Defines an event parameter for mutation using JSON representation with `parameter` and `parameterValue` fields."],["`parameter` specifies the event parameter's name for mutation, adhering to specific length, uniqueness, and character constraints."],["`parameterValue` defines the mutation, either as a constant string value or by copying from another parameter using a specific syntax."]]],["The provided JSON structure defines event parameter mutations, requiring a `parameter` name and its `parameterValue`. The `parameter` must be a unique string (under 40 characters), containing letters, digits, or underscores; 'eventName' is also acceptable for event edits. `parameterValue` (under 100 characters) can be a constant string or reference another parameter using the format \"\\[\\[other_parameter\\]\\]\". This controls how an event's parameter should be changed.\n"]]