AnsweredAssumed Answered

How does streams/{webId}/plot work?

Question asked by rachelmad Champion on Sep 22, 2016
Latest reply on Sep 23, 2016 by rdavin

I guess this is a two part question:

 

1. I have a PI Web API query that uses GET streams/{webId}/plot. When I run it on a time range that has no data, I receive 2 points. My theory is that because the underlying AF SDK is getting interpolated data, I am receiving the next value before and after the time range. Can anyone confirm this? Moreover, how do I receive null values when querying a time range with no data while receiving interpolated data when querying a time range that has data.

 

2. Can anyone explain how the call itself works? Especially the intervals parameter? The explanation on the documentation isn't very clear. If I send in an interval of 300, does that automatically mean PI responds with 300 data points? What if there are more than 300 points in the selected time range? Does it do averages? If there are less than 300 data points, does it add extra points?

 

I know these are a lot of questions. I just want to understand the calls I'm making a bit better. Thank you!

Outcomes