静默告警/解除告警静默 本节主要介绍如何使用API静默告警/解除告警静默。 此操作用来静默告警或者解除告警静默。 请求语法 plaintext PUT /rest/v1/system/alarm/alarmId/mute HTTP/1.1 Date: date Host: ip:port ContentType: text/plain ContentLength: length Authorization: authorization { "operType": operType, "dueTime": dueTime, "reason": reason } 请求参数 名称 描述 是否必须 alarmId String 告警ID。 是 operType Enum 静默操作。 取值: Mute:静默告警。 ManualUnmute:解除告警静默。 是 dueTime Long 静默截止时间。 取值:unix时间戳(UTC),精确到毫秒。如果静默操作为Mute,此项必填。 否 reason String 静默/解除静默的原因。 取值:1~50位字符串。 是 请求示例1 静默告警1kUyXPFy。 plaintext PUT /rest/v1/system/alarm/1kUyXPFy/mute HTTP/1.1 Date: Thu, 18 Aug 2022 08:25:06 GMT Host: 192.168.0.121:1443 ContentType: text/plain ContentLength: 90 Authorization: HBlock userName:signature { "operType":"Mute", "dueTime": 1660903200000, "reason": "renew license" } 响应示例1 plaintext HTTP/1.1 204 No Content Date: Thu, 18 Aug 2022 08:25:06 GMT Connection: keepalive xhblockrequestid: 40d4c09de42d4d4cbf2f63e42d929208 Server: HBlock