Alarm Event Properties
An alarm event is made up of many pieces of information. The state, the value, the time, all of the configuration data for the alarm, and more are collectively known as the properties of the event. A "property" is generally a name, potentially along with a default value. There are many properties that an alarm may have, and if the property isn't present, the default value is usually assumed.
This is different than the alarm properties used during initial setup, these are the properties available when an alarm event occurs (active, clear, acknowledged).
How Properties are Used
Properties are used in a number of ways:
- Define how an alarm behaves.
- Are referenced in messages, such as the body of an Email, or SMS message.
- Are referenced in Expressions, such as in the binding of a different property, or in an Expression block.
- Are created and used in pipelines as temporary variables, such as to make a counter.
- ... and various other places.
While properties are always accessed the same (for example by using the {propertyName}
syntax in a message or Expression, or the getProperty()
Expression function), there are some subtle variations on where the property value comes from, and what its lifecycle will be. To understand this better, consider that an Alarm Event has the following structure:
Alarm Event
Active Event Properties
Clear Event Properties
Acknowledged Event Properties
Runtime Properties
The Active Event, Clear Event, and Acknowledge Event properties get created when the described type of event occurs. Consequently, it's possible for the same property to exist multiple times in an Alarm Event. For example, a bound configuration property or associated data is captured on both the active and clear events. When you reference a property, the alarm event will provide you with the most recent value. So, if you have a bound property called "MyData", and you reference it when the alarm is active, you may get a different result than when the reference is executed later and the alarm has cleared. The individual values are stored separately in the Alarm Journal, however.
Alarm Event Properties
Event Properties | Binding/Scripting Name | Description | Datatype |
---|
Name | name | The name of the Alarm. | String |
Enabled | enabled | Specifies whether or not this alarm is evaluated by the system. Set to False to turn off the alarm state and all associated actions. | Boolean |
Priority | priority | The priority (or severity) of the alarm. Used for sorting/filtering. Numerical values are associated with each priority to make comparison easier. This property can also be referenced as a string with the following priority names. Click here to see Alarm Priorities Value | Priority |
---|
0 | Diagnostic | 1 | Low | 2 | Medium | 3 | High | 4 | Critical |
| Integer or String |
Display Path | displayPath | The unique path of the Alarm state. Used for display and browsing purposes. | String |
Active Pipeline | activePipeline | The pipeline (if any) that will be used to process active events generated by the alarm. | String |
ClearPipeline | clearPipeline | The pipeline (if any) that will be used to clear events generated by the alarm. Used when the alarm goes into the Clear State. | String |
Active Delay | timeOnDelaySeconds | The amount of consecutive seconds that the alarm state must be True before the Tag enters this alarm state. | Double |
Clear Delay | timeOffDelaySeconds | The amount of consecutive seconds that the alarm state must be False before the Tag exits this alarm state. | Double |
Notes | notes | Free-form notes for the alarm state. | String |
Alarm Runtime Properties
As described in the previous section, Runtime Properties are different in that they only exist while the alarm event is in memory (still "live", that is, not cleared, or not acknowledged). They do not get stored in the Alarm Journal by default. In addition to properties created through the Set Property Block, the system also has a number of defined Runtime Properties that it may use for various purposes. Though these are used internally, they are technically still regular properties, and can be accessed and modified through the normal means.
Runtime Property | Description | Datatype |
---|
IsInitialEvent | Set to "true" when the event is caused by the initial state of the alarm. | Boolean |
SystemAck | Set to "true" when the alarm has been acknowledged by the system, due to an overflow of the "live event queue". Live events are alarm events that are active or not acknowledged, and are limited for each alarm by the general alarm settings. | Boolean |
ShelfExpiration | When the shelf will expire for this event. | Integer |
IsShelved | Is the alarm currently shelved? | Boolean |
EventCanceled | If set, the event will drop out as soon as possible from the pipelines. | Boolean |
EventId | The unique id (uuid) of this alarm event. Each event gets a completely unique id. | String |
Source or Source Path | The qualified path to the item that generated this event. Includes the Tag Provider, Tag Path, and the name of the alarm. Example: prov:tagProviderName:/tag:folder/tagName:/alm:alarmName | String |
DisplayPathOrSource | Gets the display path if defined, otherwise, returns the source. | String |
State | The current overall state of the alarm. Click here to see Alarm States Value | State |
---|
0 | Clear and Unacked | 1 | Clear and Acked | 2 | Active and Unacked | 3 | Active and Acked |
| Integer |
EventState | The transitional state that caused the current event. Click here to see Event States Value | State |
---|
0 | Active | 1 | Clear | 2 | Acknowledged |
| Integer |
EventValue | The value associated with the current event. | Integer |
AckUser | The user who acknowledged this event. | String |
IsAcked | "True" if the event has been acknowledged. | Boolean |
IsActive | "True" if the event is still active. | Boolean |
IsClear | "True" if the event is not still active. | Boolean |
ActiveTime, ClearTime, AckTime | The timestamp for each event. | date |
PipelineTransitionCount | How many transitions the event has made inside of the pipelines. | Integer |
Associated Data
You can extend alarm properties by creating your own associated data. Associated data properties can be configured on any alarms that are already configured in a project.
To learn more, refer to Alarm Associated Data.