Creating a Data Monitor○Test and Message Delay○Entry IDs○Specify Javascript○Executing external program○Sending Email Messages○Sending Text Messages○Monitor Frequency○Logging
The Data Action Monitor is a special type of monitor
that allows you to monitor the latest values in a point data file and either
execute an external program,
send an email message or a text message when the value meets a certain criteria.
This is useful for monitoring uptime or data values of real-time instruments.
A Data Monitor contains one or more entry IDs and a criteria (in Javascript) for determining
whether the action is triggered. Once an action is triggered
no other actions will be triggered until a delay has been
reached. This prevents too many actions from being triggered.
Creating a Data Monitor
Test and Message Delay
Entry IDs
Specify Javascript
action.print(record.getFields())
Executing external program
program <entry id> <url to entry> <message>
Note: For security RAMADDA will not just run the program specified. It has to be added
as a property in a RAMADDA .properties file:
#comma separated list of scripts that be executed by various services, e.g. the Data Monitors ramadda.programs=/your/program |
Sending Email Messages
A data monitor action has occurred for entry: ${entryname}. View entry at ${entryhref}. Message: ${message}.
Sending Text Messages
#Twilio Application SID twilio.accountsid= #Twili authorization token (for reading the transcription) twilio.authtoken= #The phone number of your twilio account #twilio.phone=The text message can have its own message template or it will use the email template if not defined.
Monitor Frequency
ramadda.monitor.live.sleepseconds=number of seconds between checks
Logging
CITATION REQUEST: When using model or observational data obtained
through FACTS in a publication, please provide a citation
in the paper to the original underlying data source. This includes both
downloading data and creating analysis figures through FACTS.
A list of original sources for citation is here.