证书过期告警

Topic

Topic
/v1/devices/security/events

消息发送方

网关设备

消息接收方

物联网平台

完整的数据格式告警中心主页章节。

这里只对特有字段做说明: 证书过期警告的eventType为:certExpiredAlarm

severity取值:

30 <= leftDays < 60 : Warning

20 <= leftDays < 30 : Minor

0 <= leftDays < 20 : Major

leftDays < 0 : Critical

params结构体说明

字段名
必选/可选
类型
参数描述

certPath

必选

String

证书路径。

leftDays

必选

number

证书剩余有效日期,-1表示已过期。

请求示例

{
    "devices": [
        {
            "deviceSn": "D3183Tth3w",
            "services": [
                {
                    "service": "certMonitorAlarm",
                    "mid":"mymessageid",
                    "data": {
                        "eventType": "certExpired",
                        "indication": 1,
                        "severity": "Warning",
                        "params": {
                            "certPath":"/path/myCert.pfx",
                            "leftDays":"31"
                        },
                        "eventTime": "2020-07-27T13:40:16.00Z"
                    }
                }
            ]
        }
    ]
}

最后更新于