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 )
חובה. צריך להיות לפחות תנאי אחד, וניתן להגדיר עד 10 תנאים. התנאים באירוע המקור חייבים להתאים כדי שהכלל הזה יחול.
|
sourceCopyParameters |
boolean
אם הערך הוא TRUE, הפרמטרים של המקור יועתקו לאירוע החדש. אם הערך הוא false או לא מוגדר, כל הפרמטרים שאינם פנימיים לא יועתקו מאירוע המקור. המוטציות של הפרמטרים חלות אחרי שהפרמטרים מועתקים.
|
parameterMutations[] |
object (ParameterMutation )
המוטציות של הפרמטרים מגדירות את התנהגות הפרמטרים באירוע החדש, והן חלות לפי הסדר. אפשר להחיל עד 20 מוטציות.
|
Methods |
|
יצירת EventCreateRule. |
|
מחיקה של EventCreateRule. |
|
חיפוש של EventCreateRule יחיד. |
|
הצגת כללי EventCreateRules במקור לנתוני האתר. |
|
עדכון של EventCreateRule. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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"]]