AnsweredAssumed Answered

PiWebAPI - get all EventFrames (also ended ones)

Question asked by cymerman on Oct 21, 2017
Latest reply on Oct 23, 2017 by cymerman

Hi, i need to get all Event frames of specific type ("Alarm")

 

https://{server}/piwebapi/assetdatabases/{webId}/eventframes?searchFullHierarchy=true&TemplateName=Alarm

 

it return only active event frames that have "EndTime": "9999-12-31T23:59:59Z",

 

but i need to get all, even those ended ones, how to do it, i dont see any parameter to specify it

 

i would be grateful for any help

 

//result

 

is should use:

 

https://{server}/piwebapi/assetdatabases/{webId}/eventframes

  ?searchFullHierarchy=true -- for get full hierarchy search

  &TemplateName=Alarm -- for get eventframes with Alarm templatename

  &searchMode=StartInclusive -- for get all event from specific time

  &startTime=1/1/2010 -- specific time

  &sortField=StartTime -- for sort result

  &sortOrder=Ascending

  &nameFilter=Alarm .R* -- for additional filter at Name tag

Outcomes