REST Resource: properties.dataStreams.eventCreateRules
ทรัพยากร: EventCreateRule
กฎการสร้างเหตุการณ์จะกําหนดเงื่อนไขที่จะทริกเกอร์การสร้างเหตุการณ์ใหม่ทั้งหมดตามเกณฑ์ที่ตรงกันของเหตุการณ์ต้นทาง คุณสามารถกําหนดการกลายพันธุ์เพิ่มเติมของพารามิเตอร์จากเหตุการณ์แหล่งที่มาได้
กฎการสร้างเหตุการณ์จะไม่มีลําดับที่กําหนดไว้ ต่างจากกฎการแก้ไขเหตุการณ์ โดยระบบจะเรียกใช้แต่ละรายการแยกกัน
คุณใช้กฎการแก้ไขเหตุการณ์และกฎการสร้างเหตุการณ์เพื่อแก้ไขเหตุการณ์ที่สร้างจากกฎการสร้างเหตุการณ์ไม่ได้
การแสดง JSON |
{
"name": string,
"destinationEvent": string,
"eventConditions": [
{
object (MatchingCondition )
}
],
"sourceCopyParameters": boolean,
"parameterMutations": [
{
object (ParameterMutation )
}
]
} |
ช่อง |
name |
string
เอาต์พุตเท่านั้น ชื่อทรัพยากรสําหรับทรัพยากร EventCreateRule นี้ Format: properties/{property}/dataStreams/{dataStream}/eventCreateRules/{eventCreateRule}
|
destinationEvent |
string
ต้องระบุ ชื่อเหตุการณ์ใหม่ที่สร้างขึ้น ค่านี้ต้องมีลักษณะดังนี้ * มีความยาวไม่เกิน 40 อักขระ * มีเฉพาะตัวอักษร ตัวเลข หรือ _ (ขีดล่าง) * ขึ้นต้นด้วยตัวอักษร
|
eventConditions[] |
object (MatchingCondition )
ต้องระบุ ต้องมีเงื่อนไขอย่างน้อย 1 รายการและสูงสุด 10 รายการ เงื่อนไขในเหตุการณ์ต้นทางต้องตรงกันจึงจะใช้กฎนี้ได้
|
sourceCopyParameters |
boolean
หากเป็นค่า "true" ระบบจะคัดลอกพารามิเตอร์แหล่งที่มาไปยังเหตุการณ์ใหม่ หากเป็นเท็จหรือไม่ได้ตั้งค่า ระบบจะไม่คัดลอกพารามิเตอร์ที่ไม่ใช่ภายในทั้งหมดจากเหตุการณ์แหล่งที่มา การกลายพันธุ์ของพารามิเตอร์จะมีผลหลังจากคัดลอกพารามิเตอร์แล้ว
|
parameterMutations[] |
object (ParameterMutation )
การกลายพันธุ์ของพารามิเตอร์จะกําหนดลักษณะการทํางานของพารามิเตอร์ในเหตุการณ์ใหม่ และจะนําไปใช้ตามลําดับ ใช้การกลายพันธุ์ได้สูงสุด 20 ครั้ง
|
เมธอด |
|
สร้าง EventCreateRule |
|
ลบ EventCreateRule |
|
ค้นหา EventCreateRule รายการเดียว |
|
แสดงรายการ EventCreateRules ในสตรีมข้อมูลเว็บ |
|
อัปเดต EventCreateRule |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-01-14 UTC
[null,null,["อัปเดตล่าสุด 2025-01-14 UTC"],[[["Event Create Rules define conditions that trigger the creation of a new event based on a source event and allow for parameter modifications."],["These rules operate independently and cannot modify events created by other Event Create rules, nor can they be used with Event Edit rules on such events."],["Event Create Rules have several configurable fields, including name, destination event, event conditions, source parameter copying, and parameter mutations."],["You can manage Event Create Rules through various methods like creating, deleting, looking up, listing, and updating them."]]],["EventCreateRules trigger the creation of new events based on source event criteria. Rules operate independently, and cannot modify events they create. Key actions include: defining a `destinationEvent` name (under 40 characters, letters/digits/underscores, starts with a letter), setting `eventConditions` (1-10) for rule activation, controlling `sourceCopyParameters` (boolean), and defining up to 20 `parameterMutations`. Methods support creating, deleting, getting, listing, and updating EventCreateRules. A JSON representation of the rule is provided.\n"]]