|
Alarm Monitor Configuration
|
Previous Top Next |
| Name: | The unique name of the alarm monitor. If the name exists already and this file gets loaded the old monitor will be replace with the new one.
|
|
|
| Subelements of the <AlarmMonitor> node are <DataItem>, <Trigger>, and <Actions>.
|
|
|
| <DataItem>
|
| Name: | The name of the GSEOS data item to monitor. If the item is an array item you have to specify the element of the array you wish to monitor. Currently you can only monitor scalar items or individual elements of an array item.
|
|
|
| Conversion: | If the data item has a conversion function associated you can specify the conversion function to apply before evaluating the trigger condition. Note that the conversion function does not need to be loaded at the time when you load the alarm monitor configuration, however. As soon as the monitor is installed and gets evaluated the proper formula file (*.qlf) has to be available, otherwise an exception will be raised. This behavior allows you to specify the *.qlf and *.cfg files in any order in the gseos.ini file without creating dependencies.
|
|
|
| <Trigger>
|
| Condition: | This element contains the actual trigger condition that gets evaluated every time the monitored data block arrives. As mentioned above you don't need to escape special characters when defining your condition. The special variable 'Value' represents the current value of you data item under investigation. You should use this variable to refer to the data item value and use it in your condition. Another special variable name is 'Delta'. Delta represents the difference from the previous value to the current value. E.g. if the previous value was 27 and the current value is 11 Delta would be -16. You can use Delta to check for differentials. You can use both Value and Delta in the same expression if required. The condition statement should evaluate to a boolean value. Keep in mind that the data item element defines if a conversion function should be applied to the data item. If so you want to compare against the engineering units instead of the raw count.
|
|
|
| Conversion: | If the data item has a conversion function associated you can specify the conversion function to apply before evaluating the trigger condition. Note that the conversion function does not need to be loaded at the time when you load the alarm monitor configuration, however. As soon as the monitor is installed and gets evaluated the proper formula file (*.qlf) has to be available, otherwise an exception will be raised. This behavior allows you to specify the *.qlf and *.cfg files in any order in the gseos.ini file without creating dependencies.
|
|
|
| Count: | The value for count has to be numeric. If not specified it defaults to 1. The Count determines how often the condition has to evaluate to True before the alarm fires. The condition has to evaluate to True consecutively, that is once it evaluates to False the count will be reset. Also not the Timeout attribute that applies a timing condition to the count.
|
|
|
| Timeout: | Specifies the timeout in seconds. If not specified or 0 no timeout is applied. The timeout determines the interval in seconds in which the condition has to evaluate to True Count number of times. The timeout is implemented as a sliding window. Every time the Count condition is met the timeout is evaluated from the first item that made the Count condition successful.
|
|
|
| Message: | This element configures the text that gets written to the Message window. The text you specify between the sub-elements <Text> </Text> is prepended with some Alarm information.
|
|
|
| LogFile: | This element configures the text that gets written to a log file. The file name is specified with the attribute FileName. The log text is configured as in the Message element.
|
|
|
| Command: | The <Command> element issues a command. This is it generates a CMDSTRING block with the contents you specify here. The attribute Name is the command string that gets executed.
|
|
|
| Python: | This element allows you to call an arbitrary Python function. The function is specified with the Function attribute.
|
|
|
| Email: | The <Email> element configures the email action. This action can send out an email to one or more recipients. The SMTPHost attribute of the Email element specifies the SMTP host you are sending your email from. The sub-element <From> specifies the sender name and email address. The sub-element <To> specifies one recipient, there can be multiple <To> tags within one <Email> node. The <Subject> and <Body> nodes set the subject line and the email body respectively.
|
|
|
| The attributes Quota and QuotaPeriod control the number of emails that can get send out. The value of Quota has to be an integer value. It represents the maximum number of emails that can get send out during the time period QuotaPeriod. QuotaPeriod specifies the time the Quota applies to. After the period expires another Quota emails can be sent within the next period. The value of QuotaPeriod has to be a number (floating point is fine) that ends in either m (minutes), h (hours), or d (days) to indicate the dimension. It is usually recommented to set a quota since an ill-behaved alarm monitor could possibly generate emails on a basis of a fraction of a second.
|
|
|
|
|