StreamSet GetInterpolatedAtTimes
- Last UpdatedJun 15, 2023
- 3 minute read
- PI System
- PI Web API Reference
- Developer
StreamSet GetInterpolatedAtTimes
Returns interpolated values of attributes for an element, event frame or attribute at the specified times.
Remarks
Any time series value in the response that contains an 'Errors' property indicates PI Web API encountered a handled error during the transfer of the response stream. See Error Handling for more information.
Request
GET streamsets/{webId}/interpolatedattimes
URL Parameters
-
webId The ID of an element, event frame or attribute, which is the base element or parent of all the stream attributes. See WebID for more information.
-
time The timestamp at which to retrieve a interpolated value. Multiple timestamps may be specified with multiple instances of the parameter. See Time Strings for more information.
-
timeZone The time zone in which the time string will be interpreted. This parameter will be ignored if a time zone is specified in the time string. If no time zone is specified in either places, the PI Web API server time zone will be used. See Time Zone for more information.
-
filterExpression An optional string containing a filter expression. Expression variables are relative to the data point. Use '.' to reference the containing attribute. If the attribute does not support filtering, the filter will be ignored. The default is no filtering.
-
includeFilteredValues Specify 'true' to indicate that values which fail the filter criteria are present in the returned data at the times where they occurred with a value set to a 'Filtered' enumeration value with bad status. Repeated consecutive failures are omitted.
-
nameFilter The name query string used for filtering attributes. The default is no filter. See Query String for more information.
-
categoryName Specify that included attributes must have this category. The default is no category filter.
-
templateName Specify that included attributes must be members of this template. The default is no template filter.
-
showExcluded Specified if the search should include attributes with the Excluded property set. The default is 'false'.
-
showHidden Specified if the search should include attributes with the Hidden property set. The default is 'false'.
-
searchFullHierarchy Specifies if the search should include attributes nested further than the immediate attributes of the searchRoot. The default is 'false'.
-
sortOrder The order that the returned collection is sorted. The default is 'Ascending'. See Sort Order for more information.
-
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: Interpolated values of the streams that meet the specified conditions.
400: The request was malformed.
502: The request was cancelled.
Sample Response Body
{
"Items": [
{
"WebId": "I1AbEDqD5loBNH0erqeqJodtALAYIKyyz2F5BGAxQAVXYRDBAGyPedZG1sUmxOOclp3Flwg",
"Name": "Water",
"Path": "\\\\MyAssetServer\\MyDatabase\\MyElement|Water",
"Items": [
{
"Timestamp": "2014-07-22T14:00:00Z",
"UnitsAbbreviation": "m",
"Good": true,
"Questionable": false,
"Substituted": false,
"Annotated": false,
"Value": 12.3
},
{
"Timestamp": "2014-07-22T14:00:00Z",
"UnitsAbbreviation": "m",
"Good": true,
"Questionable": false,
"Substituted": false,
"Annotated": false,
"Value": 12.3
}
],
"UnitsAbbreviation": "m",
"Links": {
"Self": "https://localhost.osisoft.int/piwebapi/attributes/I1AbEDqD5loBNH0erqeqJodtALAYIKyyz2F5BGAxQAVXYRDBAGyPedZG1sUmxOOclp3Flwg"
}
},
{
"WebId": "I1AbEDqD5loBNH0erqeqJodtALAYIKyyz2F5BGAxQAVXYRDBAGyPedZG1sUmxOOclp3Flwg",
"Name": "Water",
"Path": "\\\\MyAssetServer\\MyDatabase\\MyElement|Water",
"Items": [
{
"Timestamp": "2014-07-22T14:00:00Z",
"UnitsAbbreviation": "m",
"Good": true,
"Questionable": false,
"Substituted": false,
"Annotated": false,
"Value": 12.3
},
{
"Timestamp": "2014-07-22T14:00:00Z",
"UnitsAbbreviation": "m",
"Good": true,
"Questionable": false,
"Substituted": false,
"Annotated": false,
"Value": 12.3
}
],
"UnitsAbbreviation": "m",
"Links": {
"Self": "https://localhost.osisoft.int/piwebapi/attributes/I1AbEDqD5loBNH0erqeqJodtALAYIKyyz2F5BGAxQAVXYRDBAGyPedZG1sUmxOOclp3Flwg"
}
}
],
"Links": {}
}