Hãy thử máy chủ MCP cho Google Analytics. Cài đặt từ
GitHub và xem
thông báo để biết thêm thông tin chi tiết.
REST Resource: properties.dataStreams.eventEditRules
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tài nguyên: EventEditRule
Quy tắc chỉnh sửa sự kiện xác định các điều kiện sẽ kích hoạt việc tạo sự kiện hoàn toàn mới dựa trên tiêu chí khớp của sự kiện nguồn. Bạn có thể xác định các trường hợp đột biến khác của tham số từ sự kiện nguồn.
Không giống như quy tắc Tạo sự kiện, Quy tắc chỉnh sửa sự kiện được áp dụng theo thứ tự đã xác định.
Bạn không thể sử dụng quy tắc Chỉnh sửa sự kiện để sửa đổi sự kiện được tạo từ quy tắc Tạo sự kiện.
Biểu diễn dưới dạng JSON |
{
"name": string,
"displayName": string,
"eventConditions": [
{
object (MatchingCondition )
}
],
"parameterMutations": [
{
object (ParameterMutation )
}
],
"processingOrder": string
} |
Trường |
name |
string
Giá trị nhận dạng. Tên tài nguyên cho tài nguyên EventEditRule này. Định dạng: thuộc tính/{property}/dataStreams/{dataStream}/eventEditRules/{eventEditRule}
|
displayName |
string
Bắt buộc. Tên hiển thị của quy tắc chỉnh sửa sự kiện này. Có tối đa 255 ký tự.
|
eventConditions[] |
object (MatchingCondition )
Bắt buộc. Các điều kiện của sự kiện nguồn phải khớp thì mới được áp dụng quy tắc này. Phải có ít nhất một điều kiện và có thể có tối đa 10 điều kiện.
|
parameterMutations[] |
object (ParameterMutation )
Bắt buộc. Các đột biến tham số xác định hành vi của thông số trên sự kiện mới và được áp dụng theo thứ tự. Có thể áp dụng tối đa 20 trường hợp đột biến.
|
processingOrder |
string (int64 format)
Chỉ có đầu ra. Thứ tự xử lý quy tắc này. Quy tắc có giá trị đơn đặt hàng thấp hơn giá trị này sẽ được xử lý trước quy tắc này, những quy tắc có giá trị đơn đặt hàng cao hơn giá trị này sẽ được xử lý sau quy tắc này. Các quy tắc chỉnh sửa sự kiện mới sẽ được chỉ định một giá trị đơn đặt hàng vào cuối đơn đặt hàng. Giá trị này không áp dụng cho quy tắc tạo sự kiện.
|
Phương thức |
|
Tạo EventEditRule. |
|
Xoá EventEditRule. |
|
Tìm một EventEditRule duy nhất. |
|
Liệt kê EventEditRules trên một luồng dữ liệu web. |
|
Cập nhật một EventEditRule. |
|
Thay đổi thứ tự xử lý của các quy tắc chỉnh sửa sự kiện trên luồng đã chỉ định. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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. |"]]