EventFields
更新时间: 2026/06/29
在Gitcode上查看源码ResourceDefinition
uris
/redfish/v1/EventService/Events/{EventId}
properties
| 名称 | 类型 | 是否只读 | 取值范围/枚举值 | 说明 |
|---|---|---|---|---|
| @odata.context | string | true | - | 指向元数据文档的URI |
| @odata.id | string | true | - | 本资源的OData URI |
| @odata.type | string | true | - | Schema类型标识 |
| Id | string | true | - | 资源唯一标识符 |
| Name | string | true | - | 资源名称 |
| Context | string | true | - | 客户端提供的上下文字符串 |
| Events@odata.count | number | true | - | Events数组的成员总数 |
| Events | array | true | - | 事件记录数组,每个成员为一条EventRecord |
| Events[].EventType | string | true | ● StatusChange ● ResourceUpdated ● ResourceAdded ● ResourceRemoved ● Alert ● MetricReport | 事件类型 |
| Events[].EventId | string | true | - | 事件唯一标识符 |
| Events[].EventTimestamp | string | true | - | 事件发生的时间戳 |
| Events[].Severity | string | true | ● OK ● Warning ● Critical | 事件严重级别 |
| Events[].MessageSeverity | string | true | ● OK ● Warning ● Critical | 消息严重级别 |
| Events[].Message | string | true | - | 事件详细描述 |
| Events[].MessageId | string | true | - | 消息注册表标识 |
| Events[].MessageArgs | array | true | - | Message字段参数列表 |
| Events[].OriginOfCondition | string | true | - | 触发事件的资源引用 |
| Events[].MemberId | string | true | - | 事件在Events数组中唯一标识符 |
| Events[].Resolution | string | true | - | 建议的问题解决措施 |
| Events[].Oem | object | true | - | OEM厂商自定义扩展字段 |
| Events[].Oem.Huawei.EventSubject | string | true | - | 事件源标识 |
| Events[].Oem.Huawei.ServerIdentity | string | true | - | 事件产生主机标识 |
| Events[].Oem.Huawei.ServerLocation | string | true | - | 事件产生位置信息 |
| Events[].Oem.Huawei.LastAlertId | number | true | - | 上一条告警事件的ID |
| Events[].Oem.Huawei.Level | string | true | ● Normal ● Minor ● Major ● Critical | 自定义事件严重级别 |
supported_methods
- GET
HTTP methods
GET
命令功能
事件上报字段说明
说明
事件上报消息示例:
json
{
"@odata.context": "/redfish/v1/$metadata#Event.Event",
"@odata.id": "/redfish/v1/EventService/Events/1",
"@odata.type": "#Event.v1_1_0.Event",
"Id": "1",
"Name": "Event Array",
"Context": "event subscription context string",
"Events": [
{
"EventType": "Alert",
"EventId": "0x1A00004A",
"EventTimestamp": "2024-03-26T08:49:13+08:00",
"Severity": "Warning",
"MessageSeverity": "Warning",
"Message": "Insecure protocol VNC is enabled in the system.",
"MessageId": "BMCEvents.3.0.InsecureProtocolAlarm",
"Resolution": "Disable insecure protocols according to the documentation.",
"MessageArgs": [
"VNC"
],
"OriginOfCondition": {
"@odata.id": "/redfish/v1/Managers/1"
},
"Oem": {
"Huawei": {
"LastAlertId": 0,
"Level": "Minor",
"ServerLocation": "ChassisId:1,BoardName:1",
"ServerIdentity": null,
"EventSubject": "BMC--VNC"
}
},
"MemberId": "0"
}
],
"Events@odata.count": 1
}