Compare Events task-pane reference
- Last UpdatedNov 07, 2023
- 6 minute read
- PI System
- PI DataLink 2023 SP1
- Visualization
The Compare Events function returns events in a flat format. A preference setting limits the number of events retrieved in the Preview list and returned to the worksheet.
Note: Click + next to More search options to access all function inputs.
|
Input |
Description |
|---|---|
|
Database |
The PI AF database from which the function returns events. Specify in the format \\ServerName\DatabaseName. Click the field to see a list of databases that contain event templates on connected PI AF servers. You must specify the database before the function can find any matching events. Tip: To limit returned events to those under a specific parent event, you can specify the event path of that parent event in the Database field. See Search for events of a specific parent event. |
|
Search start |
A PI time expression that specifies the time that the function starts searching the database for events. For example, specify *-12h to search for events from database records starting 12 hours ago. |
|
Search end |
A PI time expression that specifies the time that the function stops searching the database for events. For example, specify * to search for events up to the current time. |
|
Limit to database level |
Select this check box to only search the database root level for matching events. If you clear this check box, the function searches for matching events at any level of the hierarchy. |
|
Event name |
The name of matched events. You can specify partial names with wildcard characters. |
|
Event template |
An event template of the matched events. Note that if you select a base event template, the function includes events from derived templates. When you select an event template, the Columns to display list updates to reflect attributes of the selected template. The update removes any attributes you previously inserted. |
|
Element name |
A PI AF element referenced by the matched events. You can specify partial names with wildcard characters. If using PI AF server version 2.8 or later, you can specify the path to a specific element. |
|
Element template |
An element template of an element referenced by matched events. Note that if you select a base element template, the function includes events that reference elements from derived templates. PI AF server version 2.6 or later is required to filter on element templates. |
|
Event category |
The category of matched events. |
|
Minimum duration |
The minimum duration of matched events. Specify a value and time-unit abbreviation. |
|
Maximum duration |
The maximum duration of matched events. Specify a value and time-unit abbreviation. |
|
Search mode |
The method that the function uses to find matching events relative to the time period specified by the search start and search end:
|
|
Sort order |
The method the function uses to sort returned events:
|
|
Severity |
The severity of matched events. Specify an operator and severity type. The function filters matched events based on the specified condition. Severity types correspond to a value, listed from highest to lowest. For example, if you enter < Warning, the function matches events less severe than Warning: either Information or None. |
|
Attribute value filters |
Up to four attribute conditions that the function uses to filter matched events. Events must meet all conditions to be returned. Note: You must specify an event template before you can specify an attribute-value filter. For each filter, specify:
|
|
Acknowledgment filters |
Limit matched events to those that can be acknowledged:
|
|
Limit to annotated |
Select this check box to match only annotated events. Clear this check box to match all events, with or without annotations. |
|
Columns to display |
The columns in the returned function array. The list contains the names of attributes. By default, the list includes the virtual attributes generated for all events and the event attributes from the selected event template. The function includes the path of attributes; the function identifies unique attributes by name and position in the hierarchy. You can:
|
|
Output cell |
The worksheet cell where the function writes the resulting function array. If you select a cell before you open the function task pane, PI DataLink inserts the selected cell into the Output cell field. Specify the top-left corner of the function array. PI DataLink expands the range downward and to the right of the output cell, as necessary to return specified data. PI DataLink might overwrite adjacent cells. If you specify a multi-cell array in the Output cell field and the specified array is larger than the resulting function array, PI DataLink pastes the function formula in the unneeded cells of the specified array. |
See also
Add child-event attributes as columns in the Compare Events task pane
to open the
to move the attribute up in the list.
to move the attribute down in the list.
to remove the attribute from the list.