
# 设备监听安全态势感知配置变动
#### Topic
下行: $oc/devices/{device_id}/sys/properties/set/request_id={request_id}
#### 下行响应参数说明
| 字段名              | 必选/可选 | 类型                      | 参数描述                                                                                                                                                                                                                                                                                                                                                             |
|:---|:---|:---|:---|
| object_device_id | 可选    | String                  | 参数解释： - 平台下发时，若为直连设备，不携带该参数。  - 平台下发时，若为网关子设备，该参数为Topic中设备的子设备ID。   |
| service          | 必选    | List\<ServiceProperty\> | **参数解释：** 设备服务数据列表。                                                                                                                                                                                                                                                                                                 |
   
ServiceProperty结构定义：
| 字段名        | 必选/可选 | 类型                                                                                                                                     | 参数描述                                                                                        |
|:---|:---|:---|:---|
| service_id | 可选    | String                                                                                                                                 | 参数解释： 安全态势感知配置固定为：$security_detection_config |
| properties | 必选    | [SecurityProperties](https://support.huaweicloud.com/api-iothub/iot_06_v5_1438.html#ZH-CN_TOPIC_0000002172534508__section685994217259) | **参数解释：** 安全态势感知配置详情。                        |
   
#### 下行响应示例
```
Topic：$oc/devices/{device_id}/sys/properties/set/request_id={request_id}
数据格式：  
{
"services": [{
"properties": {
"loginBruteForceCheck": 1,
"cpuUsageCheck": 1,
"cpuUsageThreshold": 80,
"cpuUsageCheckPeriod": 2,
"memoryCheck": 1,
"memoryThreshold": 80,
"memoryCheckReportPeriod": 24,
"batteryPercentageCheck": 1,
"batteryPercentageReportPeriod": 24,
"batteryPercentageThreshold": 20
},
"service_id": "$security_detection_config"
}]
}
```
