This predefined module is created to write log messages when the import status of data feeds did not receive any new data for a certain amount of time.
It can be configured as predefined activity in a workflow file:
<activity> <predefinedActivity>import status checker</predefinedActivity> </activity>
It is using the <defaultTimeThreshold> and/or <extraTimeThreshold> configuration from the display config file SystemMonitorDisplay.xml, just like the Import Status tab.
Two new elements need to be added to the <timeThreshold? element; an <eventCode> and a <logLevel>.
When th import status checker is configured in a workflow but the SystemMonitorDisplay.xml is not available in the config, Delft-FEWS will log an Error.
<extraTimeThreshold> <dataFeedId>ImportScalar</dataFeedId> <timeThreshold> <periodLength value="12" unit="hour"/> <color>yellow</color> <eventCode>DataFeed.missing</eventCode> <logLevel>INFO</logLevel> </timeThreshold> <timeThreshold> <periodLength value="24" unit="hour"/> <color>orange</color> <eventCode>DataFeed.missing</eventCode> <logLevel>WARN</logLevel> </timeThreshold> <timeThreshold> <periodLength value="36" unit="hour"/> <color>red</color> <eventCode>DataFeed.missing</eventCode> <logLevel>ERROR</logLevel> </timeThreshold> </extraTimeThreshold>
When a data feed did not receive any new data longer than the period length, it will log a message with the <logLevel> and <eventCode>.
Since Delft-FEWS 2025.02 a <graceTime> element can be added to the <timeThreshold> element. The grace time is used to log a message only once in the configured period. This functionality is usefull when the Import Status Checker runs very frequently, but you do not want a log message each time it finds the same datafeed not to be updated.
<timeThreshold> <periodLength value="5" unit="minute"/> <color>yellow</color> <eventCode>ImportStatus.missing</eventCode> <logLevel>ERROR</logLevel> <graceTime unit="hour" multiplier="6"/> </timeThreshold>