Event Pattern Authoring
The majority of pattern detection logic is configured in the event pattern view. In this environment, you define how to find matches from incoming data via elements, either by themselves, or in relation with other elements by means of constraints. Once a pattern is detected, outcomes are used to produce output data based on the input data or computational results of the input data.
Working with Elements
An element is a unit of pattern detection logic that defines what parts of the incoming data constitute a match. In other words, elements tell the system what kinds of things to look for in the data. For more information about elements, see Model Artifacts.
Creating Elements
To create an element:
- In the tool palette, click the Element (⬭) icon.
- Click the event type to associate with the new element. Click New Event Type to create new event types, and then follow the instructions in Creating New Event Types.
- Click any open space in the diagramming area to place the element.
- In the details panel, edit the element’s properties as needed. For more information, see Editing Elements.
Elements may also be created directly on the canvas as follows:
- Right-click any empty space in the canvas.
- In the selection menu, click Add Element.
- In the dialog, select an event type. To create a new event type, click New, then follow the instructions in Creating New Event Types.
Note
Depending on the source of the input data, elements in the event pattern view may have differently shaded colors:
- An element associated with a raw event type is deep blue.
- An element associated with a derived event type (that is, one that comes from an output of a lower-level event pattern) is brighter blue.
Editing Elements
When an element is selected in the event pattern view, its information is displayed in the details panel, where the element's details can be viewed and modified as needed.
To edit an element:
- In the diagramming area, click the element to edit.
- In the details panel, click the Contents tab if it is not already selected.
- Edit the element’s details as necessary:
- Under Attributes:
- From the Event Types dropdown menu, select the event type to modify the event type associated with the element.
- In the Alias field, enter an alias for labeling the element. (It is recommended that the alias describe the element’s unique role in its event pattern that differentiates it from other elements using the same event type.)
- In the Min field, specify the minimum number of events the element must receive.
- In the Max field, specify the maximum number of events the element must receive.
- Under Time to Live, define an expiration period for the element if needed:
- Click +. The Create Time-To-Live dialog opens.
- In the Time Value field, enter a number indicating how long the element should remain valid.
- From the dropdown menu, select the appropriate unit of time for the specified time value.
- Click Create to create the expiration period, or Cancel to discard it.
- Edit the expiration period by changing the field values, if needed.
- Click the Delete (trash can) icon to clear the entered values, if necessary.
- Under the Event Type section (which uses the name of the event type selected for the element):
- Click the pencil (✎) icon to edit the details.
- Follow the procedure in Editing Event Types.
- Under Attributes:
Working with Outcomes
An outcome is a unit of pattern detection logic that represents output data. In other words, once the system finds a pattern established in an element, an outcome tells the system what to do after that discovery. For more information about outcomes, see Model Artifacts.
Creating Outcomes
To create an outcome:
- In the tool palette, click the Outcome (▭) icon.
- Select the event type to associate with the new outcome. If a new event type should be created for the outcome, follow the process in Creating New Event Types.
- Click any open space in the diagramming area to place the outcome.
- In the details panel, edit the outcome’s properties as needed. For more information, see Editing Outcomes.
Outcomes may also be created directly on the canvas as follows:
- Right-click any empty space in the canvas.
- In the selection menu, click Add Outcome.
- In the dialog, select an event type. If a new event type should be created, click New, then follow the instructions in Creating New Event Types.
Editing Outcomes
When an outcome is selected in the event pattern view, its information is displayed in the details panel, where the outcome's details can be viewed and modified as needed.
To edit an outcome:
- In the diagramming area, click an outcome to edit.
- In the details panel, click the Content tab if it is not already selected.
- Edit the outcome’s details as needed:
- Under Attributes:
- Under Sources, click a source to edit its details. For more information, see Editing Elements.
- Under Computations, click a computation to check its details. Click the Delete (trash can) icon beside a computation to delete it. For more information about computations, see Built-In Computation Functions.
- Under Risk, choose the appropriate risk type:
- If the risk factors (elements) are independent from one another, select Weighted to assign a weight to each element.
- If the risk factors (elements) are dependent upon one another, select Bayesian to specify the conditions used to compute risk.
- Under Output Windowing, select the kind of output windowing to use from the Type dropdown menu. For more information, see Configuring Output Windowing.
- Under the Outcome section (which uses the name of the selected outcome):
- Click the pencil (✎) icon to edit the details.
- Follow the procedure in Editing Event Types.
- Under Attributes:
Configuring Output Windowing
Output windowing defines an interval of time during which the system listens to incoming data streams, and only publishes the data's updated (latest) state during that interval.
Note
The output windowing interval refers to server time (time elapsed during the operation of the server), not data time (time specified in the data's timestamps or metadata).
To configure output windowing for event patterns:
- In the diagramming area, click an outcome to provide output windowing.
- In the details panel, click the Contents tab if not already selected.
- Click the Output Windowing section to expand it.
- From the Type dropdown menu, select the output windowing to use.
- In the Time Value field, enter the interval of time that the output window should span.
- From the unit dropdown menu to the right of the Time Value field, select the appropriate unit for the time value.
- Click outside of the details menu to save the changes.
Working with Constraints
A constraint is a condition placed upon an input event for an event pattern to be considered a match. For more information about constraints, see Model Artifacts.
Creating Constraints
To create a constraint:
- In the diagramming area, click an element.
- Click the Connection (🔀) button, then drag the line to another element.
- In the Create a Constraint dialog:
- For the first (green) element:
- Click the Fields dropdown menu.
- Select the appropriate field name. If the list is too long, type the first few characters of the field’s name to narrow down the list.
- Click Computations if computations based on field values are needed to produce a result for comparison. For more information, see Constraint Computations Authoring.
- Repeat steps 3.i.a–3.i.c for the second (yellow) element.
- Click the Comparison Option dropdown menu to select a comparison option for the two elements.
- In the Offset field, if necessary, specify a value to add to the source event to create a single valid scalar value for comparison operations.
- In the Tolerance field, if necessary, specify a value to add and subtract from the source event to create a range of valid values for comparison operations.
- For the first (green) element:
- Click OK to create the constraint, or click Cancel to discard it.
Editing Constraints
To edit a constraint:
- In the diagramming area, click a constraint to edit.
- In the details panel, click the Contents tab if it is not already selected.
- For the first (green) element:
- Click the Fields dropdown menu.
- Select the appropriate field name. If the list is too long, type the first few characters of the field’s name to narrow down the list.
- Click Computations if computations based on field values are needed to produce a result for comparison. For more information, see Constraint Computations Authoring.
- Repeat steps 3.i-3.iii for the second (yellow) element.
- Click the Comparison Option dropdown menu to a select a comparison option for the two elements.
- Click anywhere outside the details panel to save the changes.
Editing Groups
The only editable attribute of a group is its color.
Note
Groups are a legacy feature in Cogynt, and no longer serve any necessary functions.
To change the color of a group:
- In the diagramming area, click the group to edit.
- In the details panel, click the Contents tab if it's not already selected.
- Click the color bar above the Members section.
- From the color palette, select the desired color.
- Click anywhere outside the color palette to close it and save the change.
For more information about groups, see Model Artifacts.
Creating Partitions
Partitions instruct the system to analyze events based on a particular field within a specified event pattern.
To create a partition for an event pattern:
- In the diagramming area, click an event pattern to give a partition.
- In the details panel, click the Contents tab if it is not already selected.
- Under Attributes, click the Partitions section to expand it.
- Click +.
- In the Create Partition dialog:
- From the Elements dropdown menu, select an element containing the field to partition over.
- From the Fields dropdown menu, select the field to partition over. (The Fields dropdown menu cannot be opened until a selection is made from Elements.)
- Click Create to create the partition, or click Cancel to discard it.