ลองใช้เซิร์ฟเวอร์ MCP สำหรับ Google Analytics ติดตั้งจาก
GitHub และดูรายละเอียดเพิ่มเติมได้ที่
ประกาศ
REST Resource: properties.dataStreams.eventEditRules
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ทรัพยากร: EventEditRule
กฎการแก้ไขเหตุการณ์จะกำหนดเงื่อนไขที่จะทริกเกอร์การสร้างเหตุการณ์ใหม่ทั้งหมดโดยอิงตามเกณฑ์ที่ตรงกันของเหตุการณ์แหล่งที่มา คุณกำหนดการเปลี่ยนแปลงเพิ่มเติมของพารามิเตอร์จากเหตุการณ์แหล่งที่มาได้
กฎการแก้ไขกิจกรรมจะถูกนำไปใช้ตามลำดับที่กำหนด ซึ่งแตกต่างจากกฎการสร้างกิจกรรม
ไม่สามารถใช้กฎการแก้ไขเหตุการณ์เพื่อแก้ไขเหตุการณ์ที่สร้างจากกฎการสร้างเหตุการณ์
การแสดง JSON |
{
"name": string,
"displayName": string,
"eventConditions": [
{
object (MatchingCondition )
}
],
"parameterMutations": [
{
object (ParameterMutation )
}
],
"processingOrder": string
} |
ช่อง |
name |
string
ตัวระบุ ชื่อทรัพยากรสำหรับทรัพยากร EventEditRule นี้ รูปแบบ: พร็อพเพอร์ตี้/{property}/dataStreams/{dataStream}/eventEditRules/{eventEditRule}
|
displayName |
string
ต้องระบุ ชื่อที่แสดงของกฎการแก้ไขเหตุการณ์นี้ มีอักขระได้สูงสุด 255 ตัว
|
eventConditions[] |
object (MatchingCondition )
ต้องระบุ เงื่อนไขในเหตุการณ์แหล่งที่มาต้องตรงกับกฎนี้จึงจะมีผล ต้องมีอย่างน้อย 1 เงื่อนไข และมีได้สูงสุด 10 เงื่อนไข
|
parameterMutations[] |
object (ParameterMutation )
ต้องระบุ การเปลี่ยนแปลงพารามิเตอร์จะกำหนดลักษณะการทำงานของพารามิเตอร์ในเหตุการณ์ใหม่ และนําไปใช้ตามลำดับ โดยเปลี่ยนแปลงได้สูงสุด 20 รายการ
|
processingOrder |
string (int64 format)
เอาต์พุตเท่านั้น ลำดับที่กฎนี้จะถูกประมวลผล กฎที่มีมูลค่าการสั่งซื้อต่ำกว่าจะได้รับการประมวลผลก่อนกฎนี้ และกฎที่มีมูลค่าการสั่งซื้อสูงกว่าจะได้รับการประมวลผลหลังจากกฎนี้ ระบบจะกําหนดมูลค่าการสั่งซื้อให้กับกฎการแก้ไขเหตุการณ์ใหม่เมื่อสิ้นสุดคําสั่งซื้อ ค่านี้ไม่มีผลกับกฎการสร้างเหตุการณ์
|
เมธอด |
|
สร้าง EventEditRule |
|
ลบ EventEditRule |
|
ค้นหา EventEditRule เดียว |
|
แสดงรายการ EventEditRules ในสตรีมข้อมูลเว็บ |
|
อัปเดต EventEditRule |
|
เปลี่ยนลำดับการประมวลผลของกฎการแก้ไขเหตุการณ์ในสตรีมที่ระบุ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eAn Event Edit Rule generates a new event based on matching criteria from a source event and allows for parameter modifications.\u003c/p\u003e\n"],["\u003cp\u003eEvent Edit Rules are applied sequentially in their defined order, unlike Event Create rules.\u003c/p\u003e\n"],["\u003cp\u003eThese rules cannot modify events originating from Event Create rules.\u003c/p\u003e\n"],["\u003cp\u003eEvent Edit Rules include definable conditions, parameter mutations, and a processing order for execution.\u003c/p\u003e\n"],["\u003cp\u003eYou can manage Event Edit Rules using methods like create, delete, get, list, patch, and reorder to control event processing.\u003c/p\u003e\n"]]],["Event Edit Rules create new events based on source event criteria, with defined parameter mutations. Rules are applied sequentially based on `processingOrder`. Each rule has a `name`, `displayName`, `eventConditions`, and `parameterMutations`. Rules can be created, deleted, retrieved, listed, updated, and reordered. Matching conditions trigger the rule's application, with mutations modifying parameters. Up to 10 conditions and 20 mutations are allowed.\n"],null,["# REST Resource: properties.dataStreams.eventEditRules\n\n- [Resource: EventEditRule](#EventEditRule)\n - [JSON representation](#EventEditRule.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: EventEditRule\n-----------------------\n\nAn Event Edit Rule defines conditions that will trigger the creation of an entirely new event based upon matched criteria of a source event. Additional mutations of the parameters from the source event can be defined.\n\nUnlike Event Create rules, Event Edit Rules are applied in their defined order.\n\nEvent Edit rules can't be used to modify an event created from an Event Create rule.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"displayName\": string, \"eventConditions\": [ { object (/analytics/devguides/config/admin/v1/rest/v1alpha/MatchingCondition) } ], \"parameterMutations\": [ { object (/analytics/devguides/config/admin/v1/rest/v1alpha/ParameterMutation) } ], \"processingOrder\": string } ``` |\n\n| Fields ||\n|------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Identifier. Resource name for this EventEditRule resource. Format: properties/{property}/dataStreams/{dataStream}/eventEditRules/{eventEditRule} |\n| `displayName` | `string` Required. The display name of this event edit rule. Maximum of 255 characters. |\n| `eventConditions[]` | `object (`[MatchingCondition](/analytics/devguides/config/admin/v1/rest/v1alpha/MatchingCondition)`)` Required. Conditions on the source event must match for this rule to be applied. Must have at least one condition, and can have up to 10 max. |\n| `parameterMutations[]` | `object (`[ParameterMutation](/analytics/devguides/config/admin/v1/rest/v1alpha/ParameterMutation)`)` Required. Parameter mutations define parameter behavior on the new event, and are applied in order. A maximum of 20 mutations can be applied. |\n| `processingOrder` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Output only. The order for which this rule will be processed. Rules with an order value lower than this will be processed before this rule, rules with an order value higher than this will be processed after this rule. New event edit rules will be assigned an order value at the end of the order. This value does not apply to event create rules. |\n\n| Methods ------- ||\n|----------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------|\n| ### [create](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.dataStreams.eventEditRules/create) | Creates an EventEditRule. |\n| ### [delete](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.dataStreams.eventEditRules/delete) | Deletes an EventEditRule. |\n| ### [get](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.dataStreams.eventEditRules/get) | Lookup for a single EventEditRule. |\n| ### [list](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.dataStreams.eventEditRules/list) | Lists EventEditRules on a web data stream. |\n| ### [patch](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.dataStreams.eventEditRules/patch) | Updates an EventEditRule. |\n| ### [reorder](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.dataStreams.eventEditRules/reorder) | Changes the processing order of event edit rules on the specified stream. |"]]