{
"description": "string",
"duration": 0,
"host": "string",
"id": 0,
"isEnabled": true,
"name": "string",
"notifyInterval": 0,
"notifyTo": "string",
"op": "string",
"threshold": "string",
"type": "string",
"lang": "string"
}
curl --location --request POST 'http://172.16.1.44:9800/v2/alertrule/update' \
--header 'ua_token: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"description": "string",
"duration": 0,
"host": "string",
"id": 0,
"isEnabled": true,
"name": "string",
"notifyInterval": 0,
"notifyTo": "string",
"op": "string",
"threshold": "string",
"type": "string",
"lang": "string"
}'
{
"data": {
"code": 200,
"data": {
"description": "节点172.16.1.44上CPU平均使用率大于1%",
"duration": 60,
"host": "172.16.1.44",
"id": 1,
"isEnabled": false,
"name": "cpu_gt_1_172.16.1.44",
"notifyInterval": 86400,
"notifyTo": "2867540923@qq.com",
"op": ">",
"threshold": "1%",
"type": "cpu"
},
"msg": "",
"status": 200
},
"result": null,
"message": "成功",
"resultcode": "success"
}