Pulling Tags from Workspace

Pull all the events under a particular tag and export them out of PetroVisor.

Process: To pull all the events out with the start/stop time of the event tags, we must go to the backend interface to export out the list. The location where the tags can be pulled is Swagger UI (petrovisor.com)

1.  Before starting the process, the first thing to do is to Authorize user access for Swagger UI for the pull. Press the Authorize button. If the lock icon is not open, it requires credentials. Credentials have a time limit and will require authorization if the time expires. 
  A screenshot of a computer

Description automatically generated

Once the popup comes up click Authorize. If the user has not logged in previously, enter the Petrovisor credentials to log in. 
 A screenshot of a computer

Description automatically generated
 

2.  After the user is logged in, go to the section titled: Tags: TagEntries 
 
 
3.  Go to the section titled: GET/PetroVisor/API/{Workspace}/TagEntries/BITable 
Click on the Try it out button on the right side to open up the Parameters page. 
 

4.  Once the parameter page opens, different parameters for the pulled data can be entered, such as the Workspace Name, Entities to Select, Tags to Export, Start Time, or End Time. All information for the parameters should be entered into the boxes as String Type. See the example below of how the different fields look for Supply Gas. The different fields will restrict filters for the time range and what entities show up for each tag type. Once the parameters are entered, press Execute at the bottom of the page. 

A screenshot of a computer

Description automatically generated

5.  After pressing Execute, there will be a Response body section that contains the tags being exported. The Download button is available to export it in a JSON format.  
 A screenshot of a computer

Description automatically generated
 
6.  The file exported will look like the green text: This txt file can be inputted into a JSON>.csv or JSON>excel tool or PowerBI to convert the format into column formatting. Some examples of online converter tools that can be used is: JSON To CSV Converter (convertcsv.com) 


A screenshot of a computer screen

Description automatically generated