{
"bmc.kepler.EventService.Subscriptions.Destination": {
"properties": {
"Id": {
"baseType": "U8",
"readOnly": true,
"description": "订阅者资源Id",
"example": 1
},
"Destination": {
"baseType": "String",
"readOnly": true,
"description": "事件订阅接收地址",
"example": "https://1.2.3.4/server"
},
"EventTypes": {
"baseType": "String[]",
"readOnly": true,
"description": "事件订阅侦听的事件类型",
"example": [
"Alert"
]
},
"MessageIds": {
"baseType": "String[]",
"readOnly": true,
"description": "事件订阅消息Id匹配列表",
"example": [
"openUBMCEvent.3.0.InsecureProtocolAlarm"
]
},
"OriginResources": {
"baseType": "String",
"readOnly": true,
"description": "事件订阅事件源匹配列表",
"example": "[{\"@odata.id\":\"/redfish/v1/Chassis/1/Power\"}]"
},
"Context": {
"baseType": "String",
"readOnly": false,
"description": "事件订阅上下文信息",
"example": "Context Example"
},
"Protocol": {
"baseType": "String",
"readOnly": true,
"description": "事件订阅使用的协议,当前取值只能为Redfish",
"example": "Redfish"
},
"SendHeartbeat": {
"baseType": "Boolean",
"readOnly": true,
"options": {
"emitsChangedSignal": "false"
},
"description": "告警心跳使能",
"example": true
},
"HeartbeatIntervalMinutes": {
"baseType": "U16",
"readOnly": true,
"options": {
"emitsChangedSignal": "false"
},
"description": "告警心跳间隔,取值范围[1:65535],单位:分钟",
"example": 10
},
"MetricReportDefinitions": {
"baseType": "String[]",
"readOnly": true,
"description": "指定事件订阅上报的Metric Report列表",
"example": [
"TestMetricReport"
]
},
"State": {
"baseType": "String",
"readOnly": false,
"default": "Enabled",
"enum": [
"Enabled",
"Disabled",
"StandbyOffline"
],
"description": "redfish上报的订阅状态,Enabled表示上报事件;Disabled表示不上报事件,但是会缓存事件"
},
"DeliveryRetryPolicy": {
"baseType": "String",
"readOnly": false,
"default": "TerminateAfterRetries",
"enum": [
"TerminateAfterRetries",
"SuspendRetries",
"RetryForever"
],
"description": "redfish上报的重试策略,如果用户空字符串,则认为指定了默认值"
},
"Severities": {
"baseType": "String[]",
"readOnly": true,
"description": "上报事件的严重程度,默认为[OK,Warning,Critical]",
"example": ["Warning", "Critical"]
}
},
"methods": {
"SetHttpHeaders": {
"description": "设置http请求头(加密存储)",
"req": {
"Headers": {
"description": "http请求头",
"baseType": "String"
}
},
"rsp": {}
},
"Delete": {
"description": "删除事件订阅资源",
"req": {},
"rsp": {}
},
"ResumeSubscription": {
"description": "恢复当前时间到之前一段时间内缓存的上报事件,如果传入参数为空,则恢复所有事件",
"req": {
"DeliverBufferedEventDuration": {
"maxLength": 256,
"pattern": "^$|^P(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+(.\\d+)?S)?)?$",
"description": "指定恢复的事件,若不为空则需要符合ISO-9601规范的字符串",
"baseType": "String"
}
},
"rsp": {
"TaskId": {
"baseType": "U32",
"description": "创建的任务标识"
}
}
},
"SuspendSubscription": {
"description": "暂停redfish事件消息发送",
"req": {},
"rsp": {}
}
}
}
}