ThermometryAlarmRule message in XML format.
<ThermometryAlarmRule version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema"> <ThermometryAlarmModeList size=""> <ThermometryAlarmMode> <id min="" max=""><!--req, xs:inter--></id> <enabled><!--req, xs:boolean--></enabled> <name><!--req, xs:string ro--></name> <rule opt="highestGreater, highestLess, lowestGreater, lowestLess, averageGreater, averageLess, diffTempGreater, diffTempLess"> <!--req, xs:string,--> </rule> <alert><!--req, xs: float--></alert> <alarm><!--req, xs: float--></alarm> <threshold><!--req, xs: float--></threshold> <AlertOutputIOPortList><!--opt, temperature pre-alarm I/O port list--> <OutputIOPort> <portID><!--req, xs:string--></portID> <enabled><!--req, xs:bool, "true,false"--></enabled> </OutputIOPort> </AlertOutputIOPortList> <AlarmOutputIOPortList><!--opt, temperature alarm I/O port list--> <OutputIOPort> <portID><!--req, xs:string--></portID> <enabled><!--req, xs:bool, "true,false"--></enabled> </OutputIOPort> </AlarmOutputIOPortList> <alertFilteringTime><!-- opt ,xs:integer, temperature pre-alarm dwell time, unit: second--></alertFilteringTime> <alarmFilteringTime><!-- opt ,xs:integer, temperature alarm dwell time, unit: second--></alarmFilteringTime> <visibleLightLinkageEnabled> <!--opt, xs:boolean, visible light linkage--> </visibleLightLinkageEnabled> <TemperatureSuddenChange> <mode> <!--req, xs:string, temperature sudden change mode--> </mode> <cycle><!--opt, xs:integer, cycle period, unit: second--></cycle> <alert><!--opt, xs: float, pre-alarm threshold--></alert> <alarm><!--opt, xs: float, alarm threshold--></alarm> <cycleCfg> <!--optional, int, recording cycle, value range: [5,3600], unit: second-->60 </cycleCfg> </TemperatureSuddenChange> </ThermometryAlarmMode> </ThermometryAlarmModeList> <TemperatureDifferenceComparisonList> <TemperatureDifferenceComparison> <id><!--req, xs:inter--></id> <enabled><!--req ,xs:boolean--></enabled> <ruleID1><!--req, xs:string--></ruleID1> <ruleID2><!--req, xs:string--></ruleID2> <rule> <!--req, xs:string, rule: "highestGreater, highestLess, lowestGreater, lowestLess, averageGreater, averageLess, diffTempGreater, diffTempLess"--> </rule> <temperatureDifference><!--req, xs: float--></temperatureDifference> </TemperatureDifferenceComparison> </TemperatureDifferenceComparisonList> </ThermometryAlarmRule>