Home
last modified time | relevance | path

Searched hist:"2539 e69ce10b61cef945d6dc83a1d603050dc2f5" (Results 1 – 2 of 2) sorted by relevance

/openbmc/bmcweb/redfish-core/include/registries/
H A Dopenbmc.jsondiff 2539e69ce10b61cef945d6dc83a1d603050dc2f5 Tue Aug 27 00:34:53 CDT 2024 Chanh Nguyen <chanh@os.amperecomputing.com> Add message registry for power button long press

When the power button is pressed, it depends on how long
the press takes to cause which event to happen [1].

Add a message registry for the power button long press
event.

[1] https://github.com/openbmc/phosphor-buttons/blob/master/README.md#power-button

Tested:
1. Redfish Validator passed.
2. Verify in Redfish log.
'''
GET: /redfish/v1/Systems/system/LogServices/EventLog/Entries
Response:
{
"@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries",
"@odata.type": "#LogEntryCollection.LogEntryCollection",
"Description": "Collection of System Event Log Entries",
"Members": [
{
"@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries/1724214823",
"@odata.type": "#LogEntry.v1_9_0.LogEntry",
"Created": "2024-08-21T04:33:43+00:00",
"EntryType": "Event",
"Id": "1724214823",
"Message": "Power Button Long Pressed.",
"MessageArgs": [],
"MessageId": "OpenBMC.0.1.PowerButtonLongPressed.OK",
"Name": "System Event Log Entry",
"Severity": "OK"
}
],
"Members@odata.count": 1,
"Name": "System Event Log Entries"
}
'''

Change-Id: I772c444303c784d086af69e1eab22d9446658d4b
Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com>
H A Dopenbmc_message_registry.hppdiff 2539e69ce10b61cef945d6dc83a1d603050dc2f5 Tue Aug 27 00:34:53 CDT 2024 Chanh Nguyen <chanh@os.amperecomputing.com> Add message registry for power button long press

When the power button is pressed, it depends on how long
the press takes to cause which event to happen [1].

Add a message registry for the power button long press
event.

[1] https://github.com/openbmc/phosphor-buttons/blob/master/README.md#power-button

Tested:
1. Redfish Validator passed.
2. Verify in Redfish log.
'''
GET: /redfish/v1/Systems/system/LogServices/EventLog/Entries
Response:
{
"@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries",
"@odata.type": "#LogEntryCollection.LogEntryCollection",
"Description": "Collection of System Event Log Entries",
"Members": [
{
"@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries/1724214823",
"@odata.type": "#LogEntry.v1_9_0.LogEntry",
"Created": "2024-08-21T04:33:43+00:00",
"EntryType": "Event",
"Id": "1724214823",
"Message": "Power Button Long Pressed.",
"MessageArgs": [],
"MessageId": "OpenBMC.0.1.PowerButtonLongPressed.OK",
"Name": "System Event Log Entry",
"Severity": "OK"
}
],
"Members@odata.count": 1,
"Name": "System Event Log Entries"
}
'''

Change-Id: I772c444303c784d086af69e1eab22d9446658d4b
Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com>