I have a requirement where I need to retrieve values for a given time range with a specified number of intervals. Also, for each interval it should only give me the last recorded value.
I have been using RecordedValues() method and trying some date range manipulations in my code to create intervals and find the last value for each interval but this is a bit time consuming operation. I would rather like to have it returned from PI method instead.
Does anyone know if there's any API method which would give me such response. ?