You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »


Config example:

<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2006 rel. 3 sp1 (http://www.altova.com) by Computer Services (WL | Delft Hydraulics) -->
<timeSeriesImportRun xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/timeSeriesImportRun.xsd">
   <import>
      <general>
         <importType> ONSWebService</importType>
<!--         Url should end with the ?-->
         <serverUrl>https://integrationnode.tstapi.ons.org.br/hidrologia/v1/GrandezasHidrologicas?</serverUrl>
         <user>user</user>
         <password>password</password>
         <relativeViewPeriod unit="day" start="-3" end="0" startOverrulable="true" endOverrulable="true"/>
         <idMapId>ONSWebServiceMap</idMapId>
      </general>
      <properties>
         <string key="QD" value="CD,CT"></string>
<!--         Should only be configured if the field needs to be added to the URL-->
         <string key="furoTemporal" value="S"></string>
<!--         This determined if we are importing PrecipitacaoObservada (false), or Grandezas Hidrologicas(true). Default is true-->
         <bool key="addParamToUrl" value="false"></bool>
<!--         The url to get the auth token is different on the test and production environment, thus needs to be configured-->
         <string key="tokenUrl" value="https://poptst.ons.org.br/ons.pop.federation/oauth2/token"></string>
      </properties>
      <timeSeriesSet>
         <moduleInstanceId> ONSWebService</moduleInstanceId>
         <valueType>scalar</valueType>
         <parameterId>param</parameterId>
         <locationId>LocB</locationId>
         <timeSeriesType>external historical</timeSeriesType>
         <timeStep unit="hour" multiplier="1"/>
         <readWriteMode>add originals</readWriteMode>
      </timeSeriesSet>
      <timeSeriesSet>
         <moduleInstanceId> ONSWebService</moduleInstanceId>
         <valueType>scalar</valueType>
         <parameterId>param2</parameterId>
         <locationId>LocB</locationId>
         <timeSeriesType>external historical</timeSeriesType>
         <timeStep unit="hour" multiplier="1"/>
         <readWriteMode>add originals</readWriteMode>
      </timeSeriesSet>
   </import>
</timeSeriesImportRun> 


  • No labels