跳到主要内容

事件属性

Redfish 服务的事件服务资源中的属性。

请求 URL

不适用

请求正文

响应正文

字段类型描述

Id

字符串

唯一事件 ID

Name

字符串

“Redfish Event”

Context

字符串

在订阅时可以提供上下文。此属性是订阅者提供的上下文值。

Events

数组

项:事件记录

项数:1

 

Events[N]

对象

已展开

  

EventType

字符串

指示根据 EventService 中的定义发送的事件类型。

  

EventGroupId

整数

0

  

EventId

字符串

这是事件的唯一实例标识符。客户端在使用 SubmitTestEvent 操作发送事件时提供 EventId。

  

EventTimestamp

字符串

这是事件发生的时间。

  

MessageSeverity

字符串
事件的严重性。有效值:
  • “OK”

  • “Warning”

  • “Critical”

  

MemberId

字符串

这是集合中成员的标识符。

  

Message

字符串

消息文本

  

MessageId

字符串

这是此消息的键,可用于在消息注册表中查找消息。

  

MessageArgs

数组

消息参数数组

   

MessageArgs[N]

字符串

消息参数

  

OriginOfCondition

字符串

“/redfish/v1/Systems/1/LogServices/StandardLog”

状态代码

不适用

示例

以下是事件 JSON 数据响应的示例:

{
"Id" : "2",
"Events" : [
{
"EventTimestamp" : "2019-12-05T19:26:16+00:00",
"MessageArgs" : [
"USERID",
"the standard password",
"web",
"192.168.0.2"
],
"Oem" : {
"SystemUUID" : "F0F63E94-8E25-11E8-9A5A-7ED30A5E2267",
"Lenovo" : {
"IsLocalEvent" : true,
"AffectedIndicatorLEDs" : [],
"LenovoMessageID" : "Lenovo0014",
"EventType" : 0,
"RelatedEventID" : "",
"RawDebugLogURL" : "",
"AuxiliaryData" : "",
"Source" : "System",
"FailingFRU" : [
{
"FRUNumber" : "",
"FRUSerialNumber" : ""
}
],
"EventSequenceNumber" : 1616,
"EventFlag" : 0,
"TSLVersion" : "0",
"CommonEventID" : "FQXSPSE4001I",
"TotalSequenceNumber" : 1965,
"EventID" : "0x4000000e00000000",
"Serviceable" : "Not Serviceable",
"ReportingChain" : "",
"@odata.type" : "#LenovoLogEntry.v1_0_0.StandardLogEntry",
"Hidden" : false
},
"SystemMachineTypeModel" : "7X05CTO1WW",
"SystemSerialNumber" : " DSYM09X"
},
"MemberId" : "0001",
"OriginOfCondition" : {
"@odata.id" : "/redfish/v1/Systems/1/LogServices/StandardLog"
},
"MessageId" : "EventRegistry.1.0.FQXSPSE4001I",
"EventGroupId" : 0,
"EventId" : "16ED786F53C",
"Message" : "Remote Login Successful. Login ID: USERID using the standard password from web at IP address 192.168.0.2.",
"MessageSeverity" : "OK"
}
],
"@odata.type" : "#Event.v1_4_0.Event",
"Events@odata.count" : 1,
"Context" : "Test_Context",
"Name" : "Redfish Event",
"Description" : "This resource represents an event for a Redfish implementation."
}