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

PI Web API Reference

Stream GetValue

Stream GetValue

Returns the value of the stream at the specified time. By default, this is usually the current value.

Request

GET streams/{webId}/value

URL Parameters

  • webId

    The ID of the stream. See WebID for more information.

  • time

    An optional time. The default time context is determined from the owning object - for example, the time range of the event frame or transfer which holds this attribute. Otherwise, the implementation of the Data Reference determines the meaning of no context. For Points or simply configured PI Point Data References, this means the snapshot value of the PI Point on the Data Server. 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.

  • desiredUnits

    The name or abbreviation of the desired units of measure for the returned value, as found in the UOM database associated with the attribute. If not specified for an attribute, the attribute's default unit of measure is used. If the underlying stream is a point, this value may not be specified, as points are not associated with a unit of measure.

  • 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.

Status Codes

200: The value at the specified time value.

409: The data reference does not support the method, or the desired units of measure are incompatible.

Sample Response Body

{
  "Timestamp": "2014-07-22T14:00:00Z",
  "UnitsAbbreviation": "m",
  "Good": true,
  "Questionable": false,
  "Substituted": false,
  "Annotated": false,
  "Value": 12.3
}
In This Topic
TitleResults for “How to create a CRG?”Also Available in