AnsweredAssumed Answered

PI Web API EventFrame Search by Attribute

Question asked by halla on Apr 25, 2017
Latest reply on Apr 25, 2017 by pmartin

Hey guys, I'm trying to use the PI Web API (2016 R2) to search for Event Frames based off of an attribute value.
I can successfully get the event frames back with the below query, however, I can't seem to figure out how to specify date ranges?

It seems like it just returns the event frames within the default *-8h to * time range.


I've tried adding a StartTime and EndTime attribute inside the body (highlighted in Red) but it seems to ignore it.
I've also tried specifying the times as parameters in the URL with no change in behavior.
(e.g: ../piwebapi/eventframes/searchbyattribute?startTime=*-10d&endTime=*)


Is this possible with searchbyattribute with event frames?











                        "AttributeName":"Business Unit",

                        "AttributeValue":"ANADARKO BASIN",