12、内部输入告警状态查询
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://10.27.204.40:8082/api/JulianTwoCtl/warnInGet</code></li>
</ul>
<p><strong>参数:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">macno</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>设备号</td>
</tr>
<tr>
<td style="text-align: left;">warnno</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>内部输入告警类别编号</td>
</tr>
<tr>
<td style="text-align: left;">child_warnno</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>告警类别中的子编号</td>
</tr>
<tr>
<td style="text-align: left;">sign</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>签名 md5("dlc")</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>1.查询返回示例
{
"code": "1",
"msg": "发送成功",
"data": {
"macno"://设备号
"time"://回传时间戳
"status"://0成功,1失败
"warn": [{
"warnno": 1,//内部输入告警类别编号
"child_warnno": 1,//告警类别中的子编号
"switch": 1,//内部输入告警开关状态:1 开,2 关,告警关闭时为0
"state": 0// 1 告警,0 告警清除/无告警
}]
}
}
2.告警主动上报示例:
"data":{
"macno": "JL201908120001",
"time": 1569829695,
"status": 0,
"warn": [{
"warnno": 1,
"child_warnno": 1,
"switch": 1,
"state": 0
}, {
"warnno": 2,
"child_warnno": 1,
"switch": 1,
"state": 1
}, {
"warnno": 3,
"child_warnno": 1,
"switch": 1,
"state": 0
}, {
"warnno": 4,
"child_warnno": 1,
"switch": 1,
"state": 0
}, {
"warnno": 5,
"child_warnno": 1,
"switch": 1,
"state": 0
}, {
"warnno": 5,
"child_warnno": 2,
"switch": 1,
"state": 0
}, {
"warnno": 5,
"child_warnno": 3,
"switch": 1,
"state": 0
}, {
"warnno": 5,
"child_warnno": 4,
"switch": 1,
"state": 0
}, {
"warnno": 5,
"child_warnno": 5,
"switch": 1,
"state": 0
}, {
"warnno": 6,
"child_warnno": 1,
"switch": 1,
"state": 0
}, {
"warnno": 6,
"child_warnno": 2,
"switch": 1,
"state": 0
}, {
"warnno": 6,
"child_warnno": 3,
"switch": 1,
"state": 0
}, {
"warnno": 6,
"child_warnno": 4,
"switch": 1,
"state": 0
}, {
"warnno": 7,
"child_warnno": 1,
"switch": 1,
"state": 0
}, {
"warnno": 8,
"child_warnno": 1,
"switch": 1,
"state": 0
}, {
"warnno": 8,
"child_warnno": 2,
"switch": 1,
"state": 0
}, {
"warnno": 8,
"child_warnno": 3,
"switch": 1,
"state": 0
}, {
"warnno": 8,
"child_warnno": 4,
"switch": 1,
"state": 0
}, {
"warnno": 8,
"child_warnno": 5,
"switch": 1,
"state": 0
}, {
"warnno": 8,
"child_warnno": 6,
"switch": 1,
"state": 0
}, {
"warnno": 8,
"child_warnno": 7,
"switch": 1,
"state": 0
}, {
"warnno": 8,
"child_warnno": 8,
"switch": 1,
"state": 0
}, {
"warnno": 9,
"child_warnno": 1,
"switch": 1,
"state": 0
}, {
"warnno": 10,
"child_warnno": 1,
"switch": 1,
"state": 0
}, {
"warnno": 11,
"child_warnno": 1,
"switch": 1,
"state": 0
}, {
"warnno": 12,
"child_warnno": 1,
"switch": 1,
"state": 0
}, {
"warnno": 13,
"child_warnno": 1,
"switch": 1,
"state": 1
}]
}</code></pre>
<p><img src="https://www.showdoc.cc/server/api/common/visitfile/sign/3747eac1e07e7b66f95833421e07d81b?showdoc=.jpg" alt="" /></p>