Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI Web API Reference

EventFrame ExecuteSearchByAttribute

EventFrame ExecuteSearchByAttribute

Execute a "Search EventFrames By Attribute Value" operation.

Request

GET eventframes/searchbyattribute/{searchId}

URL Parameters

  • searchId

    The encoded search Id of the "Search EventFrames By Attribute Value" operation.

  • searchMode

    Determines how the startTime and endTime parameters are treated when searching for event frame objects to be included in the returned collection. The default is 'Overlapped'. See Search Mode for more information.

  • startTime

    The starting time for the search. startTime must be less than or equal to the endTime. The searchMode parameter will control whether the comparison will be performed against the event frame's startTime or endTime. The default is '*-8h'. See Time Strings for more information.

  • endTime

    The ending time for the search. endTime must be greater than or equal to the startTime. The searchMode parameter will control whether the comparison will be performed against the event frame's startTime or endTime. The default is '*'. See Time Strings for more information.

  • nameFilter

    The name query string used for finding event frames. The default is no filter. See Query String for more information.

  • referencedElementNameFilter

    The name query string which must match the name of a referenced element. The default is no filter. See Query String for more information.

  • severity

    Specify that returned event frames must have this severity. Multiple severity values may be specified with multiple instances of the parameter. The default is no severity filter. See Severity for more information.

  • canBeAcknowledged

    Specify the returned event frames' canBeAcknowledged property. The default is no canBeAcknowledged filter.

  • isAcknowledged

    Specify the returned event frames' isAcknowledged property. The default no isAcknowledged filter.

  • searchFullHierarchy

    Specifies whether the search should include objects nested further than the immediate children of the search root. The default is 'false'.

  • sortField

    The field or property of the object used to sort the returned collection. The default is 'Name'. See Sort Field for more information.

  • sortOrder

    The order that the returned collection is sorted. The default is 'Ascending'. See Sort Order for more information.

  • startIndex

    The starting index (zero based) of the items to be returned. The default is 0.

  • maxCount

    The maximum number of objects to be returned per call (page size). The default is 1000.

  • selectedFields

    List of fields to be returned in the response, separated by semicolons (;). If this parameter is not specified, all available fields will be returned. See Selected Fields for more information.

  • webIdType

    Optional parameter. Used to specify the type of WebID. Useful for URL brevity and other special cases. Default is the value of the configuration item "WebIDType". See WebID Type for more information.

Status Codes

200: a list of matching EventFrames.

400: Invalid search Id or search parameters.

Sample Response Body

{
  "Items": [
    {
      "WebId": "I1FmDqD5loBNH0erqeqJodtALADqD5loBNH0cAAAAAAASwAg",
      "Id": "96f9a00e-4d80-471f-0000-00000004b002",
      "Name": "EF20140725-001",
      "Description": "Event Frame of Past Week",
      "Path": "\\\\MyAssetServer\\MyDatabase\\EventFrames[EF20140725-001]",
      "TemplateName": "Template",
      "HasChildren": false,
      "CategoryNames": [
        "Processing Plant"
      ],
      "ExtendedProperties": {},
      "StartTime": "2014-07-18T14:45:29Z",
      "EndTime": "2014-07-25T14:45:29Z",
      "Severity": "None",
      "AcknowledgedBy": "MyDomain\\UserA",
      "AcknowledgedDate": "2014-07-30T11:04:23Z",
      "CanBeAcknowledged": true,
      "IsAcknowledged": true,
      "IsAnnotated": false,
      "IsLocked": false,
      "AreValuesCaptured": false,
      "RefElementWebIds": [
        "I1EmDqD5loBNH0erqeqJodtALAaqQoQHk26BGgMQAVXYR0Ag"
      ],
      "Security": {
        "CanAnnotate": true,
        "CanDelete": true,
        "CanExecute": true,
        "CanRead": true,
        "CanReadData": true,
        "CanSubscribe": true,
        "CanSubscribeOthers": true,
        "CanWrite": true,
        "CanWriteData": true,
        "HasAdmin": true,
        "Rights": [
          "Read",
          "WriteData"
        ]
      },
      "Links": {
        "Self": "https://localhost.osisoft.int/piwebapi/eventframes/I1FmDqD5loBNH0erqeqJodtALADqD5loBNH0cAAAAAAASwAg"
      }
    },
    {
      "WebId": "I1FmDqD5loBNH0erqeqJodtALADqD5loBNH0cAAAAAAASwAg",
      "Id": "96f9a00e-4d80-471f-0000-00000004b002",
      "Name": "EF20140725-001",
      "Description": "Event Frame of Past Week",
      "Path": "\\\\MyAssetServer\\MyDatabase\\EventFrames[EF20140725-001]",
      "TemplateName": "Template",
      "HasChildren": false,
      "CategoryNames": [
        "Processing Plant"
      ],
      "ExtendedProperties": {},
      "StartTime": "2014-07-18T14:45:29Z",
      "EndTime": "2014-07-25T14:45:29Z",
      "Severity": "None",
      "AcknowledgedBy": "MyDomain\\UserA",
      "AcknowledgedDate": "2014-07-30T11:04:23Z",
      "CanBeAcknowledged": true,
      "IsAcknowledged": true,
      "IsAnnotated": false,
      "IsLocked": false,
      "AreValuesCaptured": false,
      "RefElementWebIds": [
        "I1EmDqD5loBNH0erqeqJodtALAaqQoQHk26BGgMQAVXYR0Ag"
      ],
      "Security": {
        "CanAnnotate": true,
        "CanDelete": true,
        "CanExecute": true,
        "CanRead": true,
        "CanReadData": true,
        "CanSubscribe": true,
        "CanSubscribeOthers": true,
        "CanWrite": true,
        "CanWriteData": true,
        "HasAdmin": true,
        "Rights": [
          "Read",
          "WriteData"
        ]
      },
      "Links": {
        "Self": "https://localhost.osisoft.int/piwebapi/eventframes/I1FmDqD5loBNH0erqeqJodtALADqD5loBNH0cAAAAAAASwAg"
      }
    }
  ],
  "Links": {}
}
In This Topic
TitleResults for “How to create a CRG?”Also Available in