Create a Diachannel Datapoint Condition Alarm

The following sample shows how to create a DIA channel data point condition alarm that fires when the helium level in an MRI gets low.

In this example, the alarm template ID for the DIA channel data point condition alarm is 6 (almtId=6). To find the almtId for an alarm type, send a GET ws/AlarmTemplate request to get a list of all available alarm templates.

Request

POST /ws/Alarm

Payload

<Alarm>
   <almtId>6</almtId>   <!-- Dia Channel DataPoint Condition Alarm -->
   <almName>Low Helium</almName>
   <almDescription>Fires when the helium level in the MRI gets low</almDescription>
   <almScopeConfig>
      <ScopingOptions>
         <Scope name="Group" value="CUS001_ABC/Test/" />
      </ScopingOptions>
   </almScopeConfig>
   <almRuleConfig>
      <Rules>
         <FireRule>
            <Variable name="thresholdValue" value="10" />
            <Variable name="channelName" value="helium" />
            <Variable name="instanceName" value="mri" />
            <Variable name="timeUnit" value="seconds" />
            <Variable name="type" value="numeric" />
            <Variable name="timeout" value="5" />
            <Variable name="operator" value="&lt;" />
         </FireRule>
         <ResetRule>
            <Variable name="thresholdValue" value="10" />
            <Variable name="channelName" value="helium" />
            <Variable name="instanceName" value="mri" />
            <Variable name="timeUnit" value="seconds" />
            <Variable name="type" value="numeric" />
            <Variable name="timeout" value="5" />
            <Variable name="operator" value="&gt;" />
         </ResetRule>
      </Rules>
   </almRuleConfig>
</Alarm>