Scheduled Ingest

71.4.5 Scheduled ingest import XML

Etere Scheduled Ingest allows to perform a scheduled ingest operation importing its parameters from an XML file.
To launch this operation, right-click on the search results panel in Ingest operations tab and select Import file. Then choose the xml file to import.
Below, an example of an XML file and the description of the tags.

XML file

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Etere_ScheduleIngest>
   <Event>
     <Cod_User>1</Cod_User>    
     <RecType>S</RecType>
     <Channel>1</Channel>      
     <AssetCode>00021477</AssetCode>
     <Description>MILAN-INTER 30/07/2016 21:00</Description>
     <StartDate>20160726</StartDate>
     <StartTime>20:23:00:00</StartTime>
     <Duration>00:02:00:00</Duration>
     <StartMode>0</StartMode>      
     <StoptMode>0</StoptMode>    
     <DeviceSource></DeviceSource>      
     <ChannelSource></ChannelSource>
   </Event>
   <Event>
     <Cod_User>1</Cod_User>    
     <RecType>S</RecType>
     <Channel>1</Channel>      
     <AssetCode>00021486</AssetCode>
     <Description>DALLAS EP.1</Description>
     <StartDate>20160729</StartDate>
     <StartTime>12:30:00:00</StartTime>
     <Duration>01:00:00:00</Duration>
     <StartMode>0</StartMode>      
     <StoptMode>0</StoptMode>    
     <DeviceSource></DeviceSource>      
     <ChannelSource></ChannelSource>
   </Event>
</Etere_ScheduleIngest>

Tags description

<Cod_User> - The station number, usual value is 1.
<RecType> - S=Single ingest, P=Periodic ingest, L=scheduled live ingest.
<Channel> - The input channel in the scheduled recording system.
<AssetCode> - The unique code of the asset.
<Description> - The description of the ingest operation for reference purposes.
<StartDate> - The scheduled start date of the ingest operation.
<StartTime> - The scheduled start time of the ingest operation.
<Duration> - The duration of the recording.
<StartMode> - This tag is for event control, usual value is 0.
<StoptMode> - This tag is for event control, usual value is 0.
<DeviceSource> - This tag is for device control, usually empty.
<ChannelSource> - This tag is for channel control, usually empty.

For scheduled ingest to import XML file to database, the following criteria must be met:
- Only one XML file per day can be imported.
- The file name must complied with naming format “TIMED_REC_yyyymmdd.xml”.
- If the date in file name referred to past date, the import would not take place.
- If the date in file name is present date, only the future events are imported.
- If the date in file name refer to future date, all events would be imported and replace the events in database.
- If the asset imported does not exist in database, the asset would be created with type “0000”