代码仓
中
EventFields
更新时间: 2026/10/26
在AtomGit上查看源码

ResourceDefinition ​

uris ​

  • /redfish/v1/EventService/Events/{EventId}

properties ​

名称类型是否只读取值范围/枚举值说明
@odata.contextstringtrue-指向元数据文档的URI
@odata.idstringtrue-本资源的OData URI
@odata.typestringtrue-Schema类型标识
Idstringtrue-资源唯一标识符
Namestringtrue-资源名称
Contextstringtrue-客户端提供的上下文字符串
Events@odata.countnumbertrue-Events数组的成员总数
Events [ {arraytrue-事件记录数组,每个成员为一条EventRecord
Events[].EventTypestringtrue● StatusChange
● ResourceUpdated
● ResourceAdded
● ResourceRemoved
● Alert
● MetricReport
事件类型,包括:
● StatusChange:状态变更
● ResourceUpdated:资源更新
● ResourceAdded:资源新增
● ResourceRemoved:资源移除
● Alert:告警事件
● MetricReport:指标上报
Events[].EventIdstringtrue-事件唯一标识符
Events[].EventTimestampstringtrue-事件发生的时间戳
Events[].Severitystringtrue● OK
● Warning
● Critical
事件严重级别,包括:
● OK:正常
● Warning:告警
● Critical:严重
Events[].MessageSeveritystringtrue● OK
● Warning
● Critical
消息严重级别,包括:
● OK:正常
● Warning:告警
● Critical:致命
Events[].Messagestringtrue-事件详细描述
Events[].MessageIdstringtrue-消息注册表标识
Events[].MessageArgs[ ]arraytrue-Message字段参数列表
Events[].OriginOfConditionstringtrue-触发事件的资源引用
Events[].MemberIdstringtrue-事件在Events数组中唯一标识符
Events[].Resolutionstringtrue-建议的问题解决措施
Events[].Oem {objecttrue-OEM厂商自定义扩展字段
Events[].Oem.Huawei.EventSubjectstringtrue-事件源标识
Events[].Oem.Huawei.ServerIdentitystringtrue-事件产生主机标识
Events[].Oem.Huawei.ServerLocationstringtrue-事件产生位置信息
Events[].Oem.Huawei.LastAlertIdnumbertrue-上一条告警事件的ID
Events[].Oem.Huawei.Levelstringtrue● Normal
● Minor
● Major
● Critical
自定义事件严重级别,包括:
● 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
}